aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Schaefer2013-02-11 16:27:56 (EST)
committerCurtis Windatt2013-02-11 16:27:56 (EST)
commit8b3c2b272e5a707ad62c5f7f4e04a0cb460e7596 (patch)
tree685dc1cc63b77a01e08c269b9df5dc667092a69f
parent9b3aee03eeec0f4431928b92274cd2c22cd475da (diff)
downloadeclipse.platform.ui-8b3c2b272e5a707ad62c5f7f4e04a0cb460e7596.zip
eclipse.platform.ui-8b3c2b272e5a707ad62c5f7f4e04a0cb460e7596.tar.gz
eclipse.platform.ui-8b3c2b272e5a707ad62c5f7f4e04a0cb460e7596.tar.bz2
Bug 163711 - [Markers] Problem marker properties not showing non-numeric
Locations
-rw-r--r--bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java
index a3bec66..b0041b1 100644
--- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java
+++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkersPropertyPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 IBM Corporation and others.
+ * Copyright (c) 2007, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -279,11 +279,17 @@ public class MarkersPropertyPage extends PropertyPage {
locationText.setLayoutData(gridData);
String line = Util.getProperty(IMarker.LINE_NUMBER, marker);
- if (line.length()==0)
- locationText.setText(MarkerSupportInternalUtilities.EMPTY_STRING);
- else
+ if (line.length() == 0) {
+ String location = Util.getProperty(IMarker.LOCATION, marker);
+ if (location.length() == 0) {
+ locationText.setText(MarkerSupportInternalUtilities.EMPTY_STRING);
+ } else {
+ locationText.setText(location);
+ }
+ } else {
locationText.setText(NLS
.bind(MarkerMessages.label_lineNumber, line));
+ }
}