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,7 +46,14 @@ public class CodeParser {
|
||||||
if (defaultValue.endsWith("\""))
|
if (defaultValue.endsWith("\""))
|
||||||
defaultValue = defaultValue.substring(0,
|
defaultValue = defaultValue.substring(0,
|
||||||
defaultValue.length() - 1);
|
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(
|
selectedRowsVariables = new InputOutputVariables(
|
||||||
varDescription[0].trim(), varDescription[0].trim(),
|
varDescription[0].trim(), varDescription[0].trim(),
|
||||||
defaultValue, checkDataType(checkDataTypeValue), ioType,
|
defaultValue, checkDataType(checkDataTypeValue), ioType,
|
||||||
|
@ -67,6 +74,13 @@ public class CodeParser {
|
||||||
if (defaultValue.endsWith("\""))
|
if (defaultValue.endsWith("\""))
|
||||||
defaultValue = defaultValue.substring(0,
|
defaultValue = defaultValue.substring(0,
|
||||||
defaultValue.length() - 1);
|
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(
|
selectedRowsVariables = new InputOutputVariables(
|
||||||
varDescription[0].trim(), varDescription[0].trim(),
|
varDescription[0].trim(), varDescription[0].trim(),
|
||||||
defaultValue, checkDataType(checkDataTypeValue),
|
defaultValue, checkDataType(checkDataTypeValue),
|
||||||
|
|
|
@ -211,7 +211,7 @@ public class GlobalVariablesPanel extends ContentPanel {
|
||||||
descriptionColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
descriptionColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
||||||
"Attention character \" is not allowed"));
|
"Attention character \" is not allowed"));
|
||||||
TextField defaultValueColumnEditing = new TextField();
|
TextField defaultValueColumnEditing = new TextField();
|
||||||
defaultValueColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
defaultValueColumnEditing.addValidator(new RegExValidator("^[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*$",
|
||||||
"Attention character \" is not allowed"));
|
"Attention character \" is not allowed"));
|
||||||
|
|
||||||
gridGlobalVariableEditing = new GridRowEditing<GlobalVariables>(
|
gridGlobalVariableEditing = new GridRowEditing<GlobalVariables>(
|
||||||
|
|
|
@ -266,9 +266,9 @@ public class InputOutputVariablesPanel extends ContentPanel {
|
||||||
descriptionColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
descriptionColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
||||||
"Attention character \" is not allowed"));
|
"Attention character \" is not allowed"));
|
||||||
TextField defaultValueColumnEditing = new TextField();
|
TextField defaultValueColumnEditing = new TextField();
|
||||||
defaultValueColumnEditing.addValidator(new RegExValidator("^[^\"]*$",
|
defaultValueColumnEditing.addValidator(new RegExValidator("^[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*$",
|
||||||
"Attention character \" is not allowed"));
|
"Attention character \" is not allowed"));
|
||||||
|
|
||||||
gridInputOutputVariablesEditing = new GridRowEditing<InputOutputVariables>(
|
gridInputOutputVariablesEditing = new GridRowEditing<InputOutputVariables>(
|
||||||
gridInputOutputVariables);
|
gridInputOutputVariables);
|
||||||
gridInputOutputVariablesEditing
|
gridInputOutputVariablesEditing
|
||||||
|
|
|
@ -51,18 +51,19 @@
|
||||||
name="locale" values="es" /> <set-property name="locale" value="en, it, es"
|
name="locale" values="es" /> <set-property name="locale" value="en, it, es"
|
||||||
/> <set-property-fallback name="locale" value="en" /> -->
|
/> <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"
|
name="log_DivLogger" value="ENABLED" /> <set-property name="log_GWTLogger"
|
||||||
value="ENABLED" /> <set-property name="log_SystemLogger" value="ENABLED"
|
value="ENABLED" /> <set-property name="log_SystemLogger" value="ENABLED"
|
||||||
/> -->
|
/> -->
|
||||||
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="ENABLED"
|
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="ENABLED"
|
||||||
/> -->
|
/> -->
|
||||||
|
|
||||||
|
|
||||||
<set-property name="log_ConsoleLogger" value="DISABLED" />
|
<set-property name="log_ConsoleLogger" value="DISABLED" />
|
||||||
<set-property name="log_DivLogger" value="DISABLED" />
|
<set-property name="log_DivLogger" value="DISABLED" />
|
||||||
<set-property name="log_GWTLogger" value="DISABLED" />
|
<set-property name="log_GWTLogger" value="DISABLED" />
|
||||||
<set-property name="log_SystemLogger" value="DISABLED" />
|
<set-property name="log_SystemLogger" value="DISABLED" />
|
||||||
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="DISABLED"
|
<!-- Not in GWT 2.6 <set-property name="log_FirebugLogger" value="DISABLED"
|
||||||
/> -->
|
/> -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue