Package org.eclipse.php.internal.core.preferences

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


   * @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

TOP

Related Classes of org.eclipse.php.internal.core.preferences.PreferencesSupport

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.