|
| Re: [Help] How to change the local of generated files [message #580224 is a reply to message #580189] |
Fri, 05 February 2010 11:49  |
Gøran K. Olsen Messages: 184 Registered: July 2009 |
Senior Member |
|
|
Hello Fabricio,
Not sure if this is what you are asking for but here is the Java code for
setting the output.
If you have the output dir, look at the bottom line.
public void setRootDirectoryProperty (IFile file) {
String rootDir = null;
try {
rootDir = file.getPersistentProperty(new QualifiedName("",
MofScriptPropertyPage.OUTPUT_DIRECTORY_PROPERTY));
if (rootDir == null) {
rootDir =
MofScriptEditorPlugin.getDefault().getPreferenceString(MofSc riptPreferences.ROOT_DIRECTORY);
if (rootDir != null)
file.setPersistentProperty(new QualifiedName("",
MofScriptPropertyPage.OUTPUT_DIRECTORY_PROPERTY), rootDir);
}
} catch (CoreException xec) {
rootDir =
MofScriptEditorPlugin.getDefault().getPreferenceString(MofSc riptPreferences.ROOT_DIRECTORY);
}
if (rootDir != null && !rootDir.equals(""))
ExecutionManager.getExecutionManager().setRootDirectory(root Dir);
}
Cheers,
G
|
|
|
Powered by
FUDForum. Page generated in 0.01948 seconds