use of com.rockwellcollins.atc.agree.analysis.views.AgreeResultsView in project AGREE by loonwerks.
the class VerifyHandler method findView.
protected AgreeResultsView findView() {
AgreeResultsView result = null;
IViewPart part = getWindow().getActivePage().findView(AgreeResultsView.ID);
if (part instanceof AgreeResultsView) {
result = (AgreeResultsView) part;
} else {
try {
result = (AgreeResultsView) getWindow().getActivePage().showView(AgreeResultsView.ID);
} catch (PartInitException e) {
e.printStackTrace();
}
}
return result;
}
use of com.rockwellcollins.atc.agree.analysis.views.AgreeResultsView in project AGREE by loonwerks.
the class VerifyHandler method showView.
protected void showView(final AnalysisResult result, final AgreeResultsLinker linker) {
/*
* This command is executed while the xtext document is locked. Thus it must be async
* otherwise we can get a deadlock condition if the UI tries to lock the document,
* e.g., to pull up hover information.
*/
getWindow().getShell().getDisplay().asyncExec(() -> {
try {
AgreeResultsView page = (AgreeResultsView) getWindow().getActivePage().showView(AgreeResultsView.ID);
page.setInput(result, linker);
} catch (PartInitException e) {
e.printStackTrace();
}
});
}
use of com.rockwellcollins.atc.agree.analysis.views.AgreeResultsView in project AGREE by loonwerks.
the class VerifyHandler method clearView.
protected void clearView() {
getWindow().getShell().getDisplay().syncExec(() -> {
try {
AgreeResultsView page = (AgreeResultsView) getWindow().getActivePage().showView(AgreeResultsView.ID);
page.setInput(new CompositeAnalysisResult("empty"), null);
} catch (PartInitException e) {
e.printStackTrace();
}
});
}
Aggregations