Examples of EAnnotation


Examples of org.eclipse.emf.ecore.EAnnotation

    super.decorateView(containerView, view, semanticAdapter, semanticHint,
        index, persisted);
    if (!OntoUML.diagram.edit.parts.ContainerEditPart.MODEL_ID
        .equals(OntoUML.diagram.part.OntoUMLVisualIDRegistry
            .getModelID(containerView))) {
      EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE
          .createEAnnotation();
      shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
      shortcutAnnotation
          .getDetails()
          .put(
              "modelID", OntoUML.diagram.edit.parts.ContainerEditPart.MODEL_ID); //$NON-NLS-1$
      view.getEAnnotations().add(shortcutAnnotation);
    }
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  /**
   * @generated
   */
  protected void addDestroyChildNodesCommand(CompoundCommand cmd) {
    View view = (View) getHost().getModel();
    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
    if (annotation != null) {
      return;
    }
    for (Iterator it = view.getChildren().iterator(); it.hasNext();) {
      Node node = (Node) it.next();
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

      EStructuralFeature eFeature = (OntoUMLPackage.Literals.GENERALIZATION__SPECIFIC);
     
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.GENERALIZATION, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        specificDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

      EStructuralFeature eFeature = (OntoUMLPackage.Literals.GENERALIZATION__GENERAL);
     
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.GENERALIZATION, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        generalDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

    super.decorateView(containerView, view, semanticAdapter, semanticHint,
        index, persisted);
    if (!OntoUML.diagram.edit.parts.ContainerEditPart.MODEL_ID
        .equals(OntoUML.diagram.part.OntoUMLVisualIDRegistry
            .getModelID(containerView))) {
      EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE
          .createEAnnotation();
      shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
      shortcutAnnotation
          .getDetails()
          .put(
              "modelID", OntoUML.diagram.edit.parts.ContainerEditPart.MODEL_ID); //$NON-NLS-1$
      view.getEAnnotations().add(shortcutAnnotation);
    }
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

      EStructuralFeature eFeature = (OntoUMLPackage.Literals.PROPERTY__END_TYPE);
     
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.PROPERTY, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        endTypeDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

      EStructuralFeature eFeature = (OntoUMLPackage.Literals.PROPERTY__SOURCE);
     
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.PROPERTY, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        sourceDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

      EStructuralFeature eFeature = (OntoUMLPackage.Literals.PROPERTY__TARGET);
     
      Helper helper = OCL_ENV.createOCLHelper();
      helper.setAttributeContext(OntoUMLPackage.Literals.PROPERTY, eFeature);
     
      EAnnotation ocl = eFeature.getEAnnotation(OCL_ANNOTATION_SOURCE);
      String derive = (String) ocl.getDetails().get("derive");
     
      try {
        targetDeriveOCL = helper.createQuery(derive);
      } catch (ParserException e) {
        throw new UnsupportedOperationException(e.getLocalizedMessage());
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  /**
   * @generated
   */
  protected void addDestroyChildNodesCommand(CompoundCommand cmd) {
    View view = (View) getHost().getModel();
    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
    if (annotation != null) {
      return;
    }
    for (Iterator it = view.getChildren().iterator(); it.hasNext();) {
      Node node = (Node) it.next();
View Full Code Here

Examples of org.eclipse.emf.ecore.EAnnotation

  /**
   * @generated
   */
  protected void addDestroyChildNodesCommand(CompoundCommand cmd) {
    View view = (View) getHost().getModel();
    EAnnotation annotation = view.getEAnnotation("Shortcut"); //$NON-NLS-1$
    if (annotation != null) {
      return;
    }
    for (Iterator it = view.getChildren().iterator(); it.hasNext();) {
      Node node = (Node) it.next();
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.