myDefaultStartLevel.setValue(osgiRunConfiguration.getDefaultStartLevel());
boolean useUserDefinedFields = !osgiRunConfiguration.isGenerateWorkingDir();
myWorkingDirField.setText(osgiRunConfiguration.getWorkingDir());
if (myWorkingDirField.getText().length() == 0) {
final CompilerProjectExtension extension = CompilerProjectExtension.getInstance(myProject);
if (extension != null) {
final VirtualFilePointer outputDirPointer = extension.getCompilerOutputPointer();
if (outputDirPointer != null) {
myWorkingDirField.setText(VfsUtilCore.urlToPath(outputDirPointer.getUrl() + "/run.osgi/"));
}
}
}