Search in sources :

Example 1 with AnalysisResultTree

use of jkind.api.ui.results.AnalysisResultTree in project AGREE by loonwerks.

the class AgreeResultsView method createPartControl.

@Override
public void createPartControl(Composite parent) {
    tree = new AnalysisResultTree(parent);
    tree.getViewer().setAutoExpandLevel(2);
    menuListener = new AgreeMenuListener(getViewSite().getWorkbenchWindow(), tree);
    MenuManager manager = new MenuManager();
    manager.setRemoveAllWhenShown(true);
    manager.addMenuListener(menuListener);
    tree.getControl().setMenu(manager.createContextMenu(tree.getViewer().getTree()));
}
Also used : AnalysisResultTree(jkind.api.ui.results.AnalysisResultTree) MenuManager(org.eclipse.jface.action.MenuManager)

Aggregations

AnalysisResultTree (jkind.api.ui.results.AnalysisResultTree)1 MenuManager (org.eclipse.jface.action.MenuManager)1