/** @generated */
 public EditPart getTargetEditPart(Request request) {
   if (request instanceof CreateViewAndElementRequest) {
     CreateElementRequestAdapter adapter =
         ((CreateViewAndElementRequest) request)
             .getViewAndElementDescriptor()
             .getCreateElementRequestAdapter();
     IElementType type = (IElementType) adapter.getAdapter(IElementType.class);
     if (type == UMLElementTypes.ClassifierTemplateParameter_3031) {
       return getChildBySemanticHint(
           UMLVisualIDRegistry.getType(
               RedefinableTemplateSignatureTemplateParameterCompartmentEditPart.VISUAL_ID));
     }
     if (type == UMLElementTypes.ConnectableElementTemplateParameter_3034) {
       return getChildBySemanticHint(
           UMLVisualIDRegistry.getType(
               RedefinableTemplateSignatureTemplateParameterCompartmentEditPart.VISUAL_ID));
     }
     if (type == UMLElementTypes.OperationTemplateParameter_3035) {
       return getChildBySemanticHint(
           UMLVisualIDRegistry.getType(
               RedefinableTemplateSignatureTemplateParameterCompartmentEditPart.VISUAL_ID));
     }
     if (type == UMLElementTypes.TemplateParameter_3016) {
       return getChildBySemanticHint(
           UMLVisualIDRegistry.getType(
               RedefinableTemplateSignatureTemplateParameterCompartmentEditPart.VISUAL_ID));
     }
   }
   return super.getTargetEditPart(request);
 }
 @Override
 protected boolean ignoreRequestImpl(CreateConnectionViewAndElementRequest req) {
   CreateElementRequestAdapter requestAdapter =
       req.getConnectionViewAndElementDescriptor().getCreateElementRequestAdapter();
   IElementType elementType = (IElementType) requestAdapter.getAdapter(IElementType.class);
   return TimingDElementTypes.DStateSwitch_4001.equals(elementType);
 }
 /** @generated */
 public EditPart getTargetEditPart(Request request) {
   if (request instanceof CreateViewAndElementRequest) {
     CreateElementRequestAdapter adapter =
         ((CreateViewAndElementRequest) request)
             .getViewAndElementDescriptor()
             .getCreateElementRequestAdapter();
     IElementType type = (IElementType) adapter.getAdapter(IElementType.class);
     if (type == UMLElementTypes.Slot_3030) {
       return getChildBySemanticHint(
           UMLVisualIDRegistry.getType(InstanceSpecificationSlotCompartmentEditPartCN.VISUAL_ID));
     }
   }
   return super.getTargetEditPart(request);
 }
Esempio n. 4
0
 /** @generated */
 public EditPart getTargetEditPart(Request request) {
   if (request instanceof CreateViewAndElementRequest) {
     CreateElementRequestAdapter adapter =
         ((CreateViewAndElementRequest) request)
             .getViewAndElementDescriptor()
             .getCreateElementRequestAdapter();
     IElementType type = (IElementType) adapter.getAdapter(IElementType.class);
     if (type == SubsumptionElementTypes.Suppressor_3003) {
       return getChildBySemanticHint(
           SubsumptionVisualIDRegistry.getType(InputInputCompartmentEditPart.VISUAL_ID));
     }
   }
   return super.getTargetEditPart(request);
 }
 /** @generated */
 public EditPart getTargetEditPart(Request request) {
   if (request instanceof CreateViewAndElementRequest) {
     CreateElementRequestAdapter adapter =
         ((CreateViewAndElementRequest) request)
             .getViewAndElementDescriptor()
             .getCreateElementRequestAdapter();
     IElementType type = (IElementType) adapter.getAdapter(IElementType.class);
     if (type == EcoreElementTypes.EStringToStringMapEntry_3008) {
       return getChildBySemanticHint(
           EcoreVisualIDRegistry.getType(EAnnotationDetailsEditPart.VISUAL_ID));
     }
   }
   return super.getTargetEditPart(request);
 }
Esempio n. 6
0
 /** @generated */
 public EditPart getTargetEditPart(Request request) {
   if (request instanceof CreateViewAndElementRequest) {
     CreateElementRequestAdapter adapter =
         ((CreateViewAndElementRequest) request)
             .getViewAndElementDescriptor()
             .getCreateElementRequestAdapter();
     IElementType type = (IElementType) adapter.getAdapter(IElementType.class);
     if (type == stateAnalysis.diagram.providers.StateAnalysisElementTypes.StateConstraint_3008) {
       return getChildBySemanticHint(
           stateAnalysis.diagram.part.StateAnalysisVisualIDRegistry.getType(
               stateAnalysis
                   .diagram
                   .edit
                   .parts
                   .StateVariableStateVariableInStateConstraintsCompartment2EditPart
                   .VISUAL_ID));
     }
     if (type == stateAnalysis.diagram.providers.StateAnalysisElementTypes.StateConstraint_3009) {
       return getChildBySemanticHint(
           stateAnalysis.diagram.part.StateAnalysisVisualIDRegistry.getType(
               stateAnalysis
                   .diagram
                   .edit
                   .parts
                   .StateVariableStateVariableOutStateConstraintsCompartment2EditPart
                   .VISUAL_ID));
     }
     if (type == stateAnalysis.diagram.providers.StateAnalysisElementTypes.StateUpdate_3010) {
       return getChildBySemanticHint(
           stateAnalysis.diagram.part.StateAnalysisVisualIDRegistry.getType(
               stateAnalysis
                   .diagram
                   .edit
                   .parts
                   .StateVariableStateVariableStateUpdatesCompartment2EditPart
                   .VISUAL_ID));
     }
     if (type == stateAnalysis.diagram.providers.StateAnalysisElementTypes.StateVariable_3011) {
       return getChildBySemanticHint(
           stateAnalysis.diagram.part.StateAnalysisVisualIDRegistry.getType(
               stateAnalysis
                   .diagram
                   .edit
                   .parts
                   .StateVariableStateVariableInfluencedByCompartment2EditPart
                   .VISUAL_ID));
     }
   }
   return super.getTargetEditPart(request);
 }
 /** @generated */
 public EditPart getTargetEditPart(Request request) {
   if (request instanceof CreateViewAndElementRequest) {
     CreateElementRequestAdapter adapter =
         ((CreateViewAndElementRequest) request)
             .getViewAndElementDescriptor()
             .getCreateElementRequestAdapter();
     IElementType type = (IElementType) adapter.getAdapter(IElementType.class);
     if (type == LesscodeElementTypes.Subject_3002) {
       return this;
     }
     return getParent().getTargetEditPart(request);
   }
   return super.getTargetEditPart(request);
 }
Esempio n. 8
0
 /** @generated */
 public EditPart getTargetEditPart(Request request) {
   if (request instanceof CreateViewAndElementRequest) {
     CreateElementRequestAdapter adapter =
         ((CreateViewAndElementRequest) request)
             .getViewAndElementDescriptor()
             .getCreateElementRequestAdapter();
     IElementType type = (IElementType) adapter.getAdapter(IElementType.class);
     if (type
         == edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.providers
             .ICSE15_SequenceDiagram_MAVOElementTypes.Operation_3001) {
       return getChildBySemanticHint(
           edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.part
               .ICSE15_SequenceDiagram_MAVOVisualIDRegistry.getType(
               edu.toronto.cs.se.modelepedia.icse15_sequencediagram_mavo.diagram.edit.parts
                   .ClassClassOperationsCompartmentEditPart.VISUAL_ID));
     }
   }
   return super.getTargetEditPart(request);
 }