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%2Fwizard%2FReportSelectionPage.java;h=abc017609c21607e8b82dcb00e7aef3e7e3de253;hp=93423fc4182b3f50eed9ef9b30fd07ed46b9992a;hb=8783f9ee2b67f83160d88f43a7aef02a6b25f955;hpb=6431ba9c664c0b3c65c486397f610a514f246416 diff --git a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportSelectionPage.java b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportSelectionPage.java index 93423fc41..abc017609 100644 --- a/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportSelectionPage.java +++ b/bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/wizard/ReportSelectionPage.java @@ -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();