7980818283848586878889
/** * Initialize right-click context menu */ public void initMenu() { canvasMenu = new ContextMenu(); canvasMenu.addItem(new MenuItem("Generate XML", new Command() { @Override public void execute() { generateXml(); }
8889909192939495969798
/** * Initialize right-click context menu */ protected void initMenu() { contextMenu = new ContextMenu(); contextMenu.addItem(new MenuItem("Delete", new Command() { @Override public void execute() { generator.removeWidget(NodeWidget.this); }