Bug 36280 Duplicate projects in projects view [browsing]
In the Java Browsing view, I have a situation where I have ended up with a duplicate list of projects (as shown in attached screenshot). For some reason, the list of projects seems to have been built twice. I can see each one of them by drilling down through it. I have disabled the '-noupdate' from the launch (trying to get Omondo UML installed) and have restarted several times. It may be due to a glitch in the rebuilding process.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingContentProvider.java
if (type != null && type.getDeclaringType() == null && !type.isAnonymous() && !type.isLocal())
					topLevelClassFile.add(classFiles[i]);
			}
			sourceRefs= (ISourceReference[])topLevelClassFile.toArray(new ISourceReference[topLevelClassFile.size()]);
		}
		Object[] result= new Object[0];
		for (int i= 0; i < sourceRefs.length; i++)
			result= concatenate(result, removeImportAndPackageDeclarations(getChildren(sourceRefs[i])));
		return concatenate(result, fragment.getNonJavaResources());
	}
	private Object[] removeImportAndPackageDeclarations(Object[] members) {
		ArrayList tempResult= new ArrayList(members.length);
		for (int i= 0; i < members.length; i++)
			if (!(members[i] instanceof IImportContainer) && !(members[i] instanceof IPackageDeclaration))
				tempResult.add(members[i]);
		return tempResult.toArray();
	}
	private Object[] getChildren(IType type) throws JavaModelException{
		IParent parent;
		if (type.isBinary())
			parent= type.getClassFile();
		else {
			parent= type.getCompilationUnit();
			if (getProvideWorkingCopy()) {
				IWorkingCopy wc= EditorUtility.getWorkingCopy((ICompilationUnit)parent);
				if (wc != null) {
					parent= (IParent)wc;
					IMember wcType= EditorUtility.getWorkingCopy(type);
					if (wcType != null)
						type= (IType)wcType;