private void saveProjectSettings(String wizardCmdOptions) { String workspaceOptions = SConsPlugin.getWorkspacePreferenceStore() .getString(PreferenceConstants.ADDITIONAL_COMMANDLINE_OPTIONS); if (wizardCmdOptions == null || workspaceOptions.equals(wizardCmdOptions)) return; // user has chosen his own SCons options and decided to take these // instead of workspace settings; therefore we store them in the // newly created project IPersistentPreferenceStore projectOptions = SConsPlugin.getProjectPreferenceStore(project); projectOptions.setValue(PreferenceConstants.ADDITIONAL_COMMANDLINE_OPTIONS, wizardCmdOptions); projectOptions.setValue( PreferenceConstants.BUILD_SETTINGS_PAGE_ID + PreferenceConstants.USE_PARENT_SUFFIX, false); try { projectOptions.save(); } catch (Exception e) { // ignore because user then already has SCons settings } }