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

The following examples show how to use org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest#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: CallActivityItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3030 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEventCreateCommand(req));
	}
	if (ProcessElementTypes.BoundaryMessageEvent_3036 == req.getElementType()) {
		return getGEFWrapper(new BoundaryMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.NonInterruptingBoundaryTimerEvent_3065 == req.getElementType()) {
		return getGEFWrapper(new NonInterruptingBoundaryTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.BoundaryTimerEvent_3044 == req.getElementType()) {
		return getGEFWrapper(new BoundaryTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.BoundarySignalEvent_3053 == req.getElementType()) {
		return getGEFWrapper(new BoundarySignalEvent2CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 2
Source File: Task2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3029 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.BoundaryMessageEvent_3035 == req.getElementType()) {
		return getGEFWrapper(new BoundaryMessageEventCreateCommand(req));
	}
	if (ProcessElementTypes.NonInterruptingBoundaryTimerEvent_3064 == req.getElementType()) {
		return getGEFWrapper(new NonInterruptingBoundaryTimerEventCreateCommand(req));
	}
	if (ProcessElementTypes.BoundaryTimerEvent_3043 == req.getElementType()) {
		return getGEFWrapper(new BoundaryTimerEventCreateCommand(req));
	}
	if (ProcessElementTypes.BoundarySignalEvent_3052 == req.getElementType()) {
		return getGEFWrapper(new BoundarySignalEventCreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 3
Source File: CallActivity2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3030 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEventCreateCommand(req));
	}
	if (ProcessElementTypes.BoundaryMessageEvent_3036 == req.getElementType()) {
		return getGEFWrapper(new BoundaryMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.NonInterruptingBoundaryTimerEvent_3065 == req.getElementType()) {
		return getGEFWrapper(new NonInterruptingBoundaryTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.BoundaryTimerEvent_3044 == req.getElementType()) {
		return getGEFWrapper(new BoundaryTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.BoundarySignalEvent_3053 == req.getElementType()) {
		return getGEFWrapper(new BoundarySignalEvent2CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 4
Source File: TaskItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3029 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.BoundaryMessageEvent_3035 == req.getElementType()) {
		return getGEFWrapper(new BoundaryMessageEventCreateCommand(req));
	}
	if (ProcessElementTypes.NonInterruptingBoundaryTimerEvent_3064 == req.getElementType()) {
		return getGEFWrapper(new NonInterruptingBoundaryTimerEventCreateCommand(req));
	}
	if (ProcessElementTypes.BoundaryTimerEvent_3043 == req.getElementType()) {
		return getGEFWrapper(new BoundaryTimerEventCreateCommand(req));
	}
	if (ProcessElementTypes.BoundarySignalEvent_3052 == req.getElementType()) {
		return getGEFWrapper(new BoundarySignalEventCreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 5
Source File: ScriptedTaskScriptedTaskOutputVariablesCompartmentItemSemanticEditPolicy.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (CrossflowElementTypes.Field_3003 == req.getElementType()) {
		return getGEFWrapper(new Field2CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 6
Source File: ScriptTaskItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3033 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent5CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 7
Source File: ScriptTask2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3033 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent5CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 8
Source File: ActivityItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3034 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent6CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 9
Source File: ServiceTask2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3032 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent4CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 10
Source File: ServiceTaskItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3032 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent4CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 11
Source File: Activity2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3034 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent6CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 12
Source File: CustomMainProcessItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
@Override
protected Command getCreateCommand(CreateElementRequest req) {
	/*
	 * Allow to create only Pool and EventSubProcessPool on the "background"
	 * */
	IElementType elementType = req.getElementType();
	if (ProcessElementTypes.Pool_2007 == elementType) {
		return getGEFWrapper(new PoolCreateCommand(req));
	}

	return UnexecutableCommand.INSTANCE;
}
 
Example 13
Source File: StateEditHelper.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
@Override
protected ICommand getCreateCommand(CreateElementRequest req) {
	if (req.getElementType() == StatechartElementTypes.REGION) {
		return new CreateRegionCommand(req);
	}
	return super.getCreateCommand(req);
}
 
Example 14
Source File: ReceiveTask2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.IntermediateErrorCatchEvent_3031 == req.getElementType()) {
		return getGEFWrapper(new IntermediateErrorCatchEvent3CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 15
Source File: TypeTypeFieldsCompartmentItemSemanticEditPolicy.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (CrossflowElementTypes.Field_3001 == req.getElementType()) {
		return getGEFWrapper(new Field3CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 16
Source File: LanguageLanguageParametersCompartmentItemSemanticEditPolicy.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (CrossflowElementTypes.Parameter_3002 == req.getElementType()) {
		return getGEFWrapper(new ParameterCreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 17
Source File: LaneLaneCompartmentItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.Task_3005 == req.getElementType()) {
		return getGEFWrapper(new Task2CreateCommand(req));
	}
	if (ProcessElementTypes.ANDGateway_3009 == req.getElementType()) {
		return getGEFWrapper(new ANDGateway2CreateCommand(req));
	}
	if (ProcessElementTypes.StartEvent_3002 == req.getElementType()) {
		return getGEFWrapper(new StartEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndEvent_3003 == req.getElementType()) {
		return getGEFWrapper(new EndEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.CallActivity_3063 == req.getElementType()) {
		return getGEFWrapper(new CallActivity2CreateCommand(req));
	}
	if (ProcessElementTypes.SubProcessEvent_3058 == req.getElementType()) {
		return getGEFWrapper(new SubProcessEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.XORGateway_3008 == req.getElementType()) {
		return getGEFWrapper(new XORGateway2CreateCommand(req));
	}
	if (ProcessElementTypes.SendTask_3025 == req.getElementType()) {
		return getGEFWrapper(new SendTask2CreateCommand(req));
	}
	if (ProcessElementTypes.ReceiveTask_3026 == req.getElementType()) {
		return getGEFWrapper(new ReceiveTask2CreateCommand(req));
	}
	if (ProcessElementTypes.ServiceTask_3027 == req.getElementType()) {
		return getGEFWrapper(new ServiceTask2CreateCommand(req));
	}
	if (ProcessElementTypes.ScriptTask_3028 == req.getElementType()) {
		return getGEFWrapper(new ScriptTask2CreateCommand(req));
	}
	if (ProcessElementTypes.Activity_3006 == req.getElementType()) {
		return getGEFWrapper(new Activity2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchMessageEvent_3013 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndMessageEvent_3011 == req.getElementType()) {
		return getGEFWrapper(new EndMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.StartMessageEvent_3012 == req.getElementType()) {
		return getGEFWrapper(new StartMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateThrowMessageEvent_3014 == req.getElementType()) {
		return getGEFWrapper(new IntermediateThrowMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.TextAnnotation_3015 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotation2CreateCommand(req));
	}
	if (ProcessElementTypes.StartTimerEvent_3016 == req.getElementType()) {
		return getGEFWrapper(new StartTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchTimerEvent_3017 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.ThrowLinkEvent_3018 == req.getElementType()) {
		return getGEFWrapper(new ThrowLinkEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.CatchLinkEvent_3019 == req.getElementType()) {
		return getGEFWrapper(new CatchLinkEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndSignalEvent_3020 == req.getElementType()) {
		return getGEFWrapper(new EndSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchSignalEvent_3021 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateThrowSignalEvent_3022 == req.getElementType()) {
		return getGEFWrapper(new IntermediateThrowSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.StartSignalEvent_3023 == req.getElementType()) {
		return getGEFWrapper(new StartSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndErrorEvent_3050 == req.getElementType()) {
		return getGEFWrapper(new EndErrorEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndTerminatedEvent_3062 == req.getElementType()) {
		return getGEFWrapper(new EndTerminatedEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.Event_3024 == req.getElementType()) {
		return getGEFWrapper(new Event2CreateCommand(req));
	}
	if (ProcessElementTypes.InclusiveGateway_3051 == req.getElementType()) {
		return getGEFWrapper(new InclusiveGateway2CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 18
Source File: SubProcessEventSubProcessCompartment2ItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.ANDGateway_3009 == req.getElementType()) {
		return getGEFWrapper(new ANDGateway2CreateCommand(req));
	}
	if (ProcessElementTypes.EndEvent_3003 == req.getElementType()) {
		return getGEFWrapper(new EndEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.CallActivity_3063 == req.getElementType()) {
		return getGEFWrapper(new CallActivity2CreateCommand(req));
	}
	if (ProcessElementTypes.Task_3005 == req.getElementType()) {
		return getGEFWrapper(new Task2CreateCommand(req));
	}
	if (ProcessElementTypes.ReceiveTask_3026 == req.getElementType()) {
		return getGEFWrapper(new ReceiveTask2CreateCommand(req));
	}
	if (ProcessElementTypes.SendTask_3025 == req.getElementType()) {
		return getGEFWrapper(new SendTask2CreateCommand(req));
	}
	if (ProcessElementTypes.ServiceTask_3027 == req.getElementType()) {
		return getGEFWrapper(new ServiceTask2CreateCommand(req));
	}
	if (ProcessElementTypes.ScriptTask_3028 == req.getElementType()) {
		return getGEFWrapper(new ScriptTask2CreateCommand(req));
	}
	if (ProcessElementTypes.XORGateway_3008 == req.getElementType()) {
		return getGEFWrapper(new XORGateway2CreateCommand(req));
	}
	if (ProcessElementTypes.Activity_3006 == req.getElementType()) {
		return getGEFWrapper(new Activity2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchMessageEvent_3013 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.StartMessageEvent_3012 == req.getElementType()) {
		return getGEFWrapper(new StartMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndMessageEvent_3011 == req.getElementType()) {
		return getGEFWrapper(new EndMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateThrowMessageEvent_3014 == req.getElementType()) {
		return getGEFWrapper(new IntermediateThrowMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.TextAnnotation_3015 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotation2CreateCommand(req));
	}
	if (ProcessElementTypes.StartTimerEvent_3016 == req.getElementType()) {
		return getGEFWrapper(new StartTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchTimerEvent_3017 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.StartSignalEvent_3023 == req.getElementType()) {
		return getGEFWrapper(new StartSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateThrowSignalEvent_3022 == req.getElementType()) {
		return getGEFWrapper(new IntermediateThrowSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchSignalEvent_3021 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndSignalEvent_3020 == req.getElementType()) {
		return getGEFWrapper(new EndSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndErrorEvent_3050 == req.getElementType()) {
		return getGEFWrapper(new EndErrorEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndTerminatedEvent_3062 == req.getElementType()) {
		return getGEFWrapper(new EndTerminatedEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.StartErrorEvent_3060 == req.getElementType()) {
		return getGEFWrapper(new StartErrorEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.Event_3024 == req.getElementType()) {
		return getGEFWrapper(new Event2CreateCommand(req));
	}
	if (ProcessElementTypes.InclusiveGateway_3051 == req.getElementType()) {
		return getGEFWrapper(new InclusiveGateway2CreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 19
Source File: MainProcessItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.ANDGateway_2009 == req.getElementType()) {
		return getGEFWrapper(new ANDGatewayCreateCommand(req));
	}
	if (ProcessElementTypes.StartEvent_2002 == req.getElementType()) {
		return getGEFWrapper(new StartEventCreateCommand(req));
	}
	if (ProcessElementTypes.EndEvent_2003 == req.getElementType()) {
		return getGEFWrapper(new EndEventCreateCommand(req));
	}
	if (ProcessElementTypes.Task_2004 == req.getElementType()) {
		return getGEFWrapper(new TaskCreateCommand(req));
	}
	if (ProcessElementTypes.CallActivity_2036 == req.getElementType()) {
		return getGEFWrapper(new CallActivityCreateCommand(req));
	}
	if (ProcessElementTypes.SubProcessEvent_2031 == req.getElementType()) {
		return getGEFWrapper(new SubProcessEventCreateCommand(req));
	}
	if (ProcessElementTypes.ReceiveTask_2025 == req.getElementType()) {
		return getGEFWrapper(new ReceiveTaskCreateCommand(req));
	}
	if (ProcessElementTypes.SendTask_2026 == req.getElementType()) {
		return getGEFWrapper(new SendTaskCreateCommand(req));
	}
	if (ProcessElementTypes.ServiceTask_2027 == req.getElementType()) {
		return getGEFWrapper(new ServiceTaskCreateCommand(req));
	}
	if (ProcessElementTypes.ScriptTask_2028 == req.getElementType()) {
		return getGEFWrapper(new ScriptTaskCreateCommand(req));
	}
	if (ProcessElementTypes.XORGateway_2008 == req.getElementType()) {
		return getGEFWrapper(new XORGatewayCreateCommand(req));
	}
	if (ProcessElementTypes.InclusiveGateway_2030 == req.getElementType()) {
		return getGEFWrapper(new InclusiveGatewayCreateCommand(req));
	}
	if (ProcessElementTypes.Activity_2006 == req.getElementType()) {
		return getGEFWrapper(new ActivityCreateCommand(req));
	}
	if (ProcessElementTypes.Pool_2007 == req.getElementType()) {
		return getGEFWrapper(new PoolCreateCommand(req));
	}
	if (ProcessElementTypes.StartMessageEvent_2010 == req.getElementType()) {
		return getGEFWrapper(new StartMessageEventCreateCommand(req));
	}
	if (ProcessElementTypes.EndMessageEvent_2011 == req.getElementType()) {
		return getGEFWrapper(new EndMessageEventCreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchMessageEvent_2013 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchMessageEventCreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateThrowMessageEvent_2014 == req.getElementType()) {
		return getGEFWrapper(new IntermediateThrowMessageEventCreateCommand(req));
	}
	if (ProcessElementTypes.TextAnnotation_2015 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotationCreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchTimerEvent_2017 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchTimerEventCreateCommand(req));
	}
	if (ProcessElementTypes.StartTimerEvent_2016 == req.getElementType()) {
		return getGEFWrapper(new StartTimerEventCreateCommand(req));
	}
	if (ProcessElementTypes.CatchLinkEvent_2018 == req.getElementType()) {
		return getGEFWrapper(new CatchLinkEventCreateCommand(req));
	}
	if (ProcessElementTypes.ThrowLinkEvent_2019 == req.getElementType()) {
		return getGEFWrapper(new ThrowLinkEventCreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateThrowSignalEvent_2020 == req.getElementType()) {
		return getGEFWrapper(new IntermediateThrowSignalEventCreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchSignalEvent_2021 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchSignalEventCreateCommand(req));
	}
	if (ProcessElementTypes.StartSignalEvent_2022 == req.getElementType()) {
		return getGEFWrapper(new StartSignalEventCreateCommand(req));
	}
	if (ProcessElementTypes.EndSignalEvent_2023 == req.getElementType()) {
		return getGEFWrapper(new EndSignalEventCreateCommand(req));
	}
	if (ProcessElementTypes.Event_2024 == req.getElementType()) {
		return getGEFWrapper(new EventCreateCommand(req));
	}
	if (ProcessElementTypes.EndErrorEvent_2029 == req.getElementType()) {
		return getGEFWrapper(new EndErrorEventCreateCommand(req));
	}
	if (ProcessElementTypes.StartErrorEvent_2033 == req.getElementType()) {
		return getGEFWrapper(new StartErrorEventCreateCommand(req));
	}
	if (ProcessElementTypes.EndTerminatedEvent_2035 == req.getElementType()) {
		return getGEFWrapper(new EndTerminatedEventCreateCommand(req));
	}
	return super.getCreateCommand(req);
}
 
Example 20
Source File: PoolPoolCompartmentItemSemanticEditPolicy.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
/**
* @generated
*/
protected Command getCreateCommand(CreateElementRequest req) {
	if (ProcessElementTypes.Lane_3007 == req.getElementType()) {
		return getGEFWrapper(new LaneCreateCommand(req));
	}
	if (ProcessElementTypes.ANDGateway_3009 == req.getElementType()) {
		return getGEFWrapper(new ANDGateway2CreateCommand(req));
	}
	if (ProcessElementTypes.StartEvent_3002 == req.getElementType()) {
		return getGEFWrapper(new StartEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndEvent_3003 == req.getElementType()) {
		return getGEFWrapper(new EndEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.CallActivity_3063 == req.getElementType()) {
		return getGEFWrapper(new CallActivity2CreateCommand(req));
	}
	if (ProcessElementTypes.SubProcessEvent_3058 == req.getElementType()) {
		return getGEFWrapper(new SubProcessEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.Task_3005 == req.getElementType()) {
		return getGEFWrapper(new Task2CreateCommand(req));
	}
	if (ProcessElementTypes.ReceiveTask_3026 == req.getElementType()) {
		return getGEFWrapper(new ReceiveTask2CreateCommand(req));
	}
	if (ProcessElementTypes.SendTask_3025 == req.getElementType()) {
		return getGEFWrapper(new SendTask2CreateCommand(req));
	}
	if (ProcessElementTypes.ServiceTask_3027 == req.getElementType()) {
		return getGEFWrapper(new ServiceTask2CreateCommand(req));
	}
	if (ProcessElementTypes.ScriptTask_3028 == req.getElementType()) {
		return getGEFWrapper(new ScriptTask2CreateCommand(req));
	}
	if (ProcessElementTypes.XORGateway_3008 == req.getElementType()) {
		return getGEFWrapper(new XORGateway2CreateCommand(req));
	}
	if (ProcessElementTypes.Activity_3006 == req.getElementType()) {
		return getGEFWrapper(new Activity2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchMessageEvent_3013 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.StartMessageEvent_3012 == req.getElementType()) {
		return getGEFWrapper(new StartMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndMessageEvent_3011 == req.getElementType()) {
		return getGEFWrapper(new EndMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateThrowMessageEvent_3014 == req.getElementType()) {
		return getGEFWrapper(new IntermediateThrowMessageEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.TextAnnotation_3015 == req.getElementType()) {
		return getGEFWrapper(new TextAnnotation2CreateCommand(req));
	}
	if (ProcessElementTypes.StartTimerEvent_3016 == req.getElementType()) {
		return getGEFWrapper(new StartTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchTimerEvent_3017 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchTimerEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.CatchLinkEvent_3019 == req.getElementType()) {
		return getGEFWrapper(new CatchLinkEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.ThrowLinkEvent_3018 == req.getElementType()) {
		return getGEFWrapper(new ThrowLinkEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.StartSignalEvent_3023 == req.getElementType()) {
		return getGEFWrapper(new StartSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateThrowSignalEvent_3022 == req.getElementType()) {
		return getGEFWrapper(new IntermediateThrowSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.IntermediateCatchSignalEvent_3021 == req.getElementType()) {
		return getGEFWrapper(new IntermediateCatchSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndSignalEvent_3020 == req.getElementType()) {
		return getGEFWrapper(new EndSignalEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndErrorEvent_3050 == req.getElementType()) {
		return getGEFWrapper(new EndErrorEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.EndTerminatedEvent_3062 == req.getElementType()) {
		return getGEFWrapper(new EndTerminatedEvent2CreateCommand(req));
	}
	if (ProcessElementTypes.Event_3024 == req.getElementType()) {
		return getGEFWrapper(new Event2CreateCommand(req));
	}
	if (ProcessElementTypes.InclusiveGateway_3051 == req.getElementType()) {
		return getGEFWrapper(new InclusiveGateway2CreateCommand(req));
	}
	return super.getCreateCommand(req);
}