inputStream = locator.getInputStream();
if ( inputStream == null ) {
ErrorReporter.getErrorHandler().reportError("Cannot find the properties file");
}
else {
VariableManager varman = VariableManager.getInstance();
Properties myProperties = new Properties();
myProperties.load(inputStream);
Enumeration propertyNames = myProperties.propertyNames();
while (propertyNames.hasMoreElements()) {
String name = (String) propertyNames.nextElement();
String value = myProperties.getProperty(name);
varman.addIncludedVariable(name,value, configName);
}
}
} catch (Exception e) {
ErrorReporter.getErrorHandler().reportError("The file cannot be loaded",e);
}