ProjectAdapter project = (ProjectAdapter) this .getIProject().getAdapter(ProjectAdapter.class);
IProjectAdapter project = (IProjectAdapter) this .getIProject().getAdapter(IProjectAdapter.class);
	private IProject[] getIProjects() {		ArrayList arrayList = new ArrayList();		IProject[] projects = ResourcesPlugin.getWorkspace().getRoot()				.getProjects();		for (int i = 0; i < projects.length; i++) {			IProject iProject = projects[i];			if (iProject.isAccessible() && iProject.isOpen()) {				if (iProject.getFile("build.xml").exists()) {					ProjectAdapter project = (ProjectAdapter) this							.getIProject().getAdapter(ProjectAdapter.class);					if (project != null) {						if (iProject == this.getIProject()) {							arrayList.add(iProject);						} else {							if (project.isFrameworkReference(iProject)) {								arrayList.add(iProject);							}						}					}				}			}		}		return (IProject[]) arrayList.toArray(new IProject[arrayList.size()]);	}