1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

add method to get pluginid in abstractlaunchdelegate

This commit is contained in:
David Inglis 2002-09-16 19:26:49 +00:00
parent 15b2e81e4a
commit 065de59635
2 changed files with 9 additions and 1 deletions

View file

@ -79,9 +79,12 @@ abstract public class AbstractCLaunchDelegate implements ILaunchConfigurationDel
* @param code error code
*/
protected void abort(String message, Throwable exception, int code) throws CoreException {
throw new CoreException(new Status(IStatus.ERROR, LaunchUIPlugin.getUniqueIdentifier(), code, message, exception));
throw new CoreException(new Status(IStatus.ERROR, getPluginID(), code, message, exception));
}
abstract protected String getPluginID();
public ICProject getCProject(ILaunchConfiguration configuration) throws CoreException {
String projectName = getProjectName(configuration);
if (projectName != null) {

View file

@ -261,4 +261,9 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
}
return p;
}
protected String getPluginID() {
return LaunchUIPlugin.getUniqueIdentifier();
}
}