Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2008-07-02 21:36:37 +0000
committereutarass2008-07-02 21:36:37 +0000
commit3259bf86b5bff3c71bbd1237e569a28bb77642b0 (patch)
tree49b46e6e17f81a8734088adb1a799d8142c333bd /plugins/org.eclipse.tm.tcf.debug.ui
parentc8c0ed7ca6d7b071b5937da6557655b478033d19 (diff)
downloadorg.eclipse.tcf-3259bf86b5bff3c71bbd1237e569a28bb77642b0.tar.gz
org.eclipse.tcf-3259bf86b5bff3c71bbd1237e569a28bb77642b0.tar.xz
org.eclipse.tcf-3259bf86b5bff3c71bbd1237e569a28bb77642b0.zip
Fixed source lookup in TCF/DSF integration
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.debug.ui')
-rw-r--r--plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/adapters/TCFLaunchLabelProvider.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/adapters/TCFLaunchLabelProvider.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/adapters/TCFLaunchLabelProvider.java
index 1fadeea27..4415dbbf0 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/adapters/TCFLaunchLabelProvider.java
+++ b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/adapters/TCFLaunchLabelProvider.java
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.tm.internal.tcf.debug.ui.adapters;
+import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementLabelProvider;
import org.eclipse.debug.internal.ui.viewers.model.provisional.ILabelUpdate;
import org.eclipse.swt.graphics.RGB;
@@ -35,8 +36,10 @@ class TCFLaunchLabelProvider implements IElementLabelProvider {
result.setForeground(new RGB(255, 0, 0), 0);
}
if (status.length() > 0) status = " (" + status + ")";
- String label = launch.getLaunchConfiguration().getName() + status;
- result.setLabel(label, 0);
+ String name = "?";
+ ILaunchConfiguration cfg = launch.getLaunchConfiguration();
+ if (cfg != null) name = cfg.getName();
+ result.setLabel(name + status, 0);
result.done();
}
}

Back to the top