]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportCustomizationPage.java
Externalize org.simantics.document.linking.ui
[simantics/platform.git] / bundles / org.simantics.document.linking.ui / src / org / simantics / document / linking / wizard / ReportCustomizationPage.java
index 37f76332f6ad3e7de787f5263b390fee327e2d3e..8be04962633a3347deec1f70267233f27cb3f1da 100644 (file)
@@ -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();