Package org.eclipse.core.runtime.preferences

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


  protected long deltaExpiration;

  public WorkspaceDescription(String name) {
    super(name);
    // initialize based on the values in the default preferences
    IEclipsePreferences node = new DefaultScope().getNode(ResourcesPlugin.PI_RESOURCES);
    autoBuilding = node.getBoolean(ResourcesPlugin.PREF_AUTO_BUILDING, PreferenceInitializer.PREF_AUTO_BUILDING_DEFAULT);
    fileStateLongevity = node.getLong(ResourcesPlugin.PREF_FILE_STATE_LONGEVITY, PreferenceInitializer.PREF_FILE_STATE_LONGEVITY_DEFAULT);
    maxBuildIterations = node.getInt(ResourcesPlugin.PREF_MAX_BUILD_ITERATIONS, PreferenceInitializer.PREF_MAX_BUILD_ITERATIONS_DEFAULT);
    maxFileStates = node.getInt(ResourcesPlugin.PREF_MAX_FILE_STATES, PreferenceInitializer.PREF_MAX_FILE_STATES_DEFAULT);
    maxFileStateSize = node.getLong(ResourcesPlugin.PREF_MAX_FILE_STATE_SIZE, PreferenceInitializer.PREF_MAX_FILE_STATE_SIZE_DEFAULT);
View Full Code Here


*/
public class JSConsolePreferencesInitializer extends AbstractPreferenceInitializer {

    @Override
    public void initializeDefaultPreferences() {
        Preferences node = new DefaultScope().getNode("com.aptana.js.interactive_console");

        //text
        node.put(JSConsoleConstants.PREF_CONTINUE_PROMPT, JSConsoleConstants.DEFAULT_CONTINUE_PROMPT);
        node.put(JSConsoleConstants.PREF_NEW_PROMPT, JSConsoleConstants.DEFAULT_NEW_PROMPT);

View Full Code Here

    public static final String PYDEV_REMOTE_DEBUGGER_PORT = "PYDEV_REMOTE_DEBUGGER_PORT";
    public static final int DEFAULT_REMOTE_DEBUGGER_PORT = 5678;

    @Override
    public void initializeDefaultPreferences() {
        Preferences node = new DefaultScope().getNode(PydevPlugin.DEFAULT_PYDEV_SCOPE);
        node.putInt(PYDEV_REMOTE_DEBUGGER_PORT, DEFAULT_REMOTE_DEBUGGER_PORT);
    }
View Full Code Here


    @Override
    public void initializeDefaultPreferences()
    {
        IEclipsePreferences defaults = new DefaultScope().getNode( Application.PLUGIN_ID );
        defaults.put( GeneralPreferencePage.COMPANY_OID, "1.2.3.4.5.6" ); //$NON-NLS-1$
        defaults.putBoolean( GeneralPreferencePage.AUTO_OID, true );
        defaults.put( SchemaPreferencePage.DEFAULT_DIRECTORY, System.getProperty( "user.home" ) ); //$NON-NLS-1$
        defaults.putBoolean( SchemaPreferencePage.SAVE_WORKSPACE, true );
        defaults.putBoolean( SchemaPreferencePage.SPECIFIC_CORE, false );
View Full Code Here

  @Override
  @SuppressWarnings("deprecation")
  public void initializeDefaultPreferences() {

    IEclipsePreferences p = ((IScopeContext) new DefaultScope())
        .getNode(SymfonyIndex.PLUGIN_ID);

    p.putInt(DB_CACHE_SIZE, 32000); // 32Mb
    p.put(DB_CACHE_TYPE, "LRU");
    p.putInt(DB_LOCK_MODE, 0); // no transaction isolation
View Full Code Here

  public PreferenceInitializer() {
  }

  public void initializeDefaultPreferences() {
    IEclipsePreferences node = new DefaultScope().getNode(Activator.PLUGIN_ID);
    node.put(Activator.PREF_AUTO_UPDATE, "true");
    node.put(Activator.PREF_UPDATE_INTERVAL, "30");
    node.put(Activator.PREF_POPUP_ON_ERROR, "false");

    String[] filterprefs = new String[] { Activator.PREF_FILTER_FAIL, Activator.PREF_FILTER_FAIL_TEST, Activator.PREF_FILTER_NO_BUILD, Activator.PREF_FILTER_SUCCESS };
View Full Code Here


public class PreferenceInitializer extends AbstractPreferenceInitializer {

  public void initializeDefaultPreferences() {
    Preferences preferences = new DefaultScope()
        .getNode(SyncResourcesCore.PLUGIN_ID);
    preferences.putInt(PreferenceConstants.LOCAL_RESOURCE_ADDITION,
        PreferenceConstants.COMMIT_VALUE);
    preferences.putInt(PreferenceConstants.LOCAL_RESOURCE_CHANGE,
        PreferenceConstants.COMMIT_VALUE);
View Full Code Here

   */
  public void start(BundleContext ctxt) throws Exception {
    super.start(ctxt);
    attachListener();
    preferences = new InstanceScope().getNode(SyncResourcesCore.PLUGIN_ID);
    defaultPreferences = new DefaultScope()
        .getNode(SyncResourcesCore.PLUGIN_ID);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.preferences.DefaultScope

Copyright © 2018 www.massapicom. 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.