Package org.osgi.service.prefs

Examples of org.osgi.service.prefs.Preferences.removeNode()


                if (wkt != null) {
                    try {
                        return ReferencingFactoryFinder.getCRSFactory(null).createFromWKT(wkt);
                    } catch (Exception e) {
                        UiPlugin.log(wkt, e);
                        child.removeNode();
                    }
                }
            }

        } catch (Exception e) {
View Full Code Here


    }

    private void clearPreferences( Preferences node ) throws BackingStoreException {
        for( String name : node.childrenNames() ) {
            Preferences child = node.node(name);
            child.removeNode();
        }
    }

    /** Access the IBookmarkService for the current workbench */
    public static IBookmarkService getBookmarkService() {
View Full Code Here

     * @throws BackingStoreException
     */
    private void clearPreferences( Preferences node ) throws BackingStoreException {
        for( String name : node.childrenNames() ) {
            Preferences child = node.node(name);
            child.removeNode();
        }
    }


}
View Full Code Here

  public void delete() {
    try {
      Preferences node = getConfigurationNode();
      if (id != null) {
        Preferences child = node.node(id);
        child.removeNode();
      }
      PreferencesHelper.flush(node);
    } catch (BackingStoreException e) {
      Activator.showUserError("Failed to remove + " + this + " from configuration store", e.getMessage(), e);
    }
View Full Code Here

                profile.save();
            }
            for (String key : globalPreferences.childrenNames()) {
                if (!profileMap.containsKey(key)) {
                    Preferences node = globalPreferences.node(key);
                    node.removeNode();
                }
            }
            globalPreferences.flush();
        } catch (BackingStoreException e) {
            throw new CoreException(TeaVMEclipsePlugin.makeError(e));
View Full Code Here

                {
                    logger.debug( "error loading schema " + node.get( SCHEMA_URL, "" ) + " in the pool" ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                }
                finally
                {
                    node.removeNode();
                }
            }
            saved_workspace.flush();
        }
        catch ( BackingStoreException e )
View Full Code Here

      for (int i = 0; i < targets.length; i++) {
        String target = targets[i];
        Preferences node = connections.node(target);
        String cdTarget = normalizeURI(cd.getTargetURI());
        if (node != null && target != null && target.equals(cdTarget)) {
          node.removeNode();
        }
      }
      connections.flush();
    } catch (BackingStoreException e) {
      ClientPlugin.getDefault().getLog().log(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.