Package org.eclipse.dltk.core

Examples of org.eclipse.dltk.core.IParent


  @Override
  protected IType createTypeHandle(String name) {
    Openable openable = this.currentPossibleMatch.openable;
    if (openable instanceof SourceModule || openable instanceof ExternalSourceModule
            || openable instanceof BuiltinSourceModule) {
      IParent e = ((IParent) openable);
      if (name.indexOf("::") != -1) {
        String[] split = name.split("::");
        for (int i = 0; i < split.length; i++) {
          if (e instanceof ISourceModule) {
            e = ((ISourceModule) e).getType(split[i]);
View Full Code Here


             * Expression commandId = s.getAt(0); final IParent e = element; if (commandId != null
             * && commandId instanceof SimpleReference) { String qname = ((SimpleReference)
             * commandId) .getName(); } }
             */
          else {
            final IParent e = element;
            List statements2 = findExtractBlocks(nde);
            if (statements2.size() > 0) {
              searchAddElementsTo(statements2, node, e, selectionElements);
            }
          }
View Full Code Here

          IType type = (IType) childs[i];
          String qname = name + delimiter + type.getElementName();
          if (qname.equals(parentName)) {
            return type;
          }
          IParent val = findTypeFrom(type.getChildren(), qname, parentName, delimiter);
          if (val != null) {
            return val;
          }
        }
      }
View Full Code Here

             * (RutaStatement) nde; Expression commandId = s.getAt(0); final IParent e =
             * element; if (commandId != null && commandId instanceof SimpleReference) { String
             * qname = ((SimpleReference) commandId) .getName(); } }
             */
          else {
            final IParent e = element;
            List statements2 = findExtractBlocks(nde);
            if (statements2.size() > 0) {
              searchAddElementsTo(statements2, node, e, selectionElements);
            }
          }
View Full Code Here

          IType type = (IType) childs[i];
          String qname = name + delimiter + type.getElementName();
          if (qname.equals(parentName)) {
            return type;
          }
          IParent val = findTypeFrom(type.getChildren(), qname, parentName, delimiter);
          if (val != null) {
            return val;
          }
        }
      }
View Full Code Here

  @Override
  protected IType createTypeHandle(String name) {
    Openable openable = this.currentPossibleMatch.openable;
    if (openable instanceof SourceModule || openable instanceof ExternalSourceModule
            || openable instanceof BuiltinSourceModule) {
      IParent e = ((IParent) openable);
      if (name.indexOf("::") != -1) {
        String[] split = name.split("::");
        for (int i = 0; i < split.length; i++) {
          if (e instanceof ISourceModule) {
            e = ((ISourceModule) e).getType(split[i]);
View Full Code Here

    }

    private void computeFoldingStructure(FoldingStructureComputationContext ctx)
    {
        IParent parent = (IParent) fInput;
        try {
            if (!(fInput instanceof ISourceReference))
                return;
            computeFoldingStructure(parent.getChildren(), ctx);
        } catch (ModelException x) {
        }
    }
View Full Code Here

            IModelElement element = elements[i];

            computeFoldingStructure(element, ctx);

            if (element instanceof IParent) {
                IParent parent = (IParent) element;
                computeFoldingStructure(parent.getChildren(), ctx);
            }
        }
    }
View Full Code Here

    }

    public Object[] getChildren(Object parent)
    {
        if (parent instanceof IParent) {
            IParent c = (IParent) parent;
            try {
                return OutlineFilter.filterChildrenForOutline(parent,
                        c.getChildren());
            } catch (ModelException x) {
                // https://bugs.eclipse.org/bugs/show_bug.cgi?id=38341
                // don't log NotExist exceptions as this is a valid case
                // since we might have been posted and the element
                // removed in the meantime.
View Full Code Here

    }

    public boolean hasChildren(Object parent)
    {
        if (parent instanceof IParent) {
            IParent c = (IParent) parent;
            try {
                IModelElement[] children = OutlineFilter
                        .filter(c.getChildren());
                return (children != null && children.length > 0);
            } catch (ModelException x) {
                // https://bugs.eclipse.org/bugs/show_bug.cgi?id=38341
                // don't log NotExist exceptions as this is a valid case
                // since we might have been posted and the element
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.core.IParent

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.