owner.setTemplateDirName(owner.getTemplateDirName(), gappFile.getAbsolutePath());
owner.setOutputDirName(owner.getOutputDirName(), gappFile.getAbsolutePath());
Iterator it = ((Controller)theTarget).getPRs().iterator();
while(it.hasNext()) {
ProcessingResource pr = (ProcessingResource)it.next();
String resourceClassName = pr.getClass().getName();
ResourceData rd = Gate.getCreoleRegister().get(resourceClassName);
String helpURL = rd.getHelpURL();
if(helpURL != null) {
if(!helpURL.startsWith("http://") && !helpURL.startsWith("file:")) {
helpURL = "http://gate.ac.uk/userguide/" + helpURL;
}
pr.getFeatures().put("%@helpURL", helpURL);
}
}
Map<String, String> locations = fileChooser.getLocations();
// When saving an application state, use paths relative to
// GATE HOME for resources inside GATE HOME and warn about them.