X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.document.linking.ui%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Flinking%2Fwizard%2FReportCustomizationPage.java;h=8be04962633a3347deec1f70267233f27cb3f1da;hb=8783f9ee2b67f83160d88f43a7aef02a6b25f955;hp=37f76332f6ad3e7de787f5263b390fee327e2d3e;hpb=6431ba9c664c0b3c65c486397f610a514f246416;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportCustomizationPage.java b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportCustomizationPage.java index 37f76332f..8be049626 100644 --- a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportCustomizationPage.java +++ b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportCustomizationPage.java @@ -80,9 +80,9 @@ public class ReportCustomizationPage extends WizardPage{ GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(loadButton); GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(saveButton); GridDataFactory.fillDefaults().align(SWT.FILL, SWT.CENTER).applyTo(resetButton); - loadButton.setText("Load"); - saveButton.setText("Save"); - resetButton.setText("Defaults"); + loadButton.setText(Messages.ReportCustomizationPage_Load); + saveButton.setText(Messages.ReportCustomizationPage_Save); + resetButton.setText(Messages.ReportCustomizationPage_Defaults); loadButton.addSelectionListener(new SelectionAdapter() { @Override @@ -122,7 +122,7 @@ public class ReportCustomizationPage extends WizardPage{ @Override public Resource perform(ReadGraph graph) throws DatabaseException { Layer0 l0 = Layer0.getInstance(graph); - Resource lib = graph.syncRequest(new PossibleObjectWithName(model, l0.ConsistsOf,"Library")); + Resource lib = graph.syncRequest(new PossibleObjectWithName(model, l0.ConsistsOf,Messages.ReportCustomizationPage_Library)); if (lib != null) return lib; @@ -239,7 +239,7 @@ public class ReportCustomizationPage extends WizardPage{ private void save() { try { - InputDialog dialog = new InputDialog(getShell(), "Save report customization", "Give template name", "Name", new NotNullValidator("Name cannot be empty")); + InputDialog dialog = new InputDialog(getShell(), Messages.ReportCustomizationPage_SaveReportCustomizations, Messages.ReportCustomizationPage_GiveTemplateName, Messages.ReportCustomizationPage_Name, new NotNullValidator(Messages.ReportCustomizationPage_NameCannotBeEmpty)); if (dialog.open() != InputDialog.OK) return; final String name = dialog.getValue();