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:
parent
15b2e81e4a
commit
065de59635
2 changed files with 9 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -261,4 +261,9 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
|
|||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
protected String getPluginID() {
|
||||
return LaunchUIPlugin.getUniqueIdentifier();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue