Package org.eclipse.php.ui.preferences

Examples of org.eclipse.php.ui.preferences.IPHPPreferencePageBlock


    return super.performCancel();
  }

  protected void performDefaults() {
    for (int i = 0; i < fConfigurationBlocks.length; i++) {
      IPHPPreferencePageBlock block = fConfigurationBlocks[i];
      block.performDefaults();
    }
    super.performDefaults();
  }
View Full Code Here


    super.performDefaults();
  }

  public boolean performOk() {
    for (int i = 0; i < fConfigurationBlocks.length; i++) {
      IPHPPreferencePageBlock block = fConfigurationBlocks[i];
      block.performOK(false);
    }
    return super.performOk();
  }
View Full Code Here

    if (fConfigurationBlocks == null) {
      fConfigurationBlocks = new IPHPPreferencePageBlock[0];
    }
    HashMap map = new HashMap();
    for (int i = 0; i < fConfigurationBlocks.length; i++) {
      IPHPPreferencePageBlock block = fConfigurationBlocks[i];
      map.put(block.getComparableName(), block);
    }
    Set keys = map.keySet();

    fConfigurationBlocks = new IPHPPreferencePageBlock[keys.size()];
    ArrayList keysList = new ArrayList();
View Full Code Here

  protected abstract String getPreferencePageID();

  public boolean performCancel() {
    for (int i = 0; i < fConfigurationBlocks.length; i++) {
      IPHPPreferencePageBlock block = fConfigurationBlocks[i];
      block.performCancel();
    }
    return super.performCancel();
  }
View Full Code Here

    if (addonFactories == null) {
      return new IPHPPreferencePageBlock[0];
    }
    List<IPHPPreferencePageBlock> addons = new LinkedList<IPHPPreferencePageBlock>();
    for (Object addonFactory : addonFactories) {
      IPHPPreferencePageBlock pageBlock = ((PHPPreferencePageBlocksFactory) addonFactory)
          .createPHPPreferencePageBlock();
      if (pageBlock != null) {
        addons.add(pageBlock);
      }
    }
View Full Code Here

    }
  }

  static class PageBlockComparator implements Comparator {
    public int compare(Object o1, Object o2) {
      IPHPPreferencePageBlock firstBlock = (IPHPPreferencePageBlock) o1;
      IPHPPreferencePageBlock secondBlock = (IPHPPreferencePageBlock) o2;
      if (firstBlock != null && secondBlock != null) {
        boolean firstIsPDT = firstBlock.getClass().getName()
            .startsWith(PDT_PREFIX);
        boolean secondIsPDT = secondBlock.getClass().getName()
            .startsWith(PDT_PREFIX);
        if (firstIsPDT) {
          if (!secondIsPDT) {
            return -1;
          }
        } else {
          if (secondIsPDT) {
            return 1;
          }
        }
        return firstBlock.getComparableName().compareTo(
            secondBlock.getComparableName());
      }
      if (firstBlock == null) {
        return secondBlock == null ? 0 : -1;
      }
      return 1;
View Full Code Here

TOP

Related Classes of org.eclipse.php.ui.preferences.IPHPPreferencePageBlock

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.