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

Examples of com.subgraph.vega.ui.macros.macrodialog.MacroDialog


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 button = new Button(parent, SWT.PUSH);
    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);
        }
      }
    });   
    return button;
  }
View Full Code Here

TOP

Related Classes of com.subgraph.vega.ui.macros.macrodialog.MacroDialog

Copyright © 2018 www.massapicom. 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.