javadoc[0] = JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, "file:
javadoc = new IClasspathAttribute[1]; String osName = System.getProperty("os.name").toLowerCase(); if (osName.indexOf("windows") >= 0) { javadoc[0] = JavaCore .newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, "file: } else { javadoc[0] = JavaCore .newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, "file: }
	private void _initPath() {		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);				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[0] = JavaCore.newClasspathAttribute(IClasspathAttribute.JAVADOC_LOCATION_ATTRIBUTE_NAME, 						    			"file:///Developer/ADC%20Reference%20Library/documentation/WebObjects/Reference/API/");						    }						    IClasspathEntry entry = JavaCore.newLibraryEntry(archivePath, source, null, null, javadoc, false);						    _path.add(entry);						}					}				}			}		}	}