public static void clear() throws BackingStoreException { STORE.clear(); }
@Override public synchronized void clear() { try { this.preferences.clear(); } catch (BackingStoreException e) { throw new IllegalStateException(e); } }
public void clear() { try { log.info("Clearing WebDriverManager preferences"); prefs.clear(); } catch (BackingStoreException e) { log.warn("Exception clearing preferences", e); } }
public static void clearIgnoreList(String serverAddress) throws BackingStoreException { ignoreListNode(serverAddress).clear(); }
public void flush() { Preferences prefs = Preferences.userRoot().node(WORKSPACES_PATH); LOG.trace("Flushing recently used workspaces"); try { prefs.clear(); for (Entry<String, String> entry : cache.entrySet()) { prefs.put(entry.getValue(), entry.getKey()); } prefs.flush(); } catch (BackingStoreException e) { LOG.error("Error storing recently used workspace", e); } }
public void clear() { try { prefs.clear(); } catch (BackingStoreException ex) { } }
public void clear() { try { preferences.clear(); } catch (BackingStoreException e) { throw new RuntimeException(e); } }
public void clear() { try { preferences.clear(); } catch (BackingStoreException e) { throw new RuntimeException(e); } }
@Override public synchronized void clear() { try { this.preferences.clear(); } catch (BackingStoreException e) { throw new IllegalStateException(e); } }
public void clear() { try { log.info("Clearing Selenium-Jupiter preferences"); prefs.clear(); } catch (BackingStoreException e) { log.warn("Exception clearing preferences", e); } }
/** * Clear application settings in persistent store. * * @throws BackingStoreException * If a failure occurred in the backing store */ public void clear() throws BackingStoreException { Preferences preferences = getUnderlyingPreferences(); preferences.clear(); }
/** * Clears the settings associated with this object from storage. * @throws BackingStoreException if this operation cannot be completed * due to a failure in the backing store, or inability to communicate with it. * @throws IllegalStateException if the associated node (or an ancestor) has * been removed with the removeNode() method. */ public void clearSettings() throws BackingStoreException { pr.clear(); pr.flush(); }
private void convert701Settings() throws BackingStoreException { Preferences preferences = getPreferences(); Preferences pref701 = get701Preferences(); for (String key : pref701.keys()) { String oldValue = pref701.get(key, null); assert oldValue != null; preferences.put(key, oldValue); } pref701.clear(); }
@Override public ServerConfiguration reloadConfiguration() throws Exception { getPreferencesNode().clear(); return prepareConfigurationPreferences(); }
/** * Removes all of the preferences (key-value associations) in this * preference node with no effect on any descendants * of this node. */ @SuppressWarnings("unused") private static <P extends Preferences> void shallowClearPreferences(P preferenceNode) { try { preferenceNode.clear(); } catch (BackingStoreException e) { Log.error(e.getMessage()); } }
static void clear() { Preferences p = Preferences.userNodeForPackage(GUISaveState.class); try { p.clear(); } catch (BackingStoreException e) { Debug.println(e); } instance = new GUISaveState(); }
public void reset(boolean setDefaultOptions) { try { getPref().clear(); } catch (BackingStoreException e) { e.printStackTrace(); } if (setDefaultOptions) { resetDefaultValues(); } }
public static void main(String args[]) throws BackingStoreException { Preferences prefs = Preferences.userNodeForPackage(WebCloudNameLookup.class); System.out.println(prefs.getLong(WebCloudNameLookup.KEY_APPENGINECLOUD_SESSION_ID, 0)); WebCloudNameLookup.clearSavedSessionInformation(); prefs.flush(); prefs.clear(); prefs.flush(); }
private static void clearStore() throws BackingStoreException { final Preferences prefs = ChatIgnoreList.getPrefNode(); prefs.clear(); prefs.flush(); }