Package org.eclipse.jface.preference

Examples of org.eclipse.jface.preference.IPreferenceStore


        SigilCore.getDefault().getPreferenceStore().addPropertyChangeListener(this);
    }

    public void destroy()
    {
        IPreferenceStore prefs = SigilCore.getDefault().getPreferenceStore();
        if (prefs != null)
        {
            prefs.removePropertyChangeListener(this);
        }
    }   
View Full Code Here


            ".classpath", ".settings" };

    @Override
    public void initializeDefaultPreferences()
    {
        IPreferenceStore store = SigilCore.getDefault().getPreferenceStore();
        setUpDefaults(store);
        migrateOldPreferences(store);
    }
View Full Code Here

*/
public class PreferenceInitializer extends AbstractPreferenceInitializer {

  @Override
  public void initializeDefaultPreferences() {
    IPreferenceStore store = PlayPlugin.getDefault().getPreferenceStore();

    store.setDefault(PlayPlugin.PREF_BROWSER, PlayPlugin.PREF_BROWSER_INTERNAL);

    RouteEditor.initRoutePrefStore(store);

    ConfEditor.initConfPrefStore(store);

View Full Code Here

  ModelInspector inspector;

  public RouteEditor() {
    super();
    setSourceViewerConfiguration(new RouteConfiguration(this));
    IPreferenceStore store = PlayPlugin.getDefault().getPreferenceStore();
    useSoftTabs = store.getBoolean(SOFT_TABS);
    softTabsWidth = store.getInt(SOFT_TABS_WIDTH);
  }
View Full Code Here

  public static final String SOFT_TABS = "conf_soft_tabs";
  public static final String SOFT_TABS_WIDTH = "conf_soft_tabs_width";

  public ConfEditor() {
    super();
    IPreferenceStore store = PlayPlugin.getDefault().getPreferenceStore();
    useSoftTabs = store.getBoolean(SOFT_TABS);
    softTabsWidth = store.getInt(SOFT_TABS_WIDTH);
  }
View Full Code Here

  private ProjectionSupport projectionSupport;

  public HTMLEditor() {
    super();
    setSourceViewerConfiguration(new HTMLConfiguration(this));
    IPreferenceStore store = PlayPlugin.getDefault().getPreferenceStore();
    useSoftTabs = store.getBoolean(SOFT_TABS);
    softTabsWidth = store.getInt(SOFT_TABS_WIDTH);
  }
View Full Code Here

public abstract class AbstractEnvironmentFactory implements EnvironmentFactory {

  @Override
  public Environment getEnvironment(IProject project) {

    IPreferenceStore store = getPreferenceStore();
    PreferencesSupport prefSupport = new PreferencesSupport(getPluginId(), store);
    String executable = prefSupport.getPreferencesValue(getExecutableKey(), null, project);
    String useProjectPhar = prefSupport.getPreferencesValue(getUseProjectKey(), null, project);
    String systemPhar = prefSupport.getPreferencesValue(getScriptKey(), null, project);
   
View Full Code Here

        }
    }

    protected void incrementalBuild(IResourceDelta delta,
                                    IProgressMonitor monitor) throws CoreException {
      IPreferenceStore store = DroolsEclipsePlugin.getDefault().getPreferenceStore();
        boolean fullBuild = store.getBoolean( IDroolsConstants.CROSS_BUILD ) || store.getBoolean( IDroolsConstants.BUILD_ALL );
       
        if ( !fullBuild ) {
          fullBuild = DroolsEclipsePlugin.getDefault().resetForceFullBuild();
        }
       
View Full Code Here

  @Override
  @SuppressWarnings("unchecked")
  public Object execute(ExecutionEvent event) throws ExecutionException {

    IPreferenceStore store = PEXAnalysisUIPlugin.getDefault().getParentPreferenceStore();
   
    String defaultFixers = store.getString(PreferenceConstants.PREF_PHPCS_USE_DEFAULT_FIXERS);
    String config = store.getString(PreferenceConstants.PREF_PHPCS_CONFIG);
   
    fixerArgs = new ArrayList<String>();
    fixerArgs.add("file");
   
    if (!PreferenceConstants.PREF_PHPCS_CONFIG_DEFAULT.equals(config)) {
      fixerArgs.add(" --config=" + config.replace("phpcs_config_", ""));
    }
   
    if ("false".equals(defaultFixers)) {
     
      List<String> fixers = new ArrayList<String>();
     
      for (String key : PEXPreferenceNames.getPHPCSFixerOptions()) {
       
        String option = store.getString(key);
        if (option != null && option.length() > 0) {
         
          String optionValue = getOption(option);
         
          if (optionValue != null) {
View Full Code Here

    super.stop(context);
  }
 
  public IPreferenceStore getCombinedPreferenceStore() {
    if (fCombinedPreferenceStore == null) {
      IPreferenceStore generalTextStore = EditorsUI.getPreferenceStore();
      fCombinedPreferenceStore = new ChainedPreferenceStore(
          new IPreferenceStore[] { getPreferenceStore(),
              generalTextStore });
    }
    return fCombinedPreferenceStore;
View Full Code Here

TOP

Related Classes of org.eclipse.jface.preference.IPreferenceStore

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.