1452: Implement a GUI for StatMan Algorithms Importer
Task-Url: https://support.d4science.org/issues/1452 Fixed double quote problem in parameters git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@122590 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7a5ea9243d
commit
b289d6718f
|
@ -46,6 +46,13 @@ public class CodeParser {
|
|||
if (defaultValue.endsWith("\""))
|
||||
defaultValue = defaultValue.substring(0,
|
||||
defaultValue.length() - 1);
|
||||
String[] def=defaultValue.split("\"");
|
||||
if(def.length>2){
|
||||
defaultValue=def[0];
|
||||
for(int i=1; i<def.length;i++){
|
||||
defaultValue=defaultValue+"\\\""+def[i];
|
||||
}
|
||||
}
|
||||
|
||||
selectedRowsVariables = new InputOutputVariables(
|
||||
varDescription[0].trim(), varDescription[0].trim(),
|
||||
|
@ -67,6 +74,13 @@ public class CodeParser {
|
|||
if (defaultValue.endsWith("\""))
|
||||
defaultValue = defaultValue.substring(0,
|
||||
defaultValue.length() - 1);
|
||||
String[] def=defaultValue.split("\"");
|
||||
if(def.length>2){
|
||||
defaultValue=def[0];
|
||||
for(int i=1; i<def.length;i++){
|
||||
defaultValue=defaultValue+"\\\""+def[i];
|
||||
}
|
||||
}
|
||||
selectedRowsVariables = new InputOutputVariables(
|
||||
varDescription[0].trim(), varDescription[0].trim(),
|
||||
defaultValue, checkDataType(checkDataTypeValue),
|
||||
|
|
|
@ -211,7 +211,7 @@ public class GlobalVariablesPanel extends ContentPanel {
|
|||
descriptionColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
||||
"Attention character \" is not allowed"));
|
||||
TextField defaultValueColumnEditing = new TextField();
|
||||
defaultValueColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
||||
defaultValueColumnEditing.addValidator(new RegExValidator("^[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*$",
|
||||
"Attention character \" is not allowed"));
|
||||
|
||||
gridGlobalVariableEditing = new GridRowEditing<GlobalVariables>(
|
||||
|
|
|
@ -266,7 +266,7 @@ public class InputOutputVariablesPanel extends ContentPanel {
|
|||
descriptionColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
||||
"Attention character \" is not allowed"));
|
||||
TextField defaultValueColumnEditing = new TextField();
|
||||
defaultValueColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
||||
defaultValueColumnEditing.addValidator(new RegExValidator("^[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*$",
|
||||
"Attention character \" is not allowed"));
|
||||
|
||||
gridInputOutputVariablesEditing = new GridRowEditing<InputOutputVariables>(
|
||||
|
|
|
@ -51,7 +51,8 @@
|
|||
name="locale" values="es" /> <set-property name="locale" value="en, it, es"
|
||||
/> <set-property-fallback name="locale" value="en" /> -->
|
||||
|
||||
<!-- <set-property name="log_ConsoleLogger" value="ENABLED" /> <set-property
|
||||
<!--
|
||||
<set-property name="log_ConsoleLogger" value="ENABLED" /> <set-property
|
||||
name="log_DivLogger" value="ENABLED" /> <set-property name="log_GWTLogger"
|
||||
value="ENABLED" /> <set-property name="log_SystemLogger" value="ENABLED"
|
||||
/> -->
|
||||
|
|
Loading…
Reference in New Issue