import org.simantics.db.exception.DatabaseException;
import org.simantics.db.layer0.adapter.ActionFactory;
import org.simantics.graph.compiler.CompilationResult;
-import org.simantics.ltk.Problem;
+import org.simantics.graph.compiler.internal.ltk.Problem;
import org.simantics.modeling.CompilePGraphs;
import org.simantics.modeling.ui.Activator;
import org.simantics.utils.ui.ExceptionUtils;
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 {
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
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;
}