@Override public String[] childrenNames() throws BackingStoreException { checkRemoved(); return getOriginal().childrenNames(); }
private void updatePreferences(IEclipsePreferences preferences) { IEclipsePreferences oldPreferences = loadPreferences(); if (oldPreferences != null) { try { String[] propertyNames = oldPreferences.childrenNames(); for (int i = 0; i < propertyNames.length; i++){ String propertyName = propertyNames[i]; String propertyValue = oldPreferences.get(propertyName, ""); //$NON-NLS-1$ if (!"".equals(propertyValue)) { //$NON-NLS-1$ preferences.put(propertyName, propertyValue); } } // save immediately new preferences preferences.flush(); } catch (BackingStoreException e) { // fails silently } } }
private void updatePreferences(IEclipsePreferences preferences) { IEclipsePreferences oldPreferences = loadPreferences(); if (oldPreferences != null) { try { String[] propertyNames = oldPreferences.childrenNames(); for (int i = 0; i < propertyNames.length; i++){ String propertyName = propertyNames[i]; String propertyValue = oldPreferences.get(propertyName, ""); //$NON-NLS-1$ if (!"".equals(propertyValue)) { //$NON-NLS-1$ preferences.put(propertyName, propertyValue); } } // save immediately new preferences preferences.flush(); } catch (BackingStoreException e) { // fails silently } } }
private void updatePreferences(IEclipsePreferences preferences) { IEclipsePreferences oldPreferences = loadPreferences(); if (oldPreferences != null) { try { String[] propertyNames = oldPreferences.childrenNames(); for (int i = 0; i < propertyNames.length; i++){ String propertyName = propertyNames[i]; String propertyValue = oldPreferences.get(propertyName, ""); //$NON-NLS-1$ if (!"".equals(propertyValue)) { //$NON-NLS-1$ preferences.put(propertyName, propertyValue); } } // save immediately new preferences preferences.flush(); } catch (BackingStoreException e) { // fails silently } } }
private void updatePreferences(IEclipsePreferences preferences) { IEclipsePreferences oldPreferences = loadPreferences(); if (oldPreferences != null) { try { String[] propertyNames = oldPreferences.childrenNames(); for (int i = 0; i < propertyNames.length; i++){ String propertyName = propertyNames[i]; String propertyValue = oldPreferences.get(propertyName, ""); //$NON-NLS-1$ if (!"".equals(propertyValue)) { //$NON-NLS-1$ preferences.put(propertyName, propertyValue); } } // save immediately new preferences preferences.flush(); } catch (BackingStoreException e) { // fails silently } } }
private void updatePreferences(IEclipsePreferences preferences) { IEclipsePreferences oldPreferences = loadPreferences(); if (oldPreferences != null) { try { String[] propertyNames = oldPreferences.childrenNames(); for (int i = 0; i < propertyNames.length; i++){ String propertyName = propertyNames[i]; String propertyValue = oldPreferences.get(propertyName, ""); //$NON-NLS-1$ if (!"".equals(propertyValue)) { //$NON-NLS-1$ preferences.put(propertyName, propertyValue); } } // save immediately new preferences preferences.flush(); } catch (BackingStoreException e) { // fails silently } } }
private void updatePreferences(IEclipsePreferences preferences) { IEclipsePreferences oldPreferences = loadPreferences(); if (oldPreferences != null) { try { String[] propertyNames = oldPreferences.childrenNames(); for (int i = 0; i < propertyNames.length; i++){ String propertyName = propertyNames[i]; String propertyValue = oldPreferences.get(propertyName, ""); //$NON-NLS-1$ if (!"".equals(propertyValue)) { //$NON-NLS-1$ preferences.put(propertyName, propertyValue); } } // save immediately new preferences preferences.flush(); } catch (BackingStoreException e) { // fails silently } } }
/** * attaches listeners to the node if necessary and schedules a job if this * node (or a child) contains jobs * * @param prefs * @throws SchedulerException */ protected void absorbNode(Preferences prefs) throws SchedulerException { IEclipsePreferences node = toEclipsePreferences(prefs); if (node.parent().name().equals(ApplicationConstants.JOBS_NODE_NAME)) { updateJob(node); node.addPreferenceChangeListener(this); } else { node.addNodeChangeListener(this); String[] children; try { children = node.childrenNames(); for (String child : children) { absorbNode(node.node(child)); } } catch (BackingStoreException e) { logger.error("Failed to absorb node " + node, e); } } }