Class PreferencesUtil


  • public class PreferencesUtil
    extends Object
    Author:
    Johannes Utzig (jutzig.dev@googlemail.com)
    • Method Detail

      • scopeFor

        public static org.osgi.service.prefs.Preferences scopeFor​(Object eobject)
      • toLookupURI

        public static org.eclipse.emf.common.util.URI toLookupURI​(org.osgi.service.prefs.Preferences prefs)
        converts a pref node path to a URI that can be resolved by an URIResolver
        Parameters:
        prefs -
        Returns:
      • cloneNode

        public static void cloneNode​(org.osgi.service.prefs.Preferences source,
                                     org.osgi.service.prefs.Preferences target)
                              throws org.osgi.service.prefs.BackingStoreException
        copies all values and child nodes of the source into the target node
        Parameters:
        source -
        target -
        Throws:
        org.osgi.service.prefs.BackingStoreException
      • workspaceScope

        public static org.osgi.service.prefs.Preferences workspaceScope()
      • rootScope

        public static org.osgi.service.prefs.Preferences rootScope()
        Returns:
        the jabylon root preference node
      • deleteNode

        public static void deleteNode​(org.osgi.service.prefs.Preferences node)
                               throws org.osgi.service.prefs.BackingStoreException
        Throws:
        org.osgi.service.prefs.BackingStoreException
      • renamePreferenceNode

        public static org.osgi.service.prefs.Preferences renamePreferenceNode​(org.osgi.service.prefs.Preferences node,
                                                                              String newName)
      • shallowClonePreferences

        protected static void shallowClonePreferences​(org.osgi.service.prefs.Preferences node,
                                                      org.osgi.service.prefs.Preferences clone)
      • copyChildPreferences

        public static void copyChildPreferences​(org.osgi.service.prefs.Preferences oldParent,
                                                org.osgi.service.prefs.Preferences newParent)
                                         throws org.osgi.service.prefs.BackingStoreException
        Throws:
        org.osgi.service.prefs.BackingStoreException
      • getScanConfigForProject

        public static final org.jabylon.properties.ScanConfiguration getScanConfigForProject​(org.jabylon.properties.Project project)
      • getNodeForJob

        public static org.osgi.service.prefs.Preferences getNodeForJob​(org.osgi.service.prefs.Preferences context,
                                                                       String jobID)