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

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


    int status;
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    ((TransactionalCommandStack)editingDomain.getCommandStack()).begin();
    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) {
View Full Code Here


  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    ((TransactionalCommandStack)editingDomain.getCommandStack()).begin();
    ServerDialog newNameDialog = new ServerDialog(window.getShell(), ServerDialog.Type.CREATE, editingDomain, serverDataStore, serverDataStoreEntry);
    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.