Commit 56566690 authored by helene ortiz's avatar helene ortiz
Browse files

Re-implement code to generate GUI files for a controller or driver.

parent b35c0339
......@@ -484,6 +484,7 @@ public class PropertyManager {
processParsedProperties();
} catch (ResourceNotFoundException e) {
/*
// file does not exist on server side either
String propertiesFile = propertyParser.createPropertyFile("", servant.getType(), propertyNamesAndTypes);
if (propertiesFile != null) {
......@@ -497,6 +498,7 @@ public class PropertyManager {
propertiesTypesFromFile.putAll(propertyParser.getPropertyTypes());
}
}
*/
}
}
}
......
......@@ -31,7 +31,6 @@ import fr.ill.ics.bridge.ResourceManager;
import fr.ill.ics.core.property.parser.descriptor.ConditionDescriptor;
import fr.ill.ics.core.property.parser.descriptor.XMLDynamicPropertyDescriptor;
import fr.ill.ics.core.property.parser.descriptor.XMLPropertyDescriptor;
import fr.ill.ics.util.ConfigManager;
import fr.ill.ics.util.GenericParser;
public class PropertyParser extends GenericParser {
......@@ -207,9 +206,7 @@ public class PropertyParser extends GenericParser {
* Create a new file
* @param type
*/
public String createPropertyFile(String directory, String controllerType, Map propertiesAndTypes) {
String filename = controllerType + ConfigManager.PROPERTIES_PATTERN;
public String createPropertyFile(String filename, String controllerType, Map propertiesAndTypes) {
String fileContent = "";
......@@ -234,7 +231,6 @@ public class PropertyParser extends GenericParser {
}
}
fileContent = fileContent + "</" + TAG_CONTROLLER + ">" + LINE_SEPARATOR;
filename = directory + ConfigManager.FILE_SEPARATOR + filename;
ResourceManager.getInstance().saveFile(filename, fileContent, -1);
return filename;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment