use of org.eclipse.linuxtools.valgrind.launch.IValgrindLaunchDelegate in project linuxtools by eclipse.
the class ValgrindLaunchPlugin method getToolDelegate.
public IValgrindLaunchDelegate getToolDelegate(String id) throws CoreException {
IValgrindLaunchDelegate delegate = null;
IConfigurationElement config = getToolMap().get(id);
if (config != null) {
Object obj = config.createExecutableExtension(EXT_ATTR_DELEGATE);
if (obj instanceof IValgrindLaunchDelegate) {
delegate = (IValgrindLaunchDelegate) obj;
}
}
if (delegate == null) {
// $NON-NLS-1$
throw new CoreException(new Status(IStatus.ERROR, PLUGIN_ID, Messages.getString("ValgrindLaunchPlugin.Cannot_retrieve_delegate")));
}
return delegate;
}
Aggregations