]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/SwitchComponentTypeContribution.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / actions / SwitchComponentTypeContribution.java
index 193334e0b67789699358ebfee44d61b940cf0749..d8115f53e432396d166973d5f3bc25432bd7f3ba 100644 (file)
@@ -86,7 +86,7 @@ public class SwitchComponentTypeContribution extends ContributionItem {
         try {
             groups = Simantics.getSession().syncRequest(new ComponentSwitchGroupQuery(resource));
         } catch (DatabaseException e) {
         try {
             groups = Simantics.getSession().syncRequest(new ComponentSwitchGroupQuery(resource));
         } catch (DatabaseException e) {
-            LOGGER.error("Retrieval of switch groups failed.", e);
+            LOGGER.error("Retrieval of switch groups failed.", e); //$NON-NLS-1$
             return;
         }
         
             return;
         }
         
@@ -160,7 +160,7 @@ public class SwitchComponentTypeContribution extends ContributionItem {
                     if(label == null) {
                         label = graph.getPossibleRelatedValue(group, L0.HasName);
                         if(label == null)
                     if(label == null) {
                         label = graph.getPossibleRelatedValue(group, L0.HasName);
                         if(label == null)
-                            label = "Alternative types";
+                            label = Messages.SwitchComponentTypeContribution_AlternativeTypes;
                     }
                     groupObj = new SwitchGroup(label);
                 }
                     }
                     groupObj = new SwitchGroup(label);
                 }