Skip to content
Snippets Groups Projects
Commit 3c1069f0 authored by Matthieu Migne's avatar Matthieu Migne
Browse files

Add of override method...

Add of override method NomadControllerPropertyNameEntryDialog.getControllerName(boolean replaceWhitespaces)
parent 6ce5835e
No related branches found
Tags 4.3.3
No related merge requests found
......@@ -3,6 +3,7 @@
* Class NewFileHelper deleted.
* Changed visibility of method loadSetPoints in class AbstractCommandZone from protected to public.
* Corrected bad comparison between string and int in ControllerPluginPeer.initParticularWidgets().
* Add of override method NomadControllerPropertyNameEntryDialog.getControllerName(boolean replaceWhitespaces).
4.3.3 15/02/2024
-----
......
......@@ -20,6 +20,7 @@ package fr.ill.ics.client.view.util.dialog;
public interface NomadControllerPropertyNameEntryDialog extends NomadUserEntryDialog {
public String getControllerName(boolean replaceWhitespaces);
public String getControllerName();
public String getPropertyName();
public void setControllerName(String controllerName);
......
......@@ -406,7 +406,7 @@ public class SWTNomadControllerPropertyNameEntryDialog extends SWTNomadUserEntry
return null;
}
public String getControllerName() {
public String getControllerName(boolean replaceWhitespaces) {
if (onlyPropertyNameSelectorMode) {
return controllerName;
......@@ -415,7 +415,7 @@ public class SWTNomadControllerPropertyNameEntryDialog extends SWTNomadUserEntry
// If addTypeOfPropertyCombo is true then the selector is used for an expression (variable or condition).
// In that case we need to replace the whitespaces in the name (the server understands the names without spaces).
if (addTypeOfPropertyCombo) {
if (addTypeOfPropertyCombo && replaceWhitespaces) {
controllerName = controllerName.replace(" ", "");
}
......@@ -429,6 +429,10 @@ public class SWTNomadControllerPropertyNameEntryDialog extends SWTNomadUserEntry
return controllerName;
}
public String getControllerName() {
return getControllerName(true);
}
public String getPropertyName() {
String propertyName = pnameCombo.getText();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment