1 11 package org.eclipse.jdt.internal.launching; 12 13 14 import org.eclipse.core.runtime.CoreException; 15 import org.eclipse.core.runtime.IConfigurationElement; 16 import org.eclipse.debug.core.ILaunchConfiguration; 17 import org.eclipse.jdt.launching.IRuntimeClasspathEntry; 18 import org.eclipse.jdt.launching.IRuntimeClasspathProvider; 19 20 23 public class RuntimeClasspathProvider implements IRuntimeClasspathProvider { 24 25 private IConfigurationElement fConfigurationElement; 26 27 private IRuntimeClasspathProvider fDelegate; 28 29 32 public RuntimeClasspathProvider(IConfigurationElement element) { 33 fConfigurationElement = element; 34 } 35 36 39 protected IRuntimeClasspathProvider getProvider() throws CoreException { 40 if (fDelegate == null) { 41 fDelegate = (IRuntimeClasspathProvider)fConfigurationElement.createExecutableExtension("class"); } 43 return fDelegate; 44 } 45 46 public String getIdentifier() { 47 return fConfigurationElement.getAttribute("id"); } 49 52 public IRuntimeClasspathEntry[] computeUnresolvedClasspath(ILaunchConfiguration configuration) throws CoreException { 53 return getProvider().computeUnresolvedClasspath(configuration); 54 } 55 56 59 public IRuntimeClasspathEntry[] resolveClasspath(IRuntimeClasspathEntry[] entries, ILaunchConfiguration configuration) throws CoreException { 60 return getProvider().resolveClasspath(entries, configuration); 61 } 62 63 } 64 | Popular Tags |