Package org.xvr.xvrengine.widgets

Examples of org.xvr.xvrengine.widgets.SelectWorkspace


  /* (non-Javadoc)
   * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
   */
  @Override
  public Object execute(ExecutionEvent event) throws ExecutionException {
    SelectWorkspace dialog = new SelectWorkspace(Display.getDefault().getActiveShell(), true);
        
        if (dialog.open() == Dialog.CANCEL)
            return null;
        MessageDialog.openInformation(Display.getDefault().getActiveShell(), "Switch Workspace", "The client will now restart with the new workspace");
        // restart client
View Full Code Here


        remember = false;
      }
    }
    // if we don't remember the workspace, show the dialog
    if (!remember || switch_failed) {
      SelectWorkspace dialog = new SelectWorkspace(shell);


      // if the user cancelled, we can't do anything as we need a workspace, so in this case, we tell them and exit
      if (dialog.open() == Window.CANCEL) {
        MessageDialog.openError(shell, "Error",
        "The application can not start without a workspace root and will now exit.");
        try {
          PlatformUI.getWorkbench().close();
        } catch (Exception err) {

        }
        return false;
      }
      // tell Eclipse what the selected location was and continue
      instanceLoc.set(new URL("file", null, dialog.getSelectedWorkspaceLocation()), false);
    }
    else {
      // set the last used location and continue
      instanceLoc.set(new URL("file", null, lastUsedWs), false);
    }
View Full Code Here

TOP

Related Classes of org.xvr.xvrengine.widgets.SelectWorkspace

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.