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