allClasspathEntries.put(framework, entry);
List entryList = (List)allClasspathEntries.get(framework); if (entryList == null) { entryList = new LinkedList(); allClasspathEntries.put(framework, entryList); } entryList.add(entry);
	private void initPath() {		ArrayList path = new ArrayList();		IPath[] paths = VariablesPlugin.getDefault().getFrameworkRoots();		for (int i = 1; i < id.segmentCount(); i++) {			for (int h = 0; h < paths.length; h++) {				IPath classpathVariable = paths[h];				String framework = id.segment(i);				if (!allClasspathEntries.containsKey(framework)) {					File frameworkFile = new File(classpathVariable							.toOSString(), framework							+ ".framework/Resources/Java");					if (frameworkFile.isDirectory()) {						String archives[] = frameworkFile								.list(new FilenameFilter() {									public boolean accept(File dir, String name) {										String lowerName = name.toLowerCase();										return (lowerName.endsWith(".zip") || lowerName												.endsWith(".jar"));									}								});						IPath source = new Path(classpathVariable.toOSString()								+ "/" + framework								+ ".framework/Resources/Java/src.jar");						if (!source.toFile().exists()) {							source = null;						}						for (int j = 0; j < archives.length; j++) {							// framework found under this root							h = paths.length;							IPath archivePath = new Path(frameworkFile									.getAbsolutePath()									+ "/" + archives[j]);							// IClasspathEntry entry =							// JavaCore.newLibraryEntry(archivePath, null,							// null);							if (!archives[j].equals("src.jar")) {								IClasspathAttribute javadoc[] = new IClasspathAttribute[0];								if (framework.indexOf("Java") == 0) {									javadoc = new IClasspathAttribute[1];									javadoc = new IClasspathAttribute[1];									javadoc[0] = JavaCore											.newClasspathAttribute(													IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME,													VariablesPlugin															.getDefault()															.getReferenceApi()															.toOSString());								}								IClasspathEntry entry = JavaCore										.newLibraryEntry(archivePath, source,												null, null, javadoc, false);								path.add(entry);								allClasspathEntries.put(framework, entry);							}						}					}				}				else {					path.add(allClasspathEntries.get(framework));					h = paths.length;				}			}		}		classpathEntries = (IClasspathEntry[]) path				.toArray(new IClasspathEntry[path.size()]);	}