Package java.util.prefs

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


    // "subchild1");
    Preferences child1 = pref.node("child1");

        pref.node("child2");
    pref.node("child3");
    child1.node("subchild1");

        assertSame(pref, child1.parent());
    assertEquals(3, pref.childrenNames().length);
  }
View Full Code Here


    try {
      p.keys();
    } catch (BackingStoreException e) {
    }
    p.name();
    p.node(null);
    try {
      p.nodeExists(null);
    } catch (BackingStoreException e1) {
    }
    p.parent();
View Full Code Here

        final Logger lgger = DiscoveryMangerPreferencesImpl.this.logger;

        final Preferences root = DiscoveryMangerPreferencesImpl.this.agentsRoot;
        final Preferences ournode = this.agentsRoot.node(this.ourID);

        this.ourExportsNode = ournode.node("exports");

        this.logger.fine("Using UID " + this.ourID);

        // Runs regularly to clean up unused names
        final Thread cleanup = new Thread(new Runnable() {
View Full Code Here

  private LinkedHashSet<String> hosts;

  private PasswordPolicyManager()
  {
    final Preferences preferences = Preferences.userNodeForPackage(PasswordPolicyManager.class);
    properties = preferences.node("PasswordPolicy"); // NON-NLS

    hosts = new LinkedHashSet<String>();
    try
    {
      hosts.addAll(getFilesAsList());
View Full Code Here

        }

        if (!cancelShutdown) {
            try {
                Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
                preferences = preferences.node(applicationClassName);

                boolean maximized = (windowedHostFrame.getExtendedState()
                    & java.awt.Frame.MAXIMIZED_BOTH) == java.awt.Frame.MAXIMIZED_BOTH;
                if (!maximized) {
                    preferences.putInt(X_ARGUMENT, windowedHostFrame.getX());
View Full Code Here

        boolean fullScreen = false;
        boolean preserveSplashScreen = false;

        try {
            Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
            preferences = preferences.node(applicationClassName);

            x = preferences.getInt(X_ARGUMENT, x);
            y = preferences.getInt(Y_ARGUMENT, y);
            width = preferences.getInt(WIDTH_ARGUMENT, width);
            height = preferences.getInt(HEIGHT_ARGUMENT, height);
View Full Code Here

        FileNameExtensionFilter filter = new FileNameExtensionFilter(PROF_TYPES[selectedProfile], PROF_EXT[selectedProfile]);
        setFileFilter(filter);

        // retrieve directory from preferences
        Preferences prefs = Preferences.userRoot();
        preferences = prefs.node(MODBUSPAL_REG_PATH);
        String dir = preferences.get(REG_KEYS[selectedProfile], null);

        // setup current directory if available
        if( dir != null )
        {
View Full Code Here

        String path = CayennePreference.filePathToPrefereceNodePath(descriptor
                .getConfigurationSource()
                .getURL()
                .getPath());
        Preferences pref = getPreferencesNode(getProject().getClass(), "");
        return pref.node(pref.absolutePath() + path);
    }

    /**
     * Returns a new instance of CodeTemplateManager.
     */
 
View Full Code Here

        String pathToProject = pref.absolutePath();
        String path = pathToProject
                + "/"
                + getView().getClass().getName().replace(".", "/");

        return pref.node(path);
    }

    /**
     * Utility method to provide a visual indication an execution error. This
     * implementation logs an error and pops up a dialog window with error message.
View Full Code Here

        }

        if (!cancelShutdown) {
            try {
                Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
                preferences = preferences.node(applicationClassName);

                boolean maximized = (windowedHostFrame.getExtendedState()
                    & java.awt.Frame.MAXIMIZED_BOTH) == java.awt.Frame.MAXIMIZED_BOTH;
                if (!maximized) {
                    preferences.putInt(X_ARGUMENT, windowedHostFrame.getX());
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.