]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.ui/src/org/simantics/document/ui/wizard/FileSelectionPage.java
Externalize strings in org.simantics.document.ui
[simantics/platform.git] / bundles / org.simantics.document.ui / src / org / simantics / document / ui / wizard / FileSelectionPage.java
index eb43ee79471af3d0da638e45bb426fdcb5a131b7..188d6c46c1529024bf99a70d660c7f02178639f6 100644 (file)
@@ -22,7 +22,7 @@ public class FileSelectionPage extends WizardPage {
        String fileName;
 
        public FileSelectionPage() {
-               super("FileSelction","Select a file",null);
+               super(Messages.FileSelectionPage_FileSelection,Messages.FileSelectionPage_SelectAFile,null);
        }
 
        @Override
@@ -30,7 +30,7 @@ public class FileSelectionPage extends WizardPage {
                parent.setLayout(new GridLayout(3,false));
                fileText = new Text(parent,SWT.BORDER|SWT.SINGLE);
                browseButton = new Button(parent, SWT.PUSH);
-               browseButton.setText("Browse");
+               browseButton.setText(Messages.FileSelectionPage_Browse);
                
                GridData data;
                data = new GridData();
@@ -50,7 +50,7 @@ public class FileSelectionPage extends WizardPage {
                                // TODO : is there any way to read file/executable bindings from OS?
                                //        if is, use those extensions to filter this list.
                                //        note: in windows using "reg query ..." to read bindings form registry would work.
-                               dialog.setFilterExtensions(new String[]{"*.*"});
+                               dialog.setFilterExtensions(new String[]{"*.*"}); //$NON-NLS-1$
                                String name = dialog.open();
                                if (name != null) {
                                        fileText.setText(name);