]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportSelectionPage.java
Externalize org.simantics.document.linking.ui
[simantics/platform.git] / bundles / org.simantics.document.linking.ui / src / org / simantics / document / linking / wizard / ReportSelectionPage.java
index 93423fc4182b3f50eed9ef9b30fd07ed46b9992a..abc017609c21607e8b82dcb00e7aef3e7e3de253 100644 (file)
@@ -69,14 +69,14 @@ public class ReportSelectionPage extends WizardPage{
                Composite composite = new Composite(parent, SWT.NONE);
                composite.setLayout(new GridLayout(3,false));
                Label label = new Label(composite, SWT.NONE);
-               label.setText("Model:");
+               label.setText(Messages.ReportSelectionPage_Model);
                modelCombo = new CCombo(composite, SWT.BORDER|SWT.READ_ONLY);
                
                label = new Label(composite, SWT.NONE);
-               label.setText("File:");
+               label.setText(Messages.ReportSelectionPage_File);
                filenameText = new Text(composite, SWT.BORDER|SWT.SINGLE);
                browseButton = new Button(composite, SWT.PUSH);
-               browseButton.setText("Browse");
+               browseButton.setText(Messages.ReportSelectionPage_Browse);
                
                reportWriters.add(new ModelDocumentWriter());
                reportWriters.add(new ReferredDocumentWriter());
@@ -86,7 +86,7 @@ public class ReportSelectionPage extends WizardPage{
                reportWriters.add(new CompleteStructureWriter());
                
                Group group = new Group(composite, SWT.NONE);
-               group.setText("Report templates");
+               group.setText(Messages.ReportSelectionPage_ReportTemplates);
                group.setLayout(new FillLayout(SWT.VERTICAL));
                
                GridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.CENTER).applyTo(filenameText);
@@ -98,11 +98,11 @@ public class ReportSelectionPage extends WizardPage{
                        @Override
                        public void widgetSelected(SelectionEvent e) {
                                FileDialog dialog = new FileDialog(Display.getCurrent().getActiveShell(),SWT.SAVE);
-                               dialog.setFilterExtensions(new String[]{"*.pdf","*.html"});
-                               dialog.setFilterNames(new String[]{"PDF Document","HTML Document"});
+                               dialog.setFilterExtensions(new String[]{"*.pdf","*.html"}); //$NON-NLS-1$ //$NON-NLS-2$
+                               dialog.setFilterNames(new String[]{Messages.ReportSelectionPage_FilterPDFDocument,Messages.ReportSelectionPage_FilterHTMLDocument});
                                String filename = dialog.open();
                                if (filename == null)
-                                       filenameText.setText("");
+                                       filenameText.setText(""); //$NON-NLS-1$
                                else
                                        filenameText.setText(filename);
                                validate();