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%2FCompleteStructureWriter.java;h=ccfc9ea4414739c07011399773696efaa6055899;hp=dd4de82204f125e6cd02b36e2bf7407cffe2f663;hb=8783f9ee2b67f83160d88f43a7aef02a6b25f955;hpb=6431ba9c664c0b3c65c486397f610a514f246416 diff --git a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/CompleteStructureWriter.java b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/CompleteStructureWriter.java index dd4de8220..ccfc9ea44 100644 --- a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/CompleteStructureWriter.java +++ b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/templates/CompleteStructureWriter.java @@ -50,7 +50,7 @@ public class CompleteStructureWriter extends IndexQueryReport { @Override public String getName() { - return "Complete Structure"; + return "Complete Structure"; //$NON-NLS-1$ } @Override @@ -67,11 +67,11 @@ public class CompleteStructureWriter extends IndexQueryReport { writer.newElement(TableOfContents.class); Table table = writer.newElement(Table.class,Document.TOC); - table.addColumn("Name", 0.2); - table.addColumn("Attribute", 0.2); - table.addColumn("Value", 0.15); - table.addColumn("Document", 0.2); - table.addColumn("Comment", 0.25); + table.addColumn("Name", 0.2); //$NON-NLS-1$ + table.addColumn("Attribute", 0.2); //$NON-NLS-1$ + table.addColumn("Value", 0.15); //$NON-NLS-1$ + table.addColumn("Document", 0.2); //$NON-NLS-1$ + table.addColumn("Comment", 0.25); //$NON-NLS-1$ //lineWriter.nextPage(); @@ -112,7 +112,7 @@ public class CompleteStructureWriter extends IndexQueryReport { } if (obj != null) { - String text = ""; + String text = ""; //$NON-NLS-1$ List path = SourceLinkUtil.getDiagramPath(graph, model, obj); if (path == null) { @@ -121,14 +121,14 @@ public class CompleteStructureWriter extends IndexQueryReport { Resource r = path.get(i); text += parentComparator.getText(r); if (i < path.size()-2) - text += "/"; + text += "/"; //$NON-NLS-1$ } } else { for (int i = 0 ; i < path.size(); i++) { Resource r = path.get(i); text += parentComparator.getText(r); if (i < path.size()-1) - text += "/"; + text += "/"; //$NON-NLS-1$ } } //row[0] = text; @@ -138,7 +138,7 @@ public class CompleteStructureWriter extends IndexQueryReport { toc.addTocElement(text, table); } else { //row[0] = "Hierarchy missing"; - table.setTitle("Hierarchy missing"); + table.setTitle("Hierarchy missing"); //$NON-NLS-1$ } } } @@ -170,7 +170,7 @@ public class CompleteStructureWriter extends IndexQueryReport { text[2].setText(SourceLinkUtil.getValueString(value)); } } else { - text[1].setText("Error in property reference"); + text[1].setText(Messages.CompleteStructureWriter_ErrorInPropertyRefrence); } } Resource document = SourceLinkUtil.getReferredDocument(graph, source);