Examples of childrenNames()


Examples of java.util.prefs.Preferences.childrenNames()

        try {

            Preferences implementations = Preferences.userRoot().node(applicationName).node(pluginInterfaceName);

            for (String currentPluginImplementationId : implementations.childrenNames())
                rslt.add(implementations.node(currentPluginImplementationId).get("value", null));

        } catch (BackingStoreException ex) {
            Logger.getLogger(JavaPreferencesPersistenceDriver.class.getName()).log(Level.SEVERE, null, ex);
        }
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

       
        Preferences ejbNode = getInitialContextEjbNode();
       
        try
        {
            String[] childrenNames = ejbNode.childrenNames();
           
            for ( int i = 0; i < childrenNames.length; i++ )
            {
                Preferences node = ejbNode.node( childrenNames[i] );
               
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

       
        try
        {
            Preferences icNode = getICNode();
           
            String[] childrenNames = icNode.childrenNames();
           
            for ( int i = 0; i < childrenNames.length; i++ )
            {
                if (!NODE_EJB.equalsIgnoreCase( childrenNames[i] ))
                {
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

       
        try
        {
            if ( icEjbNode.nodeExists( clazz.getName() ))
            {
                String[] childrenNames = icEjbNode.childrenNames();
               
                for ( int i = 0; i < childrenNames.length; i++ )
                {
                    Preferences node = icEjbNode.node( childrenNames[i] );
                   
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

    Map map = Collections.synchronizedMap( new HashMap() );

    Preferences ejbNode = getInitialContextEjbNode();

    try {
      String[] childrenNames = ejbNode.childrenNames();

      for ( int i = 0; i < childrenNames.length; i++ ) {
        Preferences node = ejbNode.node( childrenNames[i] );

        Map nodeMap = Collections.synchronizedMap( new HashMap() );
View Full Code Here

Examples of java.util.prefs.Preferences.childrenNames()

    Map map = Collections.synchronizedMap( new HashMap() );

    try {
      Preferences icNode = getICNode();

      String[] childrenNames = icNode.childrenNames();

      for ( int i = 0; i < childrenNames.length; i++ ) {
        if ( !NODE_EJB.equalsIgnoreCase( childrenNames[i] ) ) {
          Preferences node = icNode.node( childrenNames[i] );
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.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);
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.IEclipsePreferences.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);
View Full Code Here

Examples of org.eclipse.equinox.security.storage.ISecurePreferences.childrenNames()

    /* Check if Bundle is Stopped */
    if (secureRoot == null)
      return;

    String[] childrenNames = secureRoot.childrenNames();
    for (String child : childrenNames) {
      secureRoot.node(child).removeNode();
    }

    /* Flush to Disk */
 
View Full Code Here

Examples of org.opentripplanner.updater.PropertiesPreferences.childrenNames()

        assertEquals(-1, prefs1.getLong("pd", -1));
        assertEquals("é", prefs1.get("pe", null));

        Preferences prefs2 = new PropertiesPreferences(
                makeInput("pa=1\na.pb=2\na.b.pc=3\na.b2.pd=uvw\nb.pe=42"));
        String[] children = prefs2.childrenNames();
        Arrays.sort(children);
        assertEquals("a", children[0]);
        assertEquals("b", children[1]);
        assertEquals(1, prefs2.getLong("pa", 0));
        assertEquals(2, prefs2.node("a").getLong("pb", 0));
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.