/** * Returns a new empty region. * * @return a new empty region */ public static IRegion newRegion() { return new Region(); }
/** * Returns a new empty region. * * @return a new empty region */ public static IRegion newRegion() { return new Region(); }
/** * Returns a new empty region. * * @return a new empty region */ public static IRegion newRegion() { return new Region(); }
/** * Returns a new empty region. * * @return a new empty region */ public static IRegion newRegion() { return new Region(); }
/** * Returns a new empty region. * * @return a new empty region */ public static IRegion newRegion() { return new Region(); }
/** * Returns a new empty region. * * @return a new empty region */ public static IRegion newRegion() { return new Region(); }
/** * Initializes this hierarchy's internal tables with the given size. */ protected void initialize(int size) { if (size < 10) { size = 10; } int smallSize = (size / 2); this.classToSuperclass = new HashMap<>(size); this.interfaces = new ArrayList<>(smallSize); this.missingTypes = new ArrayList<>(smallSize); this.rootClasses = new TypeVector(); this.typeToSubtypes = new HashMap<>(smallSize); this.typeToSuperInterfaces = new HashMap<>(smallSize); this.typeFlags = new HashMap<>(smallSize); this.projectRegion = new Region(); this.packageRegion = new Region(); this.files = new HashMap<>(5); } /**
/** * Initializes this hierarchy's internal tables with the given size. */ protected void initialize(int size) { if (size < 10) { size = 10; } int smallSize = (size / 2); this.classToSuperclass = new HashMap<>(size); this.interfaces = new ArrayList<>(smallSize); this.missingTypes = new ArrayList<>(smallSize); this.rootClasses = new TypeVector(); this.typeToSubtypes = new HashMap<>(smallSize); this.typeToSuperInterfaces = new HashMap<>(smallSize); this.typeFlags = new HashMap<>(smallSize); this.projectRegion = new Region(); this.packageRegion = new Region(); this.files = new HashMap<>(5); } /**
/** * Initializes this hierarchy's internal tables with the given size. */ protected void initialize(int size) { if (size < 10) { size = 10; } int smallSize = (size / 2); this.classToSuperclass = new HashMap<>(size); this.interfaces = new ArrayList<>(smallSize); this.missingTypes = new ArrayList<>(smallSize); this.rootClasses = new TypeVector(); this.typeToSubtypes = new HashMap<>(smallSize); this.typeToSuperInterfaces = new HashMap<>(smallSize); this.typeFlags = new HashMap<>(smallSize); this.projectRegion = new Region(); this.packageRegion = new Region(); this.files = new HashMap<>(5); } /**
/** * Initializes this hierarchy's internal tables with the given size. */ protected void initialize(int size) { if (size < 10) { size = 10; } int smallSize = (size / 2); this.classToSuperclass = new HashMap(size); this.interfaces = new ArrayList(smallSize); this.missingTypes = new ArrayList(smallSize); this.rootClasses = new TypeVector(); this.typeToSubtypes = new HashMap(smallSize); this.typeToSuperInterfaces = new HashMap(smallSize); this.typeFlags = new HashMap(smallSize); this.projectRegion = new Region(); this.packageRegion = new Region(); this.files = new HashMap(5); } /**
/** * Initializes this hierarchy's internal tables with the given size. */ protected void initialize(int size) { if (size < 10) { size = 10; } int smallSize = (size / 2); this.classToSuperclass = new HashMap(size); this.interfaces = new ArrayList(smallSize); this.missingTypes = new ArrayList(smallSize); this.rootClasses = new TypeVector(); this.typeToSubtypes = new HashMap(smallSize); this.typeToSuperInterfaces = new HashMap(smallSize); this.typeFlags = new HashMap(smallSize); this.projectRegion = new Region(); this.packageRegion = new Region(); this.files = new HashMap(5); } /**
/** * Initializes this hierarchy's internal tables with the given size. */ protected void initialize(int size) { if (size < 10) { size = 10; } int smallSize = (size / 2); this.classToSuperclass = new HashMap(size); this.interfaces = new ArrayList(smallSize); this.missingTypes = new ArrayList(smallSize); this.rootClasses = new TypeVector(); this.typeToSubtypes = new HashMap(smallSize); this.typeToSuperInterfaces = new HashMap(smallSize); this.typeFlags = new HashMap(smallSize); this.projectRegion = new Region(); this.packageRegion = new Region(); this.files = new HashMap(5); } /**
protected List<IFile> findGeneratedJavaClassFiles(IJavaElement element) { Region region = new Region(); region.add(element); List<IFile> result = Lists.newLinkedList(); for (IResource res : JavaCore.getGeneratedResources(region, false)) if (res instanceof IFile) result.add((IFile) res); return result; }
IRegion region = (IRegion) this.childrenToRemove.get(cu); if (region == null) { region = new Region(); this.childrenToRemove.put(cu, region); uniqueCUs += 1;
IRegion region = (IRegion) this.childrenToRemove.get(cu); if (region == null) { region = new Region(); this.childrenToRemove.put(cu, region); uniqueCUs += 1;
IRegion region = (IRegion) this.childrenToRemove.get(cu); if (region == null) { region = new Region(); this.childrenToRemove.put(cu, region); uniqueCUs += 1;
IRegion region = (IRegion) this.childrenToRemove.get(cu); if (region == null) { region = new Region(); this.childrenToRemove.put(cu, region); uniqueCUs += 1;
/** * Creates a TypeHierarchy on the types in the specified region, * considering first the given working copies, * using the projects in the given region for a name lookup context. If a specific * type is also specified, the type hierarchy is pruned to only * contain the branch including the specified type. */ public RegionBasedTypeHierarchy(IRegion region, ICompilationUnit[] workingCopies, IType type, boolean computeSubtypes) { super(type, workingCopies, (IJavaSearchScope)null, computeSubtypes); Region newRegion = new Region(); IJavaElement[] elements = region.getElements(); for (int i = 0, length = elements.length; i < length; i++) { newRegion.add(elements[i]); } this.region = newRegion; if (elements.length > 0) this.project = elements[0].getJavaProject(); } /*
/** * Creates a TypeHierarchy on the types in the specified region, * considering first the given working copies, * using the projects in the given region for a name lookup context. If a specific * type is also specified, the type hierarchy is pruned to only * contain the branch including the specified type. */ public RegionBasedTypeHierarchy(IRegion region, ICompilationUnit[] workingCopies, IType type, boolean computeSubtypes) { super(type, workingCopies, (IJavaSearchScope)null, computeSubtypes); Region newRegion = new Region(); IJavaElement[] elements = region.getElements(); for (int i = 0, length = elements.length; i < length; i++) { newRegion.add(elements[i]); } this.region = newRegion; if (elements.length > 0) this.project = elements[0].getJavaProject(); } /*
/** * Creates a TypeHierarchy on the types in the specified region, * considering first the given working copies, * using the projects in the given region for a name lookup context. If a specific * type is also specified, the type hierarchy is pruned to only * contain the branch including the specified type. */ public RegionBasedTypeHierarchy(IRegion region, ICompilationUnit[] workingCopies, IType type, boolean computeSubtypes) { super(type, workingCopies, (IJavaSearchScope)null, computeSubtypes); Region newRegion = new Region(); IJavaElement[] elements = region.getElements(); for (int i = 0, length = elements.length; i < length; i++) { newRegion.add(elements[i]); } this.region = newRegion; if (elements.length > 0) this.project = elements[0].getJavaProject(); } /*