Codota Logo
ITypeHierarchy.getType
Code IndexAdd Codota to your IDE (free)

How to use
getType
method
in
org.eclipse.jdt.core.ITypeHierarchy

Best Java code snippets using org.eclipse.jdt.core.ITypeHierarchy.getType (Showing top 20 results out of 315)

  • Common ways to obtain ITypeHierarchy
private void myMethod () {
ITypeHierarchy i =
  • Codota IconIType type;type.newSupertypeHierarchy(null)
  • Codota IconCreateTypeHierarchyOperation op;op.getResult()
  • Codota IconIType type;SuperTypeHierarchyCache.getTypeHierarchy(type)
  • Smart code suggestions by Codota
}
origin: org.eclipse/org.eclipse.jdt.ui

protected void getRootTypes(List res) {
  ITypeHierarchy hierarchy= getHierarchy();
  if (hierarchy != null) {
    IType input= hierarchy.getType();
    if (input != null) {
      res.add(input);
    }
    // opened on a region: dont show
  }
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public Object[] getElements(Object element) {
  if (element instanceof ITypeHierarchy)
    return getChildren(((ITypeHierarchy) element).getType());
  return new Object[0];
}
origin: org.eclipse/org.eclipse.jdt.ui

public Object[] getElements(Object element) {
  if (element instanceof ITypeHierarchy)
    return getChildren(((ITypeHierarchy) element).getType());
  return new Object[0];
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private static Set<IType> computeTypesToShow(final ITypeHierarchy hierarchy, final Map<IType, IMember[]> typeToMemberArray) {
  final Set<IType> typesToShow= new HashSet<>();
  typesToShow.add(hierarchy.getType());
  typesToShow.addAll(computeShowableSubtypesOfMainType(hierarchy, typeToMemberArray));
  return typesToShow;
}
origin: org.eclipse/org.eclipse.jdt.ui

private static Set computeTypesToShow(final ITypeHierarchy hierarchy, final Map typeToMemberArray) {
  final Set typesToShow= new HashSet();
  typesToShow.add(hierarchy.getType());
  typesToShow.addAll(computeShowableSubtypesOfMainType(hierarchy, typeToMemberArray));
  return typesToShow;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

@Override
public Object[] getElements(final Object inputElement) {
  Assert.isTrue(inputElement == null || inputElement instanceof ITypeHierarchy);
  return new IType[] { fHierarchy.getType()};
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

@Override
public Object[] getElements(final Object inputElement) {
  Assert.isTrue(inputElement == null || inputElement instanceof ITypeHierarchy);
  return new IType[] { fHierarchy.getType()};
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private static Set<IType> computeShowableSubtypesOfMainType(final ITypeHierarchy hierarchy, final Map<IType, IMember[]> typeToMemberArray) {
  final Set<IType> result= new HashSet<>();
  final IType[] subtypes= hierarchy.getAllSubtypes(hierarchy.getType());
  for (int i= 0; i < subtypes.length; i++) {
    final IType subtype= subtypes[i];
    if (canBeShown(subtype, typeToMemberArray, hierarchy))
      result.add(subtype);
  }
  return result;
}
origin: org.eclipse/org.eclipse.jdt.ui

private static Set computeShowableSubtypesOfMainType(final ITypeHierarchy hierarchy, final Map typeToMemberArray) {
  final Set result= new HashSet();
  final IType[] subtypes= hierarchy.getAllSubtypes(hierarchy.getType());
  for (int i= 0; i < subtypes.length; i++) {
    final IType subtype= subtypes[i];
    if (canBeShown(subtype, typeToMemberArray, hierarchy))
      result.add(subtype);
  }
  return result;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private static Set<IType> computeShowableSubtypesOfMainType(final ITypeHierarchy hierarchy, final Map<IType, IMember[]> typeToMemberArray) {
  final Set<IType> result= new HashSet<>();
  final IType[] subtypes= hierarchy.getAllSubtypes(hierarchy.getType());
  for (int i= 0; i < subtypes.length; i++) {
    final IType subtype= subtypes[i];
    if (canBeShown(subtype, typeToMemberArray, hierarchy))
      result.add(subtype);
  }
  return result;
}
origin: eclipse/eclipse.jdt.ls

private ITypeHierarchy getCachedHierarchy(IType declaring, IProgressMonitor monitor) throws JavaModelException {
  if (fCachedHierarchy != null && declaring.equals(fCachedHierarchy.getType())) {
    return fCachedHierarchy;
  }
  fCachedHierarchy= declaring.newTypeHierarchy(new SubProgressMonitor(monitor, 1));
  return fCachedHierarchy;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private ITypeHierarchy getCachedHierarchy(IType declaring, IProgressMonitor monitor) throws JavaModelException {
  if (fCachedHierarchy != null && declaring.equals(fCachedHierarchy.getType()))
    return fCachedHierarchy;
  fCachedHierarchy= declaring.newTypeHierarchy(new SubProgressMonitor(monitor, 1));
  return fCachedHierarchy;
}
origin: org.eclipse/org.eclipse.jdt.ui

private ITypeHierarchy getCachedHierarchy(IType declaring, IProgressMonitor monitor) throws JavaModelException {
  if (fCachedHierarchy != null && declaring.equals(fCachedHierarchy.getType()))
    return fCachedHierarchy;
  fCachedHierarchy= declaring.newTypeHierarchy(new SubProgressMonitor(monitor, 1));
  return fCachedHierarchy;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

public int getExpandLevel() {
  ITypeHierarchy hierarchy= getHierarchy();
  if (hierarchy != null) {
    IType input= hierarchy.getType();
    if (input != null) {
      return getDepth(hierarchy, input) + 2;
    } else {
      return 5;
    }
  }
  return 2;
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

public ITypeHierarchy getDestinationTypeHierarchy(final IProgressMonitor monitor) throws JavaModelException {
  try {
    if (fCachedDestinationTypeHierarchy != null && fCachedDestinationTypeHierarchy.getType().equals(getDestinationType()))
      return fCachedDestinationTypeHierarchy;
    fCachedDestinationTypeHierarchy= getDestinationType().newTypeHierarchy(fOwner, monitor);
    return fCachedDestinationTypeHierarchy;
  } finally {
    monitor.done();
  }
}
origin: org.eclipse/org.eclipse.jdt.ui

public int getExpandLevel() {
  ITypeHierarchy hierarchy= getHierarchy();
  if (hierarchy != null) {
    IType input= hierarchy.getType();
    if (input != null) {
      return getDepth(hierarchy, input) + 2;
    } else {
      return 5;
    }
  }
  return 2;
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

public ITypeHierarchy getDestinationTypeHierarchy(final IProgressMonitor monitor) throws JavaModelException {
  try {
    if (fCachedDestinationTypeHierarchy != null && fCachedDestinationTypeHierarchy.getType().equals(getDestinationType()))
      return fCachedDestinationTypeHierarchy;
    fCachedDestinationTypeHierarchy= getDestinationType().newTypeHierarchy(fOwner, monitor);
    return fCachedDestinationTypeHierarchy;
  } finally {
    monitor.done();
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

private void checkAllParents(final IType parent) {
  final ITypeHierarchy th= getTreeInput();
  final IType root= getTreeInput().getType();
  IType type= parent;
  while (!root.equals(type)) {
    fTreeViewer.setChecked(type, true);
    type= th.getSuperclass(type);
  }
  fTreeViewer.setChecked(root, true);
}
origin: org.eclipse.jdt/org.eclipse.jdt.ui

private void checkAllParents(final IType parent) {
  final ITypeHierarchy th= getTreeInput();
  final IType root= getTreeInput().getType();
  IType type= parent;
  while (!root.equals(type)) {
    fTreeViewer.setChecked(type, true);
    type= th.getSuperclass(type);
  }
  fTreeViewer.setChecked(root, true);
}
origin: org.eclipse/org.eclipse.jdt.ui

private void checkAllParents(final IType parent) {
  final ITypeHierarchy th= getTreeInput();
  final IType root= getTreeInput().getType();
  IType type= parent;
  while (!root.equals(type)) {
    fTreeViewer.setChecked(type, true);
    type= th.getSuperclass(type);
  }
  fTreeViewer.setChecked(root, true);
}
org.eclipse.jdt.coreITypeHierarchygetType

Javadoc

Returns the type this hierarchy was computed for. Returns null if this hierarchy was computed for a region.

Popular methods of ITypeHierarchy

  • getAllSubtypes
    Returns all resolved subtypes (direct and indirect) of the given type, in no particular order, limit
  • contains
    Returns whether the given type is part of this hierarchy.
  • getAllSupertypes
    Returns all resolved supertypes of the given type, in bottom-up order. An empty array is returned if
  • getAllClasses
    Returns all classes in this type hierarchy's graph, in no particular order. Any classes in the creat
  • getAllTypes
    Returns all types in this type hierarchy's graph, in no particular order. Any types in the creation
  • getSuperclass
    Returns the resolved superclass of the given class, or null if the given class has no superclass, th
  • getAllSuperclasses
    Returns all resolved superclasses of the given class, in bottom-up order. An empty array is returned
  • refresh
    Re-computes the type hierarchy reporting progress.
  • getCachedFlags
    Return the flags associated with the given type (would be equivalent to IMember.getFlags()), or -1
  • getSubclasses
    Returns the direct resolved subclasses of the given class, in no particular order, limited to the cl
  • getSubtypes
    Returns the direct resolved subtypes of the given type, in no particular order, limited to the types
  • getSuperInterfaces
    Returns the direct resolved interfaces that the given type implements or extends, in no particular o
  • getSubtypes,
  • getSuperInterfaces,
  • getAllInterfaces,
  • getAllSuperInterfaces,
  • addTypeHierarchyChangedListener,
  • exists,
  • getImplementingClasses,
  • getSupertypes,
  • removeTypeHierarchyChangedListener

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • getContentResolver (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JPanel (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now