Examples of ConfigurationScope


Examples of org.eclipse.core.runtime.preferences.ConfigurationScope

                if ( instance_ == null )
                {
                    //1) create the pool instance
                    SchemaPool pool = new SchemaPool();

                    IEclipsePreferences prefs = new ConfigurationScope().getNode( Application.PLUGIN_ID );

                    //2) initialize the pool
                    boolean initialize_with_specified = prefs.getBoolean( SchemaPreferencePage.SPECIFIC_CORE, false );
                    if ( initialize_with_specified )
                    {
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.ConfigurationScope

     * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
     */
    public void stop( BundleContext context ) throws Exception
    {
        // save workspace configuration
        IEclipsePreferences prefs = new ConfigurationScope().getNode( Application.PLUGIN_ID );
        boolean save_workspace = prefs.getBoolean( SchemaPreferencePage.SAVE_WORKSPACE, true );
        if ( save_workspace )
            SchemaPool.getInstance().savePool();
        plugin = null;
        super.stop( context );
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.ConfigurationScope

        autoOID.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                IEclipsePreferences prefs = new ConfigurationScope().getNode( Application.PLUGIN_ID );

                prefs.putBoolean( GeneralPreferencePage.AUTO_OID, autoOID.getSelection() );
                if ( autoOID.getSelection() )
                {
                    String temp = prefs.get( GeneralPreferencePage.COMPANY_OID, "1.2.3.4.5.6" ); //$NON-NLS-1$
                    oidField.setText( temp + "." ); //$NON-NLS-1$
                }
                else
                {
                    oidField.setText( "" ); //$NON-NLS-1$
                }
            }
        } );

        IEclipsePreferences prefs = new ConfigurationScope().getNode( Application.PLUGIN_ID );

        boolean auto_oid = prefs.getBoolean( GeneralPreferencePage.AUTO_OID, true );
        autoOID.setSelection( auto_oid );

        Label label = new Label( container, SWT.NULL );
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.ConfigurationScope

        autoOID.addSelectionListener( new SelectionAdapter()
        {
            public void widgetSelected( SelectionEvent e )
            {
                IEclipsePreferences prefs = new ConfigurationScope().getNode( Application.PLUGIN_ID );

                prefs.putBoolean( GeneralPreferencePage.AUTO_OID, autoOID.getSelection() );
                if ( autoOID.getSelection() )
                {
                    String temp = prefs.get( GeneralPreferencePage.COMPANY_OID, "1.2.3.4.5.6" ); //$NON-NLS-1$
                    oidField.setText( temp + "." ); //$NON-NLS-1$
                }
                else
                {
                    oidField.setText( "" ); //$NON-NLS-1$
                }
            }
        } );

        IEclipsePreferences prefs = new ConfigurationScope().getNode( Application.PLUGIN_ID );

        boolean auto_oid = prefs.getBoolean( GeneralPreferencePage.AUTO_OID, true );
        autoOID.setSelection( auto_oid );

        Label label = new Label( container, SWT.NULL );
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.ConfigurationScope

    // Note: uses the pre Eclipse 3.6 way of specifying search scopes (deprecated since 3.6)
    boolean isUseProjectSettings = useProjectSettingsButton.getSelection();
    link.setEnabled(!isUseProjectSettings);
    if(!isUseProjectSettings) {
      setSearchContexts(
        getPreferenceStore(), new IScopeContext[] { new InstanceScope(), new ConfigurationScope() });
    }
    else {
      // copy instance values to project specific values
      setSearchContexts(getPreferenceStore(), new IScopeContext[] {
          new ProjectScope(currentProject()), new InstanceScope(), new ConfigurationScope() });
      setProjectSpecificValues();
    }
    updateFieldEditors(isUseProjectSettings);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.preferences.ConfigurationScope

    return current;
  }
 
  /** Get the preferences store. */
  public Preferences getStore() {
    return new ConfigurationScope().getNode(CORE_PREFERENCES);
  }
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.