Package org.eclipse.help

Examples of org.eclipse.help.IUAElement


  public IUAElement[] getChildren() {
    List<IUAElement> r = new ArrayList<IUAElement>();
    if (super.getChildren() != null) {
      r.addAll(Arrays.asList(super.getChildren()));
      for (Iterator<IUAElement> it = r.iterator(); it.hasNext();) {
        IUAElement e = it.next();
        if (e instanceof ITopic
            && "version".equals(((ITopic) e).getLabel())) {
          it.remove();
          break;
        }
View Full Code Here


  public Object getChildren(Class clazz) {
    IUAElement[] children = getChildren();
    if (children.length > 0) {
      List list = new ArrayList();
      for (int i=0;i<children.length;++i) {
        IUAElement child = children[i];
        if (clazz.isAssignableFrom(child.getClass())) {
          list.add(child);
        }
      }
      return list.toArray((Object[])Array.newInstance(clazz, list.size()));
    }
View Full Code Here

TOP

Related Classes of org.eclipse.help.IUAElement

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.