Search in sources :

Example 1 with IValgrindToolPage

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;
}
Also used : IStatus(org.eclipse.core.runtime.IStatus) Status(org.eclipse.core.runtime.Status) IValgrindToolPage(org.eclipse.linuxtools.valgrind.launch.IValgrindToolPage) CoreException(org.eclipse.core.runtime.CoreException) IConfigurationElement(org.eclipse.core.runtime.IConfigurationElement)

Aggregations

CoreException (org.eclipse.core.runtime.CoreException)1 IConfigurationElement (org.eclipse.core.runtime.IConfigurationElement)1 IStatus (org.eclipse.core.runtime.IStatus)1 Status (org.eclipse.core.runtime.Status)1 IValgrindToolPage (org.eclipse.linuxtools.valgrind.launch.IValgrindToolPage)1