]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/DocumentStructureWriter.java
Externalize org.simantics.document.linking.ui
[simantics/platform.git] / bundles / org.simantics.document.linking.ui / src / org / simantics / document / linking / report / templates / DocumentStructureWriter.java
index 6b8ae70a221ff387ad8591423ceaf757932731d5..fffc16b23ebefe49ba2cbac2ed8d51eea0d6a157 100644 (file)
@@ -52,7 +52,7 @@ public class DocumentStructureWriter extends IndexQueryReport {
        
        @Override
        public String getName() {
-               return "Document Structure";
+               return "Document Structure"; //$NON-NLS-1$
        }
        
        @Override
@@ -63,10 +63,10 @@ public class DocumentStructureWriter extends IndexQueryReport {
                titlePage.writeTitle(graph, context);
                writer.newElement(TableOfContents.class);
                Table table = writer.newElement(Table.class,Document.TOC);
-               table.addColumn("Name", 0.2);
-               table.addColumn("Attribute", 0.35);
-               table.addColumn("Value", 0.15);
-               table.addColumn("Comment", 0.3);
+               table.addColumn("Name", 0.2); //$NON-NLS-1$
+               table.addColumn("Attribute", 0.35); //$NON-NLS-1$
+               table.addColumn("Value", 0.15); //$NON-NLS-1$
+               table.addColumn("Comment", 0.3); //$NON-NLS-1$
                
                //lineWriter.nextPage();
                this.graph = graph;
@@ -159,7 +159,7 @@ public class DocumentStructureWriter extends IndexQueryReport {
                                if (path != null) {
                                        TextSize size = table.getTextSize();
                                        table.setTextSize(TextSize.MEDIUM);
-                                       table.writeRow("  " + diagramComparator.getText(path.get(path.size()-1)));
+                                       table.writeRow("  " + diagramComparator.getText(path.get(path.size()-1))); //$NON-NLS-1$
                                        table.setTextSize(size);
                                }
                        }
@@ -198,7 +198,7 @@ public class DocumentStructureWriter extends IndexQueryReport {
                                                text[2].setText(SourceLinkUtil.getValueString(value));
                                        }
                                } else {
-                                       text[1].setText("Error in property reference ");
+                                       text[1].setText(Messages.DocumentStructureWriter_ErrorInPropertyReference);
                                }
                        }