Package org.eclipse.php.formatter.core

Examples of org.eclipse.php.formatter.core.CodeFormatterPreferences


  public PSR2FormatterPreferences() {
  }

  public CodeFormatterPreferences initValues() {
    CodeFormatterPreferences preferences = new CodeFormatterPreferences();

    preferences.indentationChar = CodeFormatterPreferences.SPACE_CHAR;
    preferences.indentationSize = 4;
    preferences.tabSize = 4;
View Full Code Here


        String name = element.getAttribute("name"); //$NON-NLS-1$
        if (element.getAttribute("class") != null) { //$NON-NLS-1$
          try {
            ICodeFormatterPreferencesInitializer initializer = (ICodeFormatterPreferencesInitializer) element
                .createExecutableExtension("class"); //$NON-NLS-1$
            CodeFormatterPreferences preferences = initializer
                .initValues();
            final Profile extensionProfile = new BuiltInProfile(id,
                name + builtinPostFix, preferences.getMap(),
                ++order);
            profiles.put(extensionProfile.getID(), extensionProfile);
            profilesByName.add(extensionProfile);
          } catch (CoreException e) {
            FormatterUIPlugin.log(e);
View Full Code Here

      fTitle = Messages.format(
          FormatterMessages.ModifyDialog_dialog_title,
          profile.getName());
    }
    preferences = fProfile.getSettings();
    codeFormatterPreferences = new CodeFormatterPreferences(preferences);
    updateStatus(fStandardStatus);
    setStatusLineAboveButtons(false);
    fTabPages = new ArrayList();
    fDialogSettings = FormatterUIPlugin.getDefault().getDialogSettings();
  }
View Full Code Here

  public ZendFrameworkFormatterPreferences() {
  }

  public CodeFormatterPreferences initValues() {
    CodeFormatterPreferences preferences = new CodeFormatterPreferences();

    preferences.indentationChar = CodeFormatterPreferences.SPACE_CHAR;
    preferences.indentationSize = 4;
    preferences.tabSize = 4;
View Full Code Here

  private class PreviewController implements Observer {

    public PreviewController() {
      fProfileManager.addObserver(this);
      fPhpPreview.setPreferences(new CodeFormatterPreferences(
          fProfileManager.getSelected().getSettings()));
      fPhpPreview.update();
    }
View Full Code Here

      switch (value) {
      case ProfileManager.PROFILE_CREATED_EVENT:
      case ProfileManager.PROFILE_DELETED_EVENT:
      case ProfileManager.SELECTION_CHANGED_EVENT:
      case ProfileManager.SETTINGS_CHANGED_EVENT:
        fPhpPreview.setPreferences(new CodeFormatterPreferences(
            ((ProfileManager) o).getSelected().getSettings()));
        fPhpPreview.update();
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.php.formatter.core.CodeFormatterPreferences

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.