Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorDavid Inglis2002-09-16 19:26:49 +0000
committerDavid Inglis2002-09-16 19:26:49 +0000
commit065de596351ca3ea1571bfe4022786ad2b372b91 (patch)
treed5e75cfe72806bcd592abe4c7571539868126992 /launch
parent15b2e81e4acfcb0cf3bc70c83d1d7702d9ea897b (diff)
downloadorg.eclipse.cdt-065de596351ca3ea1571bfe4022786ad2b372b91.tar.gz
org.eclipse.cdt-065de596351ca3ea1571bfe4022786ad2b372b91.tar.xz
org.eclipse.cdt-065de596351ca3ea1571bfe4022786ad2b372b91.zip
add method to get pluginid in abstractlaunchdelegate
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java5
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java5
2 files changed, 9 insertions, 1 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
index 4d1794a68a8..dfe9ea38ec3 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/AbstractCLaunchDelegate.java
@@ -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) {
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
index ccb33405e4e..d01a80430fe 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
@@ -261,4 +261,9 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
}
return p;
}
+
+ protected String getPluginID() {
+ return LaunchUIPlugin.getUniqueIdentifier();
+ }
+
}

Back to the top