Java Code Examples for org.eclipse.emf.ecore.EStructuralFeature#Setting

The following examples show how to use org.eclipse.emf.ecore.EStructuralFeature#Setting . 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: UnexpectedProxiesException.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
public static List<URI> getURIs(EStructuralFeature.Setting setting) {
	Object it = setting.get(false);
	if (it instanceof EObject) {
		return ImmutableList.of(EcoreUtil.getURI(((EObject) it)));
	}
	if (it instanceof List) {
		List<URI> result = new ArrayList<>();
		for (Object o : ((List<?>) it)) {
			if (o instanceof EObject) {
				result.add(EcoreUtil.getURI((EObject) o));
			}
		}
		return result;
	}
	return null;
}
 
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> getTask_2004IncomingLinks(View view) {
	Task modelElement = (Task) 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 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<ProcessLinkDescriptor> getIntermediateErrorCatchEvent_3030IncomingLinks(View view) {
	IntermediateErrorCatchEvent modelElement = (IntermediateErrorCatchEvent) 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 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> getIntermediateCatchMessageEvent_3013IncomingLinks(View view) {
	IntermediateCatchMessageEvent modelElement = (IntermediateCatchMessageEvent) 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_MessageFlow_4002(modelElement, crossReferences));
	result.addAll(getIncomingTypeModelFacetLinks_TextAnnotationAttachment_4003(modelElement, crossReferences));
	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> getTask_3005IncomingLinks(View view) {
	Task modelElement = (Task) 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 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> getActivity_3006IncomingLinks(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 7
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> getPool_2007IncomingLinks(View view) {
	Pool modelElement = (Pool) 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 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> getEndMessageEvent_2011IncomingLinks(View view) {
	EndMessageEvent modelElement = (EndMessageEvent) 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 9
Source File: CrossflowDiagramUpdater.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
private static Collection<CrossflowLinkDescriptor> getIncomingFeatureModelFacetLinks_Task_Output_4003(Stream target,
		Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences) {
	LinkedList<CrossflowLinkDescriptor> result = new LinkedList<CrossflowLinkDescriptor>();
	Collection<EStructuralFeature.Setting> settings = crossReferences.get(target);
	for (EStructuralFeature.Setting setting : settings) {
		if (setting.getEStructuralFeature() == CrossflowPackage.eINSTANCE.getTask_Output()) {
			result.add(new CrossflowLinkDescriptor(setting.getEObject(), target,
					CrossflowElementTypes.TaskOutput_4003, TaskOutputEditPart.VISUAL_ID));
		}
	}
	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> getIntermediateErrorCatchEvent_3032IncomingLinks(View view) {
	IntermediateErrorCatchEvent modelElement = (IntermediateErrorCatchEvent) 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 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> getSubProcessEvent_2031IncomingLinks(View view) {
	SubProcessEvent modelElement = (SubProcessEvent) 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 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> getInclusiveGateway_3051IncomingLinks(View view) {
	InclusiveGateway modelElement = (InclusiveGateway) 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 13
Source File: CrossflowDiagramUpdater.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<CrossflowLinkDescriptor> getScriptedTask_2015IncomingLinks(View view) {
	ScriptedTask modelElement = (ScriptedTask) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<CrossflowLinkDescriptor> result = new LinkedList<CrossflowLinkDescriptor>();
	result.addAll(getIncomingFeatureModelFacetLinks_Stream_InputOf_4005(modelElement, crossReferences));
	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> getStartSignalEvent_2022IncomingLinks(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 15
Source File: CrossflowDiagramUpdater.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<CrossflowLinkDescriptor> getCommitmentTask_2007IncomingLinks(View view) {
	CommitmentTask modelElement = (CommitmentTask) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<CrossflowLinkDescriptor> result = new LinkedList<CrossflowLinkDescriptor>();
	result.addAll(getIncomingFeatureModelFacetLinks_Stream_InputOf_4005(modelElement, crossReferences));
	return result;
}
 
Example 16
Source File: CrossflowDiagramUpdater.java    From scava with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @generated
 */
public static List<CrossflowLinkDescriptor> getSink_2006IncomingLinks(View view) {
	Sink modelElement = (Sink) view.getElement();
	Map<EObject, Collection<EStructuralFeature.Setting>> crossReferences = EcoreUtil.CrossReferencer
			.find(view.eResource().getResourceSet().getResources());
	LinkedList<CrossflowLinkDescriptor> result = new LinkedList<CrossflowLinkDescriptor>();
	result.addAll(getIncomingFeatureModelFacetLinks_Stream_InputOf_4005(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<ProcessLinkDescriptor> getInclusiveGateway_2030IncomingLinks(View view) {
	InclusiveGateway modelElement = (InclusiveGateway) 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 18
Source File: UnexpectedProxiesException.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
private static String toStringRepresentiation(Map<EObject, Collection<EStructuralFeature.Setting>> unresolved) {
	Set<URI> uris = new HashSet<>();
	for (Collection<EStructuralFeature.Setting> collection : unresolved.values()) {
		for (EStructuralFeature.Setting setting : collection) {
			uris.addAll(UnexpectedProxiesException.getURIs(setting));
		}
	}
	return uris.toString();
}
 
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> getEvent_3024IncomingLinks(View view) {
	Event modelElement = (Event) 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 20
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> getSequenceFlow_4001IncomingLinks(View view) {
	SequenceFlow modelElement = (SequenceFlow) 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;
}