Examples of toStringWithAncestors()


Examples of org.aspectj.org.eclipse.jdt.internal.core.JavaElement.toStringWithAncestors()

    } catch (Exception e) {
      // it's just for debug purposes... ignore all exceptions in this area
    }
    try {
      JavaElement javaElement = (JavaElement)match.getElement();
      System.out.println("\tJava element: "+ javaElement.toStringWithAncestors()); //$NON-NLS-1$
      if (!javaElement.exists()) {
        System.out.println("\t\tWARNING: this element does NOT exist!"); //$NON-NLS-1$
      }
    } catch (Exception e) {
      // it's just for debug purposes... ignore all exceptions in this area
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.JavaElement.toStringWithAncestors()

    if (match instanceof TypeReferenceMatch) {
      try {
        TypeReferenceMatch typeRefMatch = (TypeReferenceMatch) match;
        JavaElement local = (JavaElement) typeRefMatch.getLocalElement();
        if (local != null) {
          System.out.println("\tLocal element: "+ local.toStringWithAncestors()); //$NON-NLS-1$
        }
        IJavaElement[] others = typeRefMatch.getOtherElements();
        if (others != null) {
          int length = others.length;
          if (length > 0) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.JavaElement.toStringWithAncestors()

          int length = others.length;
          if (length > 0) {
            System.out.println("\tOther elements:"); //$NON-NLS-1$
            for (int i=0; i<length; i++) {
              JavaElement other = (JavaElement) others[i];
              System.out.println("\t\t- "+ other.toStringWithAncestors()); //$NON-NLS-1$
            }
          }
        }
      } catch (Exception e) {
        // it's just for debug purposes... ignore all exceptions in this area
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.core.JavaElement.toStringWithAncestors()

  if (this.elements != null) {
    result.append("["); //$NON-NLS-1$
    for (int i = 0, length = this.elements.size(); i < length; i++) {
      JavaElement element = (JavaElement)this.elements.get(i);
      result.append("\n\t"); //$NON-NLS-1$
      result.append(element.toStringWithAncestors());
    }
    result.append("\n]"); //$NON-NLS-1$
  } else {
    if (this.pathsCount == 0) {
      result.append("[empty scope]"); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.dltk.internal.core.ExternalProjectFragment.toStringWithAncestors()

          .getPathName(EnvironmentPathUtils.getLocalPath(fragment
              .getPath()));
      if (name != null) {
        return name;
      }
      return fragment.toStringWithAncestors();
    }
    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=295256
    if (element instanceof IProjectFragment) {
      IProjectFragment fragment = (IProjectFragment) element;
      return fragment.getElementName();
View Full Code Here

Examples of org.eclipse.dltk.internal.core.ModelElement.toStringWithAncestors()

        // String idB = new String(CharOperation.replace(
        // elementB.toStringWithAncestors().toCharArray(),
        // getExternalJCLPathString().toCharArray(),
        // tempJCLPath));
        return elementA.toStringWithAncestors().compareTo(
            elementB.toStringWithAncestors().toString());
        // return idA.compareTo(idB);
      }
    };
    org.eclipse.dltk.internal.core.util.Util.sort(elements, comparer);
  }
View Full Code Here

Examples of org.eclipse.dltk.internal.core.ModelElement.toStringWithAncestors()

      for (int i = 0, length = elements.length; i < length; i++) {
        ModelElement element = (ModelElement) elements[i];
        if (element == null) {
          buffer.append("<null>");
        } else {
          buffer.append(element
              .toStringWithAncestors(showResolvedInfo));
        }
        if (i != length - 1)
          buffer.append("\n");
      }
View Full Code Here

Examples of org.eclipse.jdt.internal.core.JavaElement.toStringWithAncestors()

    } catch (Exception e) {
      // it's just for debug purposes... ignore all exceptions in this area
    }
    try {
      JavaElement javaElement = (JavaElement)match.getElement();
      System.out.println("\tJava element: "+ javaElement.toStringWithAncestors()); //$NON-NLS-1$
      if (!javaElement.exists()) {
        System.out.println("\t\tWARNING: this element does NOT exist!"); //$NON-NLS-1$
      }
    } catch (Exception e) {
      // it's just for debug purposes... ignore all exceptions in this area
View Full Code Here

Examples of org.eclipse.jdt.internal.core.JavaElement.toStringWithAncestors()

    if (match instanceof ReferenceMatch) {
      try {
        ReferenceMatch refMatch = (ReferenceMatch) match;
        JavaElement local = (JavaElement) refMatch.getLocalElement();
        if (local != null) {
          System.out.println("\tLocal element: "+ local.toStringWithAncestors()); //$NON-NLS-1$
        }
        if (match instanceof TypeReferenceMatch) {
          IJavaElement[] others = ((TypeReferenceMatch) refMatch).getOtherElements();
          if (others != null) {
            int length = others.length;
View Full Code Here

Examples of org.eclipse.jdt.internal.core.JavaElement.toStringWithAncestors()

            int length = others.length;
            if (length > 0) {
              System.out.println("\tOther elements:"); //$NON-NLS-1$
              for (int i=0; i<length; i++) {
                JavaElement other = (JavaElement) others[i];
                System.out.println("\t\t- "+ other.toStringWithAncestors()); //$NON-NLS-1$
              }
            }
          }
        }
      } catch (Exception e) {
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.