Package org.eclipse.ui.internal.dialogs

Examples of org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode


  /* (non-Javadoc)
   * @see org.eclipse.ui.internal.registry.CategorizedPageRegistryReader#findNode(java.lang.String)
   */
  Object findNode(String id) {
    for (int i = 0; i < nodes.size(); i++) {
      WorkbenchPreferenceNode node = (WorkbenchPreferenceNode) nodes.get(i);
      if (node.getId().equals(id)) {
        return node;
      }
    }
    return null;
  }
View Full Code Here


   * @see org.eclipse.ui.internal.registry.CategorizedPageRegistryReader#findNode(java.lang.Object, java.lang.String)
   */
  Object findNode(Object parent, String currentToken) {
    IPreferenceNode[] subNodes = ((WorkbenchPreferenceNode) parent).getSubNodes();
    for (int i = 0; i < subNodes.length; i++) {
      WorkbenchPreferenceNode node = (WorkbenchPreferenceNode) subNodes[i];
      if (node.getId().equals(currentToken)) {
        return node;
      }
    }
    return null;
  }
View Full Code Here

   */
  protected boolean readElement(IConfigurationElement element) {
    if (element.getName().equals(TAG_PAGE) == false) {
      return false;
    }
    WorkbenchPreferenceNode node = createNode(element);
    if (node != null) {
      nodes.add(node);
    }
    return true;
  }
View Full Code Here

   
    if (nameMissing || id == null || classMissing) {
      return null;
    }

    WorkbenchPreferenceNode node = new WorkbenchPreferenceNode(id, element);
    return node;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.dialogs.WorkbenchPreferenceNode

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.