@Override protected void okPressed() { super.okPressed(); if (getReturnCode() == FAILED) { return; } if (workingCopyManager != null) { try { workingCopyManager.applyChanges(); } catch (BackingStoreException e) { String msg = e.getMessage(); if (msg == null) { msg = WorkbenchMessages.FilteredPreferenceDialog_PreferenceSaveFailed; } StatusUtil.handleStatus( WorkbenchMessages.PreferencesExportDialog_ErrorDialogTitle + ": " + msg, e, StatusManager.SHOW, // $NON-NLS-1$ getShell()); } } // Run the update jobs Iterator updateIterator = updateJobs.iterator(); while (updateIterator.hasNext()) { ((Job) updateIterator.next()).schedule(); } }
/* * (non-Javadoc) * * @see * org.eclipse.jdt.internal.ui.preferences.PreferencesAccess#applyChanges * () */ @Override public void applyChanges() throws BackingStoreException { fWorkingCopyManager.applyChanges(); }
/* * (non-Javadoc) * * @see * org.eclipse.core.runtime.preferences.IScopeContext#getNode(java.lang * .String) */ public IEclipsePreferences getNode(String qualifier) { return fWorkingCopyManager.getWorkingCopy(fOriginal.getNode(qualifier)); }