1 11 package org.eclipse.pde.internal.core; 12 13 import org.eclipse.core.runtime.CoreException; 14 import org.eclipse.core.runtime.IPath; 15 import org.eclipse.jdt.core.IClasspathContainer; 16 import org.eclipse.jdt.core.IClasspathEntry; 17 18 public class ExternalJavaSearchClasspathContainer implements IClasspathContainer { 19 private IClasspathEntry[] fEntries; 20 21 25 public IClasspathEntry[] getClasspathEntries() { 26 if (fEntries == null) { 27 try { 28 SearchablePluginsManager manager = PDECore.getDefault().getSearchablePluginsManager(); 29 fEntries = manager.computeContainerClasspathEntries(); 30 } 31 catch (CoreException e) { 32 PDECore.logException(e); 33 } 34 } 35 return fEntries; 36 } 37 38 42 public String getDescription() { 43 return PDECoreMessages.ExternalJavaSearchClasspathContainer_description; 44 } 45 46 50 public int getKind() { 51 return K_APPLICATION; 52 } 53 54 58 public IPath getPath() { 59 return PDECore.JAVA_SEARCH_CONTAINER_PATH; 60 } 61 62 } 63 | Popular Tags |