* setting the operatorGraphViewer...
*/
public void setUpContextMenus() {
// --- context menu example - begin ---
// get the OperatorGraph...
final OperatorGraph operatorGraph = this.operatorGraphViewer.getOperatorGraph();
this.menuItems = new LinkedList<JMenuItem>();
// walk through the list of root GraphWrappers...
final HashSet<GraphWrapper> visited = new HashSet<GraphWrapper>();
for (final GraphWrapper rootGW : operatorGraph.getRootList(false)) {
this.addContextMenusToGraphWrappers(operatorGraph, rootGW, visited);
}
// remove context menus only from the root GraphWrappers...
// for (final GraphWrapper rootGW : operatorGraph.getRootList(false)) {