Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2012-02-27 15:22:34 -0500
committerEugene Tarassov2012-02-27 15:22:34 -0500
commit42747f6e1465faf79c0814a54b123db1501448c2 (patch)
treeffcd2f15ff263032cb3ef3e5ea78f4045d016acb
parent7920f5036a1c13abf41b0cd8cc134c7c7ffaae16 (diff)
downloadorg.eclipse.tcf-42747f6e1465faf79c0814a54b123db1501448c2.tar.gz
org.eclipse.tcf-42747f6e1465faf79c0814a54b123db1501448c2.tar.xz
org.eclipse.tcf-42747f6e1465faf79c0814a54b123db1501448c2.zip
TCF Debugger: breakpoint status view changed to show full file names.
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/properties/TCFBreakpointStatusPage.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/properties/TCFBreakpointStatusPage.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/properties/TCFBreakpointStatusPage.java
index 28dc0191d..cb8497f8c 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/properties/TCFBreakpointStatusPage.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/properties/TCFBreakpointStatusPage.java
@@ -38,6 +38,7 @@ import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.tcf.internal.debug.launch.TCFSourceLookupParticipant;
import org.eclipse.tcf.internal.debug.model.TCFBreakpointsModel;
import org.eclipse.tcf.internal.debug.model.TCFBreakpointsStatus;
import org.eclipse.tcf.internal.debug.model.TCFLaunch;
@@ -204,16 +205,17 @@ public class TCFBreakpointStatusPage extends PropertyPage {
int req_char = z.marker.getAttribute(TCFBreakpointsModel.ATTR_REQESTED_CHAR, -1);
if (req_char < 0) req_char = z.marker.getAttribute(TCFBreakpointsModel.ATTR_CHAR, -1);
+ String area_file = TCFSourceLookupParticipant.toFileName(ref.area);
if (req_file != null && req_line >= 0) {
String req_file_name = new File(req_file).getName();
String file_name = new File(ref.area.file).getName();
if (!req_file_name.equals(file_name) || req_line != ref.area.start_line) {
addLocationInfo(z, "Requested location", req_file, req_line, req_char);
- addLocationInfo(z, "Adjusted location", ref.area.file, ref.area.start_line, ref.area.start_column);
+ addLocationInfo(z, "Adjusted location", area_file, ref.area.start_line, ref.area.start_column);
return;
}
}
- addLocationInfo(z, "Source location", ref.area.file, ref.area.start_line, ref.area.start_column);
+ addLocationInfo(z, "Location", area_file, ref.area.start_line, ref.area.start_column);
}
private void addLocationInfo(StatusItem z, String name, String file, int line, int column) {

Back to the top