Java Code Examples for org.eclipse.gmf.runtime.notation.View#getElement()

The following examples show how to use org.eclipse.gmf.runtime.notation.View#getElement() . 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: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getBoundaryTimerEvent_3044ContainedLinks(View view) {
	BoundaryTimerEvent modelElement = (BoundaryTimerEvent) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getContainedTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement));
	return result;
}
 
Example 2
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getSubProcessEvent_3058ContainedLinks(View view) {
	SubProcessEvent modelElement = (SubProcessEvent) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getContainedTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement));
	return result;
}
 
Example 3
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public static List<ProcessNodeDescriptor> getTask_3005SemanticChildren(View view) {
	if (!view.isSetElement()) {
		return Collections.emptyList();
	}
	Task modelElement = (Task) view.getElement();
	LinkedList<ProcessNodeDescriptor> result = new LinkedList<ProcessNodeDescriptor>();
	for (Iterator<?> it = modelElement.getBoundaryIntermediateEvents().iterator(); it.hasNext();) {
		BoundaryEvent childElement = (BoundaryEvent) it.next();
		int visualID = ProcessVisualIDRegistry.getNodeVisualID(view, childElement);
		if (visualID == IntermediateErrorCatchEvent2EditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
		if (visualID == BoundaryMessageEventEditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
		if (visualID == NonInterruptingBoundaryTimerEventEditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
		if (visualID == BoundaryTimerEventEditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
		if (visualID == BoundarySignalEventEditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
	}
	return result;
}
 
Example 4
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getEvent_3024ContainedLinks(View view) {
	Event modelElement = (Event) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getContainedTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement));
	return result;
}
 
Example 5
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getMessageFlow_4002IncomingLinks(View view) {
	MessageFlow modelElement = (MessageFlow) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getIncomingTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement, crossReferences));
	return result;
}
 
Example 6
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getIntermediateErrorCatchEvent_3029ContainedLinks(View view) {
	IntermediateErrorCatchEvent modelElement = (IntermediateErrorCatchEvent) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getContainedTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement));
	return result;
}
 
Example 7
Source File: CrossflowDiagramUpdater.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<CrossflowLinkDescriptor> getOpinionatedTask_2008ContainedLinks(View view) {
	OpinionatedTask modelElement = (OpinionatedTask) view.getElement();
	LinkedList<CrossflowLinkDescriptor> result = new LinkedList<CrossflowLinkDescriptor>();
	result.addAll(getOutgoingFeatureModelFacetLinks_Task_Output_4003(modelElement));
	return result;
}
 
Example 8
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getIntermediateCatchTimerEvent_3017ContainedLinks(View view) {
	IntermediateCatchTimerEvent modelElement = (IntermediateCatchTimerEvent) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getContainedTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement));
	return result;
}
 
Example 9
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getStartSignalEvent_3023IncomingLinks(View view) {
	StartSignalEvent modelElement = (StartSignalEvent) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getIncomingTypeModelFacetLinks_SequenceFlow_4001(modelElement, crossReferences));
	result.addAll(getIncomingTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement, crossReferences));
	return result;
}
 
Example 10
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getActivity_2006ContainedLinks(View view) {
	Activity modelElement = (Activity) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getContainedTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement));
	return result;
}
 
Example 11
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getActivity_2006IncomingLinks(View view) {
	Activity modelElement = (Activity) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getIncomingTypeModelFacetLinks_SequenceFlow_4001(modelElement, crossReferences));
	result.addAll(getIncomingTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement, crossReferences));
	return result;
}
 
Example 12
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getBoundaryTimerEvent_3044OutgoingLinks(View view) {
	BoundaryTimerEvent modelElement = (BoundaryTimerEvent) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getOutgoingTypeModelFacetLinks_SequenceFlow_4001(modelElement));
	return result;
}
 
Example 13
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getEndMessageEvent_3011ContainedLinks(View view) {
	EndMessageEvent modelElement = (EndMessageEvent) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getContainedTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement));
	return result;
}
 
Example 14
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getBoundaryTimerEvent_3044IncomingLinks(View view) {
	BoundaryTimerEvent modelElement = (BoundaryTimerEvent) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getIncomingTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement, crossReferences));
	return result;
}
 
Example 15
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getXORGateway_2008IncomingLinks(View view) {
	XORGateway modelElement = (XORGateway) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getIncomingTypeModelFacetLinks_SequenceFlow_4001(modelElement, crossReferences));
	result.addAll(getIncomingTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement, crossReferences));
	return result;
}
 
Example 16
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getIntermediateCatchSignalEvent_2021IncomingLinks(View view) {
	IntermediateCatchSignalEvent modelElement = (IntermediateCatchSignalEvent) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getIncomingTypeModelFacetLinks_SequenceFlow_4001(modelElement, crossReferences));
	result.addAll(getIncomingTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement, crossReferences));
	return result;
}
 
Example 17
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
public static List<ProcessNodeDescriptor> getCallActivity_2036SemanticChildren(View view) {
	if (!view.isSetElement()) {
		return Collections.emptyList();
	}
	CallActivity modelElement = (CallActivity) view.getElement();
	LinkedList<ProcessNodeDescriptor> result = new LinkedList<ProcessNodeDescriptor>();
	for (Iterator<?> it = modelElement.getBoundaryIntermediateEvents().iterator(); it.hasNext();) {
		BoundaryEvent childElement = (BoundaryEvent) it.next();
		int visualID = ProcessVisualIDRegistry.getNodeVisualID(view, childElement);
		if (visualID == IntermediateErrorCatchEventEditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
		if (visualID == BoundaryMessageEvent2EditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
		if (visualID == NonInterruptingBoundaryTimerEvent2EditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
		if (visualID == BoundaryTimerEvent2EditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
		if (visualID == BoundarySignalEvent2EditPart.VISUAL_ID) {
			result.add(new ProcessNodeDescriptor(childElement, visualID));
			continue;
		}
	}
	return result;
}
 
Example 18
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getBoundaryMessageEvent_3036ContainedLinks(View view) {
	BoundaryMessageEvent modelElement = (BoundaryMessageEvent) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getContainedTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement));
	return result;
}
 
Example 19
Source File: ProcessDiagramUpdater.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<ProcessLinkDescriptor> getStartSignalEvent_2022OutgoingLinks(View view) {
	StartSignalEvent modelElement = (StartSignalEvent) view.getElement();
	LinkedList<ProcessLinkDescriptor> result = new LinkedList<ProcessLinkDescriptor>();
	result.addAll(getOutgoingTypeModelFacetLinks_SequenceFlow_4001(modelElement));
	return result;
}
 
Example 20
Source File: ValidateAction.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
* @generated
*/
private static Diagnostic runEMFValidator(View target) {
	if (target.isSetElement() && target.getElement() != null) {
		return new Diagnostician() {

			public String getObjectLabel(EObject eObject) {
				return EMFCoreUtil.getQualifiedName(eObject, true);
			}
		}.validate(target.getElement());
	}
	return Diagnostic.OK_INSTANCE;
}