MenuManager menuManager = new MenuManager(); menuManager.add(new Action("Action") { @Override public void run() { MessageBox box = new MessageBox(Display.getCurrent().getActiveShell()); box.setMessage("hello!"); box.open(); } }); Menu menu = menuManager.createContextMenu(table); table.setMenu(menu);
相关资源:敏捷开发V1.0.pptx