IClasspathEntry entry = JavaCore.newLibraryEntry( archivePath, null, null, false); _path.add(entry); if(framework.indexOf("Java") == 0) { try { JavaUI.setLibraryJavadocLocation(archivePath, new URL("file: } catch (MalformedURLException e) {  e.printStackTrace(); }
if(!archives.equals("src.jar")) { IClasspathEntry entry = JavaCore.newLibraryEntry( archivePath, source, null, false); _path.add(entry); if(framework.indexOf("Java") == 0) { try { JavaUI.setLibraryJavadocLocation(archivePath, new URL("file: } catch (MalformedURLException e) {  e.printStackTrace(); } }
	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"));								}							});					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);						IClasspathEntry entry = JavaCore.newLibraryEntry(								archivePath, null, null, false);						_path.add(entry);						if(framework.indexOf("Java") == 0) {						    try {                                JavaUI.setLibraryJavadocLocation(archivePath, new URL("file:///Developer/Documentation/WebObjects/Reference/API/"));                            } catch (MalformedURLException e) {                                // TODO Auto-generated catch block                                e.printStackTrace();                            }						}					}				}			}		}	}