109110111112113114115116117118119
addButton.addMouseListener(new MouseListener(){ public void mouseDoubleClick(MouseEvent e) {} public void mouseDown(MouseEvent e) { FrameworkEditDialog fed = new FrameworkEditDialog(getShell()); fed.open(); } public void mouseUp(MouseEvent e) {} });
136137138139140141142143144145146
Object data = tableFrameworks.getSelection()[0].getData(); if (data instanceof Element) { Element fwxElement = (Element) data; FrameworkEditDialog fed = new FrameworkEditDialog(getShell(), fwxElement); fed.open(); } }