Package org.vimplugin.preferences

Source Code of org.vimplugin.preferences.PreferenceInitializer

/*
* Vimplugin
*
* Copyright (c) 2007 by The Vimplugin Project.
*
* Released under the GNU General Public License
* with ABSOLUTELY NO WARRANTY.
*
* See the file COPYING for more information.
*/
package org.vimplugin.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import org.vimplugin.VimPlugin;

/**
* Initializes default preference values.
*/
public class PreferenceInitializer
  extends AbstractPreferenceInitializer
{
  /**
   * @see AbstractPreferenceInitializer#initializeDefaultPreferences()
   */
  @Override
  public void initializeDefaultPreferences() {
    VimPlugin plugin = VimPlugin.getDefault();
    IPreferenceStore store = plugin.getPreferenceStore();
    store.setDefault(PreferenceConstants.P_PORT, 3219);
    store.setDefault(PreferenceConstants.P_EMBED,
        "true".equals(plugin.getProperty("gvim.embed.default")));
    store.setDefault(PreferenceConstants.P_TABBED, true);
    store.setDefault(PreferenceConstants.P_FOCUS_AUTO_CLICK, false);
    store.setDefault(PreferenceConstants.P_START_ECLIMD, true);
    store.setDefault(PreferenceConstants.P_GVIM,
        plugin.getProperty("gvim.default"));
  }
}
TOP

Related Classes of org.vimplugin.preferences.PreferenceInitializer

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.