use of org.whole.lang.e4.ui.operations.E4UIDecorationManager in project whole by wholeplatform.
the class ValidateModelRunnable method run.
@Override
public void run(IOperationProgressMonitor pm) throws InvocationTargetException, InterruptedException {
pm.beginTask("Validating...", IOperationProgressMonitor.TOTAL_WORK);
try {
UISynchronize synchronize = context.get(UISynchronize.class);
bm.wDefValue("decorationManager", new E4UIDecorationManager(synchronize, bm));
HandlersBehavior.validateModel(bm);
if (MarkerUtils.findMarkers((IResource) bm.wGetValue("file"), true).length > 0)
E4Utils.revealPart(context, "org.eclipse.ui.views.ProblemView");
} catch (OperationCanceledException e) {
// gracefully terminate execution
} finally {
pm.endTask();
}
}
Aggregations