/** * Writes and applies the modified preferences. * @throws BackingStoreException */ public void flush() throws BackingStoreException { preferences.flush(); }
/** * Flush the values of these plug-in preferences to disk. * * @throws BackingStoreException */ public void flush() throws BackingStoreException { IEclipsePreferences node = getPluginPreferences(false); if (node != null) node.flush(); }
/** * Flush the values of these plug-in preferences to disk. * * @throws BackingStoreException */ public void flush() throws BackingStoreException { IEclipsePreferences node = getPluginPreferences(false); if (node != null) node.flush(); }
@Override public void widgetSelected(SelectionEvent e) { prefs.putBoolean(PREF_DEEP_SEARCH, lookForNestedButton .getSelection()); try { prefs.flush(); } catch (BackingStoreException e1) { // ignore } setNeedsSearch(); }
/** * Saves INSTANCE preferences */ public static void save() { try { InstanceScope.INSTANCE.getNode(PDE.PLUGIN_ID).flush(); } catch (BackingStoreException e) { } } }
private boolean flush() { try { pluginPreferences.flush(); return true; } catch (BackingStoreException e) { RecommendersPlugin.logError(e, "Caught exception while saving the order of ExtdocProviders"); //$NON-NLS-1$ return false; } }
public void performApply() { try { fCurrContext.getNode(JavaUI.ID_PLUGIN).flush(); fCurrContext.getNode(JavaCore.PLUGIN_ID).flush(); if (fCurrContext != fInstanceScope) { fInstanceScope.getNode(JavaUI.ID_PLUGIN).flush(); fInstanceScope.getNode(JavaCore.PLUGIN_ID).flush(); } } catch (BackingStoreException e) { JavaPlugin.log(e); } }
public void performApply() { try { fCurrContext.getNode(JavaUI.ID_PLUGIN).flush(); fCurrContext.getNode(JavaCore.PLUGIN_ID).flush(); if (fCurrContext != fInstanceScope) { fInstanceScope.getNode(JavaUI.ID_PLUGIN).flush(); fInstanceScope.getNode(JavaCore.PLUGIN_ID).flush(); } } catch (BackingStoreException e) { JavaPlugin.log(e); } }
public void performApply() { try { fCurrContext.getNode(JavaUI.ID_PLUGIN).flush(); fCurrContext.getNode(JavaCore.PLUGIN_ID).flush(); if (fCurrContext != fInstanceScope) { fInstanceScope.getNode(JavaUI.ID_PLUGIN).flush(); fInstanceScope.getNode(JavaCore.PLUGIN_ID).flush(); } } catch (BackingStoreException e) { JavaPlugin.log(e); } }
@Override void flush() { try { this.preferences.flush(); } catch (Exception e) { throw new GradlePluginsRuntimeException(String.format("Cannot store preferences in project %s in node %s.", this.project.getName(), this.node), e); } }
@Override public void save() throws IOException { try { getStorePreferences().flush(); dirty = false; } catch (BackingStoreException e) { throw new IOException(e.getMessage()); } }
public void save() throws IOException { try { getStorePreferences().flush(); dirty = false; } catch (BackingStoreException e) { throw new IOException(e.getMessage()); } }
@Override public void saving(ISaveContext context1) throws CoreException { try { InstanceScope.INSTANCE.getNode(ID_PLUGIN).flush(); } catch (BackingStoreException e) { log(e); } //catch in case any install times are still cached for removed JREs writeInstallInfo(); } });
/** * Flush the bundle's preferences. */ @Override public void ungetService(Bundle bundle, ServiceRegistration<org.osgi.service.prefs.PreferencesService> registration, org.osgi.service.prefs.PreferencesService service) { try { //new InstanceScope().getNode(getQualifier(bundle)).flush(); ConfigurationScope.INSTANCE.getNode(getQualifier(bundle)).flush(); } catch (BackingStoreException e) { //best effort } }
public static void setScalePercentage(int i) { IEclipsePreferences prefs = InstanceScope.INSTANCE.getNode(IntroPlugin.PLUGIN_ID); prefs.putInt(SCALE_FACTOR, i); try { prefs.flush(); } catch (BackingStoreException e) { } }
@Override public void saving(ISaveContext context1) throws CoreException { try { InstanceScope.INSTANCE.getNode(ID_PLUGIN).flush(); } catch (BackingStoreException e) { log(e); } //catch in case any install times are still cached for removed JREs writeInstallInfo(); } });
private void flushPrefs(IProject project) { IScopeContext projectScope = new ProjectScope(project); IEclipsePreferences projectNode = projectScope .getNode(AspectJPlugin.PLUGIN_ID); try { projectNode.flush(); } catch (BackingStoreException e) { } }
/** * Saves the preferences for the plug-in. */ public void savePreferences() { final IEclipsePreferences prefs = getPreferences(); try { prefs.flush(); } catch (BackingStoreException e) { getILog().log(createStatus(IStatus.ERROR, e)); } }
@Override public void flush() throws BackingStoreException { IEclipsePreferences toFlush = null; synchronized (childAndPropertyLock) { toFlush = internalFlush(); } //if we aren't at the right level, then flush the appropriate node if (toFlush != null) toFlush.flush(); PreferencesService.getDefault().shareStrings(); }
private void saveOrientation() { IEclipsePreferences node = InstanceScope.INSTANCE.getNode(DebugUIPlugin.getUniqueIdentifier()); if (node != null) { try { node.putInt(getOrientationPrefId(), fViewOrientation); node.flush(); } catch (BackingStoreException e) { DebugUIPlugin.log(e); } } }