]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/scl/imports/ModuleSelectionDialog.java
Externalize strings in org.simantics.scl.ui
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / scl / imports / ModuleSelectionDialog.java
index 8d07d60b1bb111ab1fbd96619e4b3eedc84a84d3..66541a7be90449e85626ae6ad480bf74d37f83e8 100644 (file)
@@ -22,7 +22,7 @@ import org.simantics.utils.ui.dialogs.ShowError;
 
 public class ModuleSelectionDialog extends FilteredItemsSelectionDialog {
 
 
 public class ModuleSelectionDialog extends FilteredItemsSelectionDialog {
 
-    private static final String SCL_MODULE_SELECTION_DIALOG = "SCL_MODULE_SELECTION_DIALOG";
+    private static final String SCL_MODULE_SELECTION_DIALOG = "SCL_MODULE_SELECTION_DIALOG"; //$NON-NLS-1$
     
     Read<Collection<String>> query;
     
     
     Read<Collection<String>> query;
     
@@ -60,7 +60,7 @@ public class ModuleSelectionDialog extends FilteredItemsSelectionDialog {
                 if(patternText != null && patternText.length() > 0)
                     patternMatcher.setPattern(patternText);
                 else 
                 if(patternText != null && patternText.length() > 0)
                     patternMatcher.setPattern(patternText);
                 else 
-                    patternMatcher.setPattern("*");
+                    patternMatcher.setPattern("*"); //$NON-NLS-1$
             }
             
             @Override
             }
             
             @Override
@@ -68,7 +68,7 @@ public class ModuleSelectionDialog extends FilteredItemsSelectionDialog {
                 if(getPattern().indexOf('/') > 0)
                     return matches((String)item);
                 else {
                 if(getPattern().indexOf('/') > 0)
                     return matches((String)item);
                 else {
-                    for(String part : ((String)item).split("/"))
+                    for(String part : ((String)item).split("/")) //$NON-NLS-1$
                         if(matches(part))
                             return true;
                     return false;
                         if(matches(part))
                             return true;
                     return false;
@@ -105,8 +105,8 @@ public class ModuleSelectionDialog extends FilteredItemsSelectionDialog {
                     TransientCacheListener.<Collection<String>>instance()))
                 contentProvider.add(module, itemsFilter);
         } catch (DatabaseException e) {
                     TransientCacheListener.<Collection<String>>instance()))
                 contentProvider.add(module, itemsFilter);
         } catch (DatabaseException e) {
-            ShowError.showError("Failed to find modules",
-                    "Exception was thrown during search for modules", e);
+            ShowError.showError("Failed to find modules", //$NON-NLS-1$
+                    "Exception was thrown during search for modules", e); //$NON-NLS-1$
             close();
         }
 
             close();
         }