]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java
Externalize strings
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / actions / CompilePGraphsAction.java
index 0c93e6c2055652a4ce48e003bd646f22009c8d76..651f4f66b21128892a8bd0b8d595996db0f10bf1 100644 (file)
@@ -33,7 +33,7 @@ public class CompilePGraphsAction implements ActionFactory {
         if (!(target instanceof Resource))
             return null;
         return () -> {
-            Job job = new Job("Compile PGraphs") {
+            Job job = new Job(Messages.CompilePGraphsAction_CompilePGraphs) {
                 @Override
                 protected IStatus run(IProgressMonitor monitor) {
                     try {
@@ -59,9 +59,9 @@ public class CompilePGraphsAction implements ActionFactory {
                        class ErrorMessageDialog extends MessageDialog {
                                public ErrorMessageDialog(Shell shell) {
                                        super(shell, 
-                                                       "Problems in the Ontology Definition File", null, 
-                                                       "The following issues were found:"
-                                                       MessageDialog.ERROR, new String[] { "Continue" }, 0);
+                                                       Messages.CompilePGraphsAction_ProblemsinOntologyDefinitionFile, null, 
+                                                       Messages.CompilePGraphsAction_FollowingIssuesFound
+                                                       MessageDialog.ERROR, new String[] { Messages.CompilePGraphsAction_Continue }, 0);
                                }
 
                                @Override
@@ -71,9 +71,9 @@ public class CompilePGraphsAction implements ActionFactory {
                                        org.eclipse.swt.widgets.List list = new org.eclipse.swt.widgets.List(composite, SWT.BORDER | SWT.READ_ONLY);
                                        GridDataFactory.fillDefaults().grab(true, true).applyTo(list);
                                        for (Problem problem : result.getErrors())
-                                               list.add(problem.getLocation() + ": " + problem.getDescription() + "\n");
+                                               list.add(problem.getLocation() + ": " + problem.getDescription() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
                                        for (Problem problem : result.getWarnings())
-                                               list.add(problem.getLocation() + ": " + problem.getDescription() + "\n");
+                                               list.add(problem.getLocation() + ": " + problem.getDescription() + "\n"); //$NON-NLS-1$ //$NON-NLS-2$
 
                                        return composite;
                                }