Package org.eclipse.php.formatter.ui.preferences.ProfileManager

Examples of org.eclipse.php.formatter.ui.preferences.ProfileManager.CustomProfile


        }

        //should be only one profile in file
        if (profiles != null && profiles.size() > 0) {
          // update formatter configuration profile
          CustomProfile profile = (CustomProfile) profiles.iterator()
              .next();
          profileManager.addProfile(profile);
          profileManager.setSelected(profile);
          profileManager.commitChanges(scopeContext);
View Full Code Here


    final Map preferences = ((Profile) fSortedProfiles.get(fProfileCombo
        .getSelectionIndex())).getSettings();

    final String profileName = fNameText.getText();

    fCreatedProfile = new CustomProfile(profileName, preferences);
    fProfileManager.addProfile(fCreatedProfile);
    super.okPressed();
  }
View Full Code Here

      }
    }

    public void endElement(String uri, String localName, String qName) {
      if (qName.equals(XML_NODE_PROFILE)) {
        fProfiles.add(new CustomProfile(fName, fSettings));
        fName = null;
        fSettings = null;
      }
    }
View Full Code Here

    }

    private void renameButtonPressed() {
      if (fProfileManager.getSelected().isBuiltInProfile())
        return;
      final CustomProfile profile = (CustomProfile) fProfileManager
          .getSelected();
      final RenameProfileDialog renameDialog = new RenameProfileDialog(
          fComposite.getShell(), profile, fProfileManager);
      if (renameDialog.open() == Window.OK) {
        fProfileManager.setSelected(renameDialog.getRenamedProfile());
View Full Code Here

            message);
      }
      if (profiles == null || profiles.isEmpty())
        return;

      final CustomProfile profile = (CustomProfile) profiles.iterator()
          .next();

      if (fProfileManager.containsName(profile.getName())) {
        final AlreadyExistsDialog aeDialog = new AlreadyExistsDialog(
            fComposite.getShell(), profile, fProfileManager);
        if (aeDialog.open() != Window.OK)
          return;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.php.formatter.ui.preferences.ProfileManager.CustomProfile

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.