Package org.eclipse.ui

Examples of org.eclipse.ui.WorkbenchException


            throws WorkbenchException {
        id = configElement.getAttribute(IWorkbenchRegistryConstants.ATT_ID);

        configurationElement = configElement;
        if (id == null || getLabel() == null) {
      throw new WorkbenchException("Invalid category: " + id); //$NON-NLS-1$
    }
    }
View Full Code Here


    protected IActionDelegate validateDelegate(Object obj)
            throws WorkbenchException {
        if (obj instanceof IViewActionDelegate) {
      return (IViewActionDelegate) obj;
    } else {
      throw new WorkbenchException(
                    "Action must implement IViewActionDelegate"); //$NON-NLS-1$
    }
    }
View Full Code Here

    if (result[0] instanceof IWorkbenchPage) {
      return (IWorkbenchPage) result[0];
    } else if (result[0] instanceof WorkbenchException) {
      throw (WorkbenchException) result[0];
    } else {
      throw new WorkbenchException(
          WorkbenchMessages.WorkbenchWindow_exceptionMessage);
    }
  }
View Full Code Here

            throws WorkbenchException {
        if (obj instanceof IWorkbenchWindowActionDelegate) {
      return (IWorkbenchWindowActionDelegate) obj;
    }
       
        throw new WorkbenchException(
                "Action must implement IWorkbenchWindowActionDelegate"); //$NON-NLS-1$
    }
View Full Code Here

      String toolingFile = null;
      try {
        URL toolingFileURL = CCWPlugin.getDefault().getBundle().getResource("ccw/debug/serverrepl.clj");
        toolingFile = FileLocator.toFileURL(toolingFileURL).getFile();
      } catch (IOException e) {
        throw new WorkbenchException("Could not find ccw.debug.serverrepl source file", e);
      }
     
      // Process will print a line with nRepl URL so that the Console
      // hyperlink listener can automatically open the REPL
      String nREPLInit = "(require 'clojure.tools.nrepl.server)" +
View Full Code Here

                System.out.println("ccwPluginDir: " + ccwPluginDir);
                // this should *always* be a file, *unless* the user is getting nREPL from a clone of its
                // project, in which case we need to reach into that project's directory...
                ArrayList replAdditions = new ArrayList();
                if (ccwPluginDir.isFile()) {
                  throw new WorkbenchException("Bundle ccw.core is a file. Cannot install nrepl");
                } else {
                    //replAdditions.add(new File(repllib, "src/main/clojure").getAbsolutePath());
                    //replAdditions.add(new File(repllib, "target/classes").getAbsolutePath());
                 
                  // Hack, until the project is launched via leiningen instead
                  File nreplFile = new File(ccwPluginDir, "lib/tools.nrepl.jar");
          String nreplPath = nreplFile.getAbsolutePath();
          if (!nreplFile.exists()) {
            throw new WorkbenchException("nreplFile not found: " + nreplFile);
          }
                  System.out.println("nreplPath for classpath:" + nreplPath);
                  replAdditions.add(nreplPath);
                }
               
                CCWPlugin.log("Adding to project's classpath to support nREPL: " + replAdditions);
               
                classpath.addAll(replAdditions);
            } catch (IOException e) {
                throw new WorkbenchException("Failed to find nrepl library", e);
            }
        } else {
          System.out.println("Found package clojure.tools.nrepl in the project classpath, won't try to add ccw's nrepl to it then");
        }
       
View Full Code Here

              }
              }
              return null;
          }}, 20000);
        } catch (Exception e) {
            throw new WorkbenchException(
                String.format("Could not visit: %s.\nDid you kill the project's JVM during the build?", clojureLibs), e);
        }
    }
  }
View Full Code Here

      throws WorkbenchException {
    id = configElement.getAttribute("id"); //$NON-NLS-1$

    configurationElement = configElement;
    if (id == null || getLabel() == null)
      throw new WorkbenchException("Invalid category: " + id); //$NON-NLS-1$
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.WorkbenchException

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.