X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.document.linking.ui%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Flinking%2Freport%2Ftemplates%2FDocumentStructureWriter.java;h=fffc16b23ebefe49ba2cbac2ed8d51eea0d6a157;hp=6b8ae70a221ff387ad8591423ceaf757932731d5;hb=8783f9ee2b67f83160d88f43a7aef02a6b25f955;hpb=6431ba9c664c0b3c65c486397f610a514f246416 diff --git a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/DocumentStructureWriter.java b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/DocumentStructureWriter.java index 6b8ae70a2..fffc16b23 100644 --- a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/DocumentStructureWriter.java +++ b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/DocumentStructureWriter.java @@ -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); } }