X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2Factions%2FCompilePGraphsAction.java;h=651f4f66b21128892a8bd0b8d595996db0f10bf1;hp=0c93e6c2055652a4ce48e003bd646f22009c8d76;hb=47269fe0acb894f346810417d950a1ab59cdc0ea;hpb=11309f6516278203264b680235cbbe1dc2bde98e diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java index 0c93e6c20..651f4f66b 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/actions/CompilePGraphsAction.java @@ -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; }