Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.CoreException


  protected static void throwException(List<IStatus> status, String message) throws CoreException {
    if (status == null || status.size() == 0) {
      return;
    }
    throw new CoreException(new MultiStatus(CloudFoundryPlugin.PLUGIN_ID, 0, status.toArray(new IStatus[0]),
        message, null));
  }
View Full Code Here


   * least one resource to archive and publish to the CF server.
   */
  public ModuleResourceApplicationArchive(IModule module, List<IModuleResource> resources) throws CoreException {
    super(module, resources);
    if (resources == null || resources.isEmpty()) {
      throw new CoreException(
          CloudFoundryPlugin.getErrorStatus(NLS.bind(Messages.ModuleResourceApplicationArchive_ERROR_NO_DEPLOYABLE_RES_FOUND,
              module.getName(), module.getId())));
    }
  }
View Full Code Here

    writeln("1");//$NON-NLS-1$
  else
    writeln("0");//$NON-NLS-1$
  throwable.printStackTrace(new PrintWriter(log));
  if (isCoreException) {
   CoreException e = (CoreException) throwable;
   write(e.getStatus(), 0);
  }
}
View Full Code Here

    // and after the forked operation
    UIJob job = new UIJob(operationLabel) {

      @Override
      public IStatus runInUIThread(IProgressMonitor monitor) {
        CoreException cex = null;
        try {
          // Fork in a worker thread.
          CloudUiUtil.runForked(runnable, getWizard().getContainer());
        }
        catch (OperationCanceledException e) {
View Full Code Here

    CloudFoundryOperations client = createClient(new CloudCredentials(credentials.userEmail, invalidPassword),
        CloudFoundryTestFixture.CF_PIVOTAL_SERVER_URL_HTTP);

    CloudFoundryLoginHandler operationsHandler = new CloudFoundryLoginHandler(client);
    CoreException error = null;

    try {
      operationsHandler.login(new NullProgressMonitor());
    }
    catch (CoreException e) {
View Full Code Here

    CloudFoundryOperations client = createClient(new CloudCredentials(invalidUsername, credentials.password),
        CloudFoundryTestFixture.CF_PIVOTAL_SERVER_URL_HTTP);

    CloudFoundryLoginHandler operationsHandler = new CloudFoundryLoginHandler(client);
    CoreException error = null;

    try {
      operationsHandler.login(new NullProgressMonitor());
    }
    catch (CoreException e) {
View Full Code Here

    CloudFoundryOperations client = createClient(new CloudCredentials(invalidUsername, credentials.password),
        CloudFoundryTestFixture.CF_PIVOTAL_SERVER_URL_HTTP);

    CloudFoundryLoginHandler operationsHandler = new CloudFoundryLoginHandler(client);
    CoreException error = null;

    try {
      operationsHandler.login(new NullProgressMonitor());
    }
    catch (CoreException e) {
View Full Code Here

    if (!resource.exists() || !resource.isAccessible()) {
      return;
    }
    waitForManualBuild();
    waitForAutoBuild();
    CoreException lastException = null;
    try {
      resource.delete(force, null);
    }
    catch (CoreException e) {
      lastException = e;
View Full Code Here

          break;
        }
      }

      if (matchedData == null) {
        throw new CoreException(CloudFoundryPlugin.getErrorStatus("No matched proxy data type found for: "
            + proxyDataType));
      }

      matchedData.setHost(host);
      matchedData.setPort(port);
View Full Code Here

  public static class CFFacetInstallDelegate implements IDelegate {
    public void execute(IProject project, IProjectFacetVersion fv,
        Object config, IProgressMonitor monitor) throws CoreException {
      if (!new StandaloneFacetHandler(project).canAddFacet()) {
        throw new CoreException(
            CloudFoundryPlugin
                .getErrorStatus("Cloud Foundry Standalone Facet can only be installed on a Java project.")); //$NON-NLS-1$
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.CoreException

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.