Package org.eclipse.core.commands

Examples of org.eclipse.core.commands.ExecutionException


    // just pass it along
    EcoreInferenceHandler eih = new EcoreInferenceHandler(this.emfInferenceHandler.resource);
    try {
      eih.setValue(element, reference, value);
    } catch (InferenceException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return CommandResult.newOKCommandResult();
   
  }
View Full Code Here


    // just pass it along
    EcoreInferenceHandler eih = new EcoreInferenceHandler(this.emfInferenceHandler.resource);
    try {
      created = eih.createRelationship(container, elementType, source, target, containerFeature, sourceFeature, targetFeature);
    } catch (InferenceException e) {
      throw new ExecutionException(e.getMessage(), e);
    }
    return CommandResult.newOKCommandResult(created);
   
  }
View Full Code Here

      // log message
      IamlDiagramEditorPlugin.getInstance().logError(
          status.getMessage(), status.getException());

      if (status.getException() != null) {
        throw new ExecutionException(status.getMessage(), status.getException());
      }
      throw new ExecutionException(status.getMessage());
    }

    // else: warn
    if (!status.isOK()) {
      IamlDiagramEditorPlugin.getInstance().logError(
View Full Code Here

    }
    if (this.editorId.equals(org.openiaml.model.diagram.part.IamlDiagramEditorPlugin.ID)) {
      return org.openiaml.model.diagram.providers.IamlElementTypes.getCreateEdgeCommand(request, elementType, source, target);
    }

    throw new ExecutionException("Unknown editor ID: "  + this.editorId);

  }
View Full Code Here

    }
    if (this.editorId.equals(org.openiaml.model.diagram.part.IamlDiagramEditorPlugin.ID)) {
      return org.openiaml.model.diagram.providers.IamlElementTypes.getElementType(elementType);
    }

    throw new ExecutionException("Unknown editor ID: "  + this.editorId);
  }
View Full Code Here

    }
    if (this.editorId.equals(org.openiaml.model.diagram.part.IamlDiagramEditorPlugin.ID)) {
      return org.openiaml.model.diagram.providers.IamlElementTypes.getCreateNodeCommand(request, elementType);
    }

    throw new ExecutionException("Unknown editor ID: "  + this.editorId);

  }
View Full Code Here

                    EncounterTrackerDetailView.ID, String.valueOf(instanceNum), IWorkbenchPage.VIEW_ACTIVATE);

            instanceNum++;
        }
        catch(WorkbenchException e) {
            throw new ExecutionException(e.getLocalizedMessage());
        }

        logger.info("Done executing encounter tracker detail view handler.");

        return null;
View Full Code Here

                    String.valueOf(instanceNum), IWorkbenchPage.VIEW_ACTIVATE);

            instanceNum++;
        }
        catch(WorkbenchException e) {
            throw new ExecutionException(e.getLocalizedMessage());
        }

        logger.info("Done executing encounter tracker view handler.");

        return null;
View Full Code Here

            logger.info("Opening view: " + AlertsView.ID);
            PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(AlertsView.ID, null,
                    IWorkbenchPage.VIEW_CREATE);
        }
        catch(WorkbenchException e) {
            throw new ExecutionException(e.getLocalizedMessage());
        }

        logger.info("Done executing alerts view handler.");

        return null;
View Full Code Here

    try {
      logger.info("Switching to perspective: " + CampaignManagerPerspectiveFactory.ID);
      PlatformUI.getWorkbench().showPerspective(CampaignManagerPerspectiveFactory.ID, PlatformUI.getWorkbench().getActiveWorkbenchWindow());
    }
    catch(WorkbenchException e) {
      throw new ExecutionException(e.getLocalizedMessage());
    }
   
    logger.info("Done executing campaign manager perspective handler.");

    return null;
View Full Code Here

TOP

Related Classes of org.eclipse.core.commands.ExecutionException

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.