Examples of PreferencesSupport


Examples of com.dubture.composer.core.preferences.PreferencesSupport

      setDirty(false);
      saving = false;
     
      // save actions
      IPreferenceStore store = ComposerPlugin.getDefault().getPreferenceStore();
      PreferencesSupport prefSupport = new PreferencesSupport(ComposerPlugin.ID, store);
     
      Boolean buildpath = prefSupport.getBooleanPreferencesValue(ComposerPreferenceConstants.SAVEACTION_BUILDPATH, false, project);
      Boolean update = prefSupport.getBooleanPreferencesValue(ComposerPreferenceConstants.SAVEACTION_UPDATE, false, project);
     
      update = update && (newDepSinceLastSave || newDevDepSinceLastSave);

      if (update) {
        ComposerJob job;
View Full Code Here

Examples of org.eclipse.php.internal.core.preferences.PreferencesSupport

  /*
   * Gets the preferences set for this editor in the Save Actions section
   */
  public void updateSaveActionsState(IProject project) {
    PreferencesSupport prefSupport = new PreferencesSupport(PHPUiPlugin.ID,
        PHPUiPlugin.getDefault().getPluginPreferences());
    String doCleanupPref = prefSupport.getPreferencesValue(
        PreferenceConstants.FORMAT_REMOVE_TRAILING_WHITESPACES, null,
        project);
    String ignoreEmptyPref = prefSupport
        .getPreferencesValue(
            PreferenceConstants.FORMAT_REMOVE_TRAILING_WHITESPACES_IGNORE_EMPTY,
            null, project);

    saveActionsEnabled = Boolean.parseBoolean(doCleanupPref);
View Full Code Here

Examples of org.eclipse.php.internal.core.preferences.PreferencesSupport

   * @param project
   *            an {@link IProject}.
   * @return True, if ASP tags are supported, false otherwise.
   */
  public static boolean isUsingASPTags(IProject project) {
    PreferencesSupport preferencesSupport = new PreferencesSupport(
        PHPCorePlugin.getPluginId(), PHPCorePlugin.getDefault()
            .getPluginPreferences());
    String value = preferencesSupport
        .getPreferencesValue(
            CorePreferenceConstants.Keys.EDITOR_USE_ASP_TAGS, null,
            project);
    if (value == null) {
      value = preferencesSupport
          .getWorkspacePreferencesValue(CorePreferenceConstants.Keys.EDITOR_USE_ASP_TAGS);
    }
    return Boolean.valueOf(value).booleanValue();
  }
View Full Code Here

Examples of org.eclipse.php.internal.ui.preferences.util.PreferencesSupport

  @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);
   
    if (executable == null || executable.isEmpty()) {
      // the user has not set any preference for PHP executable yet,
      // so try finding any PHP executable, e.g. contributed via the
      // phpExe extension point
View Full Code Here

Examples of org.eclipse.php.internal.ui.preferences.util.PreferencesSupport

    nameGroup.notifyObservers();
    projectTemplateValidator = new Validator(this) {
      @Override
      protected void finishValidation() throws ValidationException {
        IPreferenceStore store = ComposerPlugin.getDefault().getPreferenceStore();
        PreferencesSupport prefSupport = new PreferencesSupport(ComposerPlugin.ID, store);
        String executable = prefSupport.getPreferencesValue(Keys.PHP_EXECUTABLE, null, null);
       
        if (executable == null || executable.isEmpty()) {
          // the user has not set any preference for PHP executable yet,
          // so try finding any PHP executable, e.g. contributed via the
          // phpExe extension point
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.