org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest Java Examples

The following examples show how to use org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest. 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: StartSignalEvent2ItemSemanticEditPolicy.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: Event2ItemSemanticEditPolicy.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: StartTimerEventItemSemanticEditPolicy.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 #4
Source File: StartErrorEvent2ItemSemanticEditPolicy.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: EndEventItemSemanticEditPolicy.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 #6
Source File: StartErrorEvent2ItemSemanticEditPolicy.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 #7
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 #8
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 #9
Source File: Event2ItemSemanticEditPolicy.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 #10
Source File: SendTask2ItemSemanticEditPolicy.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 #11
Source File: BoundarySignalEvent2ItemSemanticEditPolicy.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: 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 #13
Source File: MessageFlowItemSemanticEditPolicy.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.TextAnnotationAttachment_4003 == req.getElementType()) {
		return null;
	}
	return null;
}
 
Example #14
Source File: SequenceFlowItemSemanticEditPolicy.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 #15
Source File: InclusiveGateway2ItemSemanticEditPolicy.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 #16
Source File: BoundaryTimerEvent2ItemSemanticEditPolicy.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 #17
Source File: CatchLinkEventItemSemanticEditPolicy.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: 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 #19
Source File: StartErrorEventItemSemanticEditPolicy.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: ServiceTask2ItemSemanticEditPolicy.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 #21
Source File: SequenceFlowCreateCommand.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public SequenceFlowCreateCommand(CreateRelationshipRequest request, EObject source, EObject target) {
	super(request.getLabel(), null, request);
	this.source = source;
	this.target = target;
	container = deduceContainer(source, target);
}
 
Example #22
Source File: TextAnnotationAttachmentCreateCommand.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void doConfigure(TextAnnotationAttachment newElement, IProgressMonitor monitor, IAdaptable info)
		throws ExecutionException {
	IElementType elementType = ((CreateElementRequest) getRequest()).getElementType();
	ConfigureRequest configureRequest = new ConfigureRequest(getEditingDomain(), newElement, elementType);
	configureRequest.setClientContext(((CreateElementRequest) getRequest()).getClientContext());
	configureRequest.addParameters(getRequest().getParameters());
	configureRequest.setParameter(CreateRelationshipRequest.SOURCE, getSource());
	configureRequest.setParameter(CreateRelationshipRequest.TARGET, getTarget());
	ICommand configureCommand = elementType.getEditCommand(configureRequest);
	if (configureCommand != null && configureCommand.canExecute()) {
		configureCommand.execute(monitor, info);
	}
}
 
Example #23
Source File: EndTerminatedEvent2ItemSemanticEditPolicy.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 #24
Source File: StatechartEditHelperAdvice.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected ICommand getBeforeCreateRelationshipCommand(
		CreateRelationshipRequest request) {
	if (request.getSource() instanceof Statechart) {
		return UnexecutableCommand.INSTANCE;
	}
	return super.getBeforeCreateRelationshipCommand(request);
}
 
Example #25
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 #26
Source File: ThrowLinkEvent2ItemSemanticEditPolicy.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 #27
Source File: ScriptedTaskItemSemanticEditPolicy.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 #28
Source File: IntermediateErrorCatchEvent5ItemSemanticEditPolicy.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 #29
Source File: ActivityItemSemanticEditPolicy.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 #30
Source File: IntermediateErrorCatchEvent3ItemSemanticEditPolicy.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;
}