@Override protected final void getTypesInHierarchy(IType type, List<IType> res) { ITypeHierarchy hierarchy= getHierarchy(); if (hierarchy != null) { IType[] types= hierarchy.getSubtypes(type); if (isObject(type)) { for (int i= 0; i < types.length; i++) { IType curr= types[i]; if (!isAnonymousFromInterface(curr)) { res.add(curr); } } } else { for (int i= 0; i < types.length; i++) { res.add(types[i]); } } } }
protected final void getTypesInHierarchy(IType type, List res) { ITypeHierarchy hierarchy= getHierarchy(); if (hierarchy != null) { IType[] types= hierarchy.getSubtypes(type); if (isObject(type)) { for (int i= 0; i < types.length; i++) { IType curr= types[i]; if (!isAnonymousFromInterface(curr)) { res.add(curr); } } } else { for (int i= 0; i < types.length; i++) { res.add(types[i]); } } } }
@Override protected final void getTypesInHierarchy(IType type, List<IType> res) { ITypeHierarchy hierarchy= getHierarchy(); if (hierarchy != null) { IType[] types= hierarchy.getSubtypes(type); if (isObject(type)) { for (int i= 0; i < types.length; i++) { IType curr= types[i]; if (!isAnonymousFromInterface(curr)) { res.add(curr); } } } else { for (int i= 0; i < types.length; i++) { res.add(types[i]); } } } }
public SubTypeHierarchyViewer(Composite parent, TypeHierarchyLifeCycle lifeCycle, IWorkbenchPart part) { super(parent, new SubTypeHierarchyContentProvider(lifeCycle), lifeCycle, part); }
public SubTypeHierarchyViewer(Composite parent, TypeHierarchyLifeCycle lifeCycle) { super(parent, new SubTypeHierarchyContentProvider(lifeCycle), lifeCycle); }
public SubTypeHierarchyViewer(Composite parent, TypeHierarchyLifeCycle lifeCycle) { super(parent, new SubTypeHierarchyContentProvider(lifeCycle), lifeCycle); }
protected IType getParentType(IType type) { ITypeHierarchy hierarchy= getHierarchy(); if (hierarchy != null) { return hierarchy.getSuperclass(type); // dont handle interfaces } return null; }
@Override protected IType getParentType(IType type) { ITypeHierarchy hierarchy= getHierarchy(); if (hierarchy != null) { return hierarchy.getSuperclass(type); // dont handle interfaces } return null; }
@Override protected IType getParentType(IType type) { ITypeHierarchy hierarchy= getHierarchy(); if (hierarchy != null) { return hierarchy.getSuperclass(type); // dont handle interfaces } return null; }