Java Code Examples for org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest#getElementType()

The following examples show how to use org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest#getElementType() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StartEvent2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotationAttachmentCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 2
Source File: ANDGateway2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 3
Source File: CsvSourceItemSemanticEditPolicy.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (CrossflowElementTypes.StreamInputOf_4005 == req.getElementType()) {
		return null;
	}
	if (CrossflowElementTypes.TaskOutput_4003 == req.getElementType()) {
		return getGEFWrapper(new TaskOutputCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 4
Source File: StartEventItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 5
Source File: LaneItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotationAttachmentCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 6
Source File: EndMessageEventItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.MessageFlow_4002 == req.getElementType()) {
		return null;
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotationAttachmentCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 7
Source File: CommitmentTaskItemSemanticEditPolicy.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (CrossflowElementTypes.StreamInputOf_4005 == req.getElementType()) {
		return null;
	}
	if (CrossflowElementTypes.TaskOutput_4003 == req.getElementType()) {
		return getGEFWrapper(new TaskOutputCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 8
Source File: CallActivityItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 9
Source File: NonInterruptingBoundaryTimerEventItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 10
Source File: IntermediateErrorCatchEvent5ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 11
Source File: IntermediateErrorCatchEvent6ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return null;
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotationAttachmentCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 12
Source File: IntermediateCatchTimerEvent2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotationAttachmentCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 13
Source File: IntermediateThrowSignalEventItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 14
Source File: IntermediateErrorCatchEvent2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 15
Source File: IntermediateErrorCatchEvent3ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return null;
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotationAttachmentCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 16
Source File: InclusiveGatewayItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 17
Source File: NonInterruptingBoundaryTimerEvent2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getStartCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example 18
Source File: TypeItemSemanticEditPolicy.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (CrossflowElementTypes.StreamType_4001 == req.getElementType()) {
		return getGEFWrapper(new StreamTypeCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (CrossflowElementTypes.TypeExtending_4004 == req.getElementType()) {
		return getGEFWrapper(new TypeExtendingCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 19
Source File: IntermediateThrowSignalEvent2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (ProcessElementTypes.SequenceFlow_4001 == req.getElementType()) {
		return getGEFWrapper(new SequenceFlowCreateCommand(req, req.getSource(), req.getTarget()));
	}
	if (ProcessElementTypes.TextAnnotationAttachment_4003 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotationAttachmentCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}
 
Example 20
Source File: QueueItemSemanticEditPolicy.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
protected Command getCompleteCreateRelationshipCommand(CreateRelationshipRequest req) {
	if (CrossflowElementTypes.StreamType_4001 == req.getElementType()) {
		return null;
	}
	if (CrossflowElementTypes.StreamInputOf_4005 == req.getElementType()) {
		return null;
	}
	if (CrossflowElementTypes.TaskOutput_4003 == req.getElementType()) {
		return getGEFWrapper(new TaskOutputCreateCommand(req, req.getSource(), req.getTarget()));
	}
	return null;
}