Package org.fusesource.ide.sap.ui.dialog

Examples of org.fusesource.ide.sap.ui.dialog.DestinationDialog.open()


    if (isServerPaste) {
      ServerDialog pasteServerDialog = new ServerDialog(window.getShell(), ServerDialog.Type.PASTE, editingDomain, serverDataStore, serverDataStoreEntry);
       status = pasteServerDialog.open();
    } else {
      DestinationDialog pasteDestinationDialog = new DestinationDialog(window.getShell(), DestinationDialog.Type.PASTE, editingDomain, destinationDataStore, destinationDataStoreEntry);
       status = pasteDestinationDialog.open();
    }
    if (status != Window.OK) {
        ((TransactionalCommandStack)editingDomain.getCommandStack()).rollback();
      return null;
    }
View Full Code Here


  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    ((TransactionalCommandStack)editingDomain.getCommandStack()).begin();
    DestinationDialog newNameDialog = new DestinationDialog(window.getShell(), DestinationDialog.Type.CREATE, editingDomain, destinationDataStore, destinationDataStoreEntry);
    int status = newNameDialog.open();
    if (status != Window.OK) {
        ((TransactionalCommandStack)editingDomain.getCommandStack()).rollback();
        return null;
    }
    editingDomain.getCommandStack().execute(command);
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.