Loading plugins/org.etsi.mts.tdl.graphical.viewpoint/src/org/etsi/mts/tdl/graphical/extensions/ModelHelper.java +9 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ import org.eclipse.emf.ecore.EClassifier; import org.eclipse.emf.ecore.EObject; import org.eclipse.sirius.diagram.DDiagramElement; import org.etsi.mts.tdl.Action; import org.etsi.mts.tdl.AnnotationType; import org.etsi.mts.tdl.Behaviour; import org.etsi.mts.tdl.BehaviourDescription; import org.etsi.mts.tdl.ComponentInstance; Loading Loading @@ -93,10 +94,18 @@ public class ModelHelper { return (List<DataInstance>) getOf(context, tdlPackage.eINSTANCE.getDataInstance()); } public List<TestConfiguration> getTestConfigurations(EObject context) { return (List<TestConfiguration>) getOf(context, tdlPackage.eINSTANCE.getTestConfiguration()); } public List<ComponentType> getComponentTypes(EObject context) { return (List<ComponentType>) getOf(context, tdlPackage.eINSTANCE.getComponentType()); } public List<AnnotationType> getAnnotationTypes(EObject context) { return (List<AnnotationType>) getOf(context, tdlPackage.eINSTANCE.getAnnotationType()); } public List<GateType> getGateTypes(EObject context) { return (List<GateType>) getOf(context, tdlPackage.eINSTANCE.getGateType()); } Loading Loading
plugins/org.etsi.mts.tdl.graphical.viewpoint/src/org/etsi/mts/tdl/graphical/extensions/ModelHelper.java +9 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,7 @@ import org.eclipse.emf.ecore.EClassifier; import org.eclipse.emf.ecore.EObject; import org.eclipse.sirius.diagram.DDiagramElement; import org.etsi.mts.tdl.Action; import org.etsi.mts.tdl.AnnotationType; import org.etsi.mts.tdl.Behaviour; import org.etsi.mts.tdl.BehaviourDescription; import org.etsi.mts.tdl.ComponentInstance; Loading Loading @@ -93,10 +94,18 @@ public class ModelHelper { return (List<DataInstance>) getOf(context, tdlPackage.eINSTANCE.getDataInstance()); } public List<TestConfiguration> getTestConfigurations(EObject context) { return (List<TestConfiguration>) getOf(context, tdlPackage.eINSTANCE.getTestConfiguration()); } public List<ComponentType> getComponentTypes(EObject context) { return (List<ComponentType>) getOf(context, tdlPackage.eINSTANCE.getComponentType()); } public List<AnnotationType> getAnnotationTypes(EObject context) { return (List<AnnotationType>) getOf(context, tdlPackage.eINSTANCE.getAnnotationType()); } public List<GateType> getGateTypes(EObject context) { return (List<GateType>) getOf(context, tdlPackage.eINSTANCE.getGateType()); } Loading