]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/IssueLabelRule.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.issues.ui / src / org / simantics / issues / ui / IssueLabelRule.java
index 1d9b1099c5dd84fd9d3139cbd4c6523e9b5499bc..ada862d86b585b5b628847bce8c407bbef986df9 100644 (file)
@@ -25,7 +25,7 @@ public class IssueLabelRule implements LabelRule {
 
     public static final IssueLabelRule INSTANCE = new IssueLabelRule();
 
-    private static final String[] COLS = new String[] { ColumnKeys.SINGLE, "Resource", "Path" };
+    private static final String[] COLS = new String[] { ColumnKeys.SINGLE, Messages.IssueLabelRule_Resource, Messages.IssueLabelRule_Path };
 
     public IssueLabelRule() {
     }
@@ -39,9 +39,9 @@ public class IssueLabelRule implements LabelRule {
     public Map<String,String> getLabel(ReadGraph graph, Object content) throws DatabaseException {
 
         Variable issue = (Variable)content;
-        String description = StringUtils.safeString( (String) issue.getPossiblePropertyValue(graph, "HasDescription") );
-        String resource = StringUtils.safeString( (String) issue.getPossiblePropertyValue(graph, "resource") );
-        String path = StringUtils.safeString( (String) issue.getPossiblePropertyValue(graph, "path") );
+        String description = StringUtils.safeString( (String) issue.getPossiblePropertyValue(graph, "HasDescription") ); //$NON-NLS-1$
+        String resource = StringUtils.safeString( (String) issue.getPossiblePropertyValue(graph, "resource") ); //$NON-NLS-1$
+        String path = StringUtils.safeString( (String) issue.getPossiblePropertyValue(graph, "path") ); //$NON-NLS-1$
 
         String[] result = new String[] { description, resource, path };
         return new ArrayMap<String, String>(COLS, result);