return (IProject[]) temp.toArray(new IProject[temp.size()]);
return javaProjects;
	public IProject[] getJavaProjects(IJavaSearchScope scope) {		IPath[] paths= scope.enclosingProjectsAndJars();		HashSet temp= new HashSet();		for (int i= 0; i < paths.length; i++) {			IResource resource= ResourcesPlugin.getWorkspace().getRoot().findMember(paths[i]);			if (resource != null && resource.getType() == IResource.PROJECT)				temp.add(resource);		}		return (IProject[]) temp.toArray(new IProject[temp.size()]);	}