Examples of IParent


Examples of org.aspectj.org.eclipse.jdt.core.IParent

* Returns the anchor used for positioning in the destination for
* the element being renamed. For renaming, if no anchor has
* explicitly been provided, the element is anchored in the same position.
*/
private IJavaElement resolveRenameAnchor(IJavaElement element) throws JavaModelException {
  IParent parent = (IParent) element.getParent();
  IJavaElement[] children = parent.getChildren();
  for (int i = 0; i < children.length; i++) {
    IJavaElement child = children[i];
    if (child.equals(element)) {
      return child;
    }
View Full Code Here

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

Examples of org.eclipse.dltk.core.IParent

             * 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

Examples of org.eclipse.dltk.core.IParent

          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

Examples of org.eclipse.dltk.core.IParent

             * (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

Examples of org.eclipse.dltk.core.IParent

          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

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

Examples of org.eclipse.dltk.core.IParent

    }

    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

Examples of org.eclipse.dltk.core.IParent

            IModelElement element = elements[i];

            computeFoldingStructure(element, ctx);

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

Examples of org.eclipse.dltk.core.IParent

    }

    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
TOP
Copyright © 2018 www.massapi.com. 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.