Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Inglis2004-03-25 14:54:54 -0500
committerDavid Inglis2004-03-25 14:54:54 -0500
commitb2b554c440521d47a166f7b582f6c938cbf545c4 (patch)
tree340c0fa352dd96706720f7526bd9747f54651d17
parentca24825bd88d97a01304ad7a1d1aa2c8fb918cb2 (diff)
downloadorg.eclipse.cdt-b2b554c440521d47a166f7b582f6c938cbf545c4.tar.gz
org.eclipse.cdt-b2b554c440521d47a166f7b582f6c938cbf545c4.tar.xz
org.eclipse.cdt-b2b554c440521d47a166f7b582f6c938cbf545c4.zip
getProcessList can throw a CoreException
-rw-r--r--launch/org.eclipse.cdt.launch/ChangeLog6
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java7
2 files changed, 12 insertions, 1 deletions
diff --git a/launch/org.eclipse.cdt.launch/ChangeLog b/launch/org.eclipse.cdt.launch/ChangeLog
index 37d35542c6..d325af256b 100644
--- a/launch/org.eclipse.cdt.launch/ChangeLog
+++ b/launch/org.eclipse.cdt.launch/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-25 David Inglis
+
+ getProcessList can throw a CoreException now.
+
+ * src/org/eclipse/cdt/launch/internal/LocalCLaunchConfigurationDelegate.java
+
2004-03-01 James Ciesielski
Marked those strings that are non-translatable as such and
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 a0077d2ea3..efb0b6f55b 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
@@ -188,7 +188,12 @@ public class LocalCLaunchConfigurationDelegate extends AbstractCLaunchDelegate {
TwoPaneElementSelector dialog = new TwoPaneElementSelector(shell, provider, qprovider);
dialog.setTitle(LaunchUIPlugin.getResourceString("LocalCLaunchConfigurationDelegate.Select_Process")); //$NON-NLS-1$
dialog.setMessage(LaunchUIPlugin.getResourceString("LocalCLaunchConfigurationDelegate.Select_Process_to_attach_debugger_to")); //$NON-NLS-1$
- IProcessList plist = CCorePlugin.getDefault().getProcessList();
+ IProcessList plist = null;
+ try {
+ plist = CCorePlugin.getDefault().getProcessList();
+ } catch (CoreException e) {
+ LaunchUIPlugin.errorDialog(LaunchUIPlugin.getResourceString("LocalCLaunchConfigurationDelegate.CDT_Launch_Error"), e.getStatus()); //$NON-NLS-1$
+ }
if (plist == null) {
MessageDialog.openError(shell, LaunchUIPlugin.getResourceString("LocalCLaunchConfigurationDelegate.CDT_Launch_Error"), LaunchUIPlugin.getResourceString("LocalCLaunchConfigurationDelegate.Platform_cannot_list_processes")); //$NON-NLS-1$ //$NON-NLS-2$
return;

Back to the top