Package org.osgi.service.prefs

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


                        wktText.setText(wkt);
                        Preferences node = findNode(matcher.group(1));
                        if( node!=null ){
                            Preferences kn = node.node(ALIASES_ID);
                            try {
                                String[] keywords=kn.keys();
                                if( keywords.length>0 ){
                                    StringBuffer buffer=new StringBuffer();
                                    for( String string : keywords ) {
                                        buffer.append(", "); //$NON-NLS-1$
                                        buffer.append(string);
View Full Code Here


                    descriptions.add(string);
                    continue;
                }

                Preferences aliases = child.node(ALIASES_ID);
                for( String alias : aliases.keys() ) {
                    if (matchesFilter(alias.toUpperCase(), searchParms)) {
                        descriptions.add(string);
                        continue;
                    }
                }
View Full Code Here

          node.put(elem.getAttribute("id"), ""); //$NON-NLS-1$ //$NON-NLS-2$
          current = new Tip(elem);
          return;
        }
      }
      if (node.keys().length == 0) {
        current = null;
        return;
      }
      node.clear();
      next(next);
View Full Code Here

      if (projectPrefs == null)
        // no preferences for this project-key, just bail
        return false;
      String[] affectedResources;
      try {
        affectedResources = projectPrefs.keys();
      }
      catch (BackingStoreException e) {
        // problems with the project scope... we gonna miss the
        // changes (but will log)
        Logger.log(Logger.WARNING_DEBUG, "Problem retreiving JSP Fragment preferences", e); //$NON-NLS-1$
View Full Code Here

      if (projectPrefs == null)
        // no preferences for this project-key, just bail
        return false;
      String[] affectedResources;
      try {
        affectedResources = projectPrefs.keys();
      }
      catch (BackingStoreException e) {
        // problems with the project scope... we gonna miss the
        // changes (but will log)
        Logger.log(Logger.WARNING_DEBUG, "Problem retreiving JSP Fragment preferences", e); //$NON-NLS-1$
View Full Code Here

    protected void loadScannerState() {
        try {
            Preferences prefs = getPreferenceService().getUserPreferences(PREFERENCE_KEY).node(pid);
            Map<String, Long> lastResult = new HashMap<String, Long>();
            for (String key : prefs.keys()) {
                lastResult.put(key, prefs.getLong(key, -1));
            }
            scanner.setLastScanResults(lastResult);
        } catch (Exception e) {
            LOGGER.error("Error loading FileMonitor state", e);
View Full Code Here

            debugInformationGenerated = preferences.getBoolean(DEBUG_INFORMATION, true);
            sourceFilesCopied = preferences.getBoolean(COPY_SOURCES, true);
            Preferences propertiesPrefs = preferences.node(PROPERTIES);
            propertiesPrefs.sync();
            properties = new Properties();
            for (String key : propertiesPrefs.keys()) {
                properties.setProperty(key, propertiesPrefs.get(key, ""));
            }
            Preferences transformersPrefs = preferences.node(TRANSFORMERS);
            transformersPrefs.sync();
            transformers = transformersPrefs.keys();
View Full Code Here

            for (String key : propertiesPrefs.keys()) {
                properties.setProperty(key, propertiesPrefs.get(key, ""));
            }
            Preferences transformersPrefs = preferences.node(TRANSFORMERS);
            transformersPrefs.sync();
            transformers = transformersPrefs.keys();
            Preferences classesPrefs = preferences.node(CLASSES);
            classesPrefs.sync();
            for (String key : classesPrefs.keys()) {
                classAliases.put(key, classesPrefs.get(key, "_"));
            }
View Full Code Here

            Preferences transformersPrefs = preferences.node(TRANSFORMERS);
            transformersPrefs.sync();
            transformers = transformersPrefs.keys();
            Preferences classesPrefs = preferences.node(CLASSES);
            classesPrefs.sync();
            for (String key : classesPrefs.keys()) {
                classAliases.put(key, classesPrefs.get(key, "_"));
            }
            externalToolId = preferences.get(EXTERNAL_TOOL_ID, "");
        }
View Full Code Here

      if (projectPrefs == null)
        // no preferences for this project, just bail
        return;
      String[] affectedResources;
      try {
        affectedResources = projectPrefs.keys();
      } catch (BackingStoreException e) {
        // problems with the project scope... we gonna miss the changes (but will log)
        String message = Messages.resources_readingEncoding;
        Policy.log(new ResourceStatus(IResourceStatus.FAILED_GETTING_CHARSET, currentProject.getFullPath(), message, e));
        return;
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.