]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/NewComponentTypeAction.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / actions / NewComponentTypeAction.java
index fafaa7e51a09c4cad73590aa925fc3dc2c4c1671..a07fe933a4976d3631e95b36919f6a7f432d888f 100644 (file)
@@ -35,7 +35,7 @@ public class NewComponentTypeAction implements ActionFactory {
         return new Runnable() {
             @Override
             public void run() {
-                Job job = new DatabaseJob("New User Component") {
+                Job job = new DatabaseJob(Messages.NewComponentTypeAction_NewUserComponent) {
                     @Override
                     protected IStatus run(IProgressMonitor monitor) {
                         try {
@@ -48,7 +48,7 @@ public class NewComponentTypeAction implements ActionFactory {
                             });
                             return Status.OK_STATUS;
                         } catch (DatabaseException e) {
-                            return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "Failed to create new user component.", e); 
+                            return new Status(IStatus.ERROR, Activator.PLUGIN_ID, Messages.NewComponentTypeAction_ActivatorFailedToCreateNewUserComponent, e); 
                         }
                     }
                 };