Package com.subgraph.vega.ui.macros.macrodialog

Examples of com.subgraph.vega.ui.macros.macrodialog.MacroDialog.open()


public class CreateMacro extends AbstractHandler {

  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    MacroDialog dialog = MacroDialog.createDialog(HandlerUtil.getActiveWorkbenchWindow(event).getShell());
    dialog.open();
    return null;
  }

}
View Full Code Here


    button.setText("Create macro");
    button.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        MacroDialog dialog = MacroDialog.createDialog(getShell());
        if (dialog.open() == Window.OK) {
          macrosTableViewer.refresh();
          macrosTableViewer.setSelection(new StructuredSelection(dialog.getMacro()), true);
        }
      }
    });   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.