diff options
author | ptessier | 2014-01-21 16:50:49 +0000 |
---|---|---|
committer | ptessier | 2014-01-21 16:50:49 +0000 |
commit | 85bda5e2acba745151607913b433adc3dc3406d1 (patch) | |
tree | a8d2cc8e638e1c88bc605ee8d534d943af1c095a /deprecated | |
parent | 91f83a3137b40e5e2f0b07d3802938318ca51020 (diff) | |
download | org.eclipse.papyrus-85bda5e2acba745151607913b433adc3dc3406d1.tar.gz org.eclipse.papyrus-85bda5e2acba745151607913b433adc3dc3406d1.tar.xz org.eclipse.papyrus-85bda5e2acba745151607913b433adc3dc3406d1.zip |
386118: [EMF Facet] Papyrus should progressively support EMF Facet 0.2
https://bugs.eclipse.org/bugs/show_bug.cgi?id=386118
Diffstat (limited to 'deprecated')
96 files changed, 5823 insertions, 0 deletions
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/.classpath b/deprecated/org.eclipse.papyrus.sysml.facets/.classpath new file mode 100644 index 00000000000..45f024e850e --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/.project b/deprecated/org.eclipse.papyrus.sysml.facets/.project new file mode 100644 index 00000000000..df39881e32a --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.sysml.facets</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.sysml.facets/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..29da509e8f9 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/META-INF/MANIFEST.MF @@ -0,0 +1,33 @@ +Manifest-Version: 1.0
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.emf.facet.infra.common.core,
+ org.eclipse.emf.facet.infra.query.core,
+ org.eclipse.emf.ecore,
+ org.eclipse.uml2.uml,
+ org.eclipse.papyrus.sysml;bundle-version="1.0.0",
+ org.eclipse.emf.edit,
+ org.eclipse.uml2.common.edit,
+ org.eclipse.papyrus.infra.core;bundle-version="1.0.0",
+ org.eclipse.papyrus.infra.services.edit;bundle-version="1.0.0",
+ org.eclipse.papyrus.sysml.service.types;bundle-version="1.0.0",
+ org.eclipse.papyrus.uml.service.types;bundle-version="1.0.0",
+ org.eclipse.papyrus.sysml.diagram.common;bundle-version="1.0.0",
+ org.eclipse.papyrus.infra.widgets.toolbox;bundle-version="1.0.0",
+ org.eclipse.gmf.runtime.common.core;bundle-version="1.4.1",
+ org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0",
+ org.eclipse.jface;bundle-version="3.8.0",
+ org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.0.0",
+ org.eclipse.uml2.uml.profile.l2;bundle-version="1.0.0",
+ org.eclipse.papyrus.infra.emf;bundle-version="1.0.0"
+Bundle-Vendor: %providerName
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .,
+ bin
+Bundle-Version: 1.0.0.qualifier
+Bundle-Localization: plugin
+Bundle-Name: %pluginName
+Bundle-ManifestVersion: 2
+Bundle-Activator: org.eclipse.papyrus.sysml.facets.Activator
+Bundle-SymbolicName: org.eclipse.papyrus.sysml.facets;singleton:=true
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/README.txt b/deprecated/org.eclipse.papyrus.sysml.facets/README.txt new file mode 100644 index 00000000000..51c4cbfeaf5 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/README.txt @@ -0,0 +1,7 @@ +The goal of this plugin :
+ - provide facets to represent and edit the SysML elements in the Papyrus Table. The facets allow to
+ represent and edit stereotypes properties.
+
+the goal of extendedsysml :
+ This model provides the Enumeration NAFlowPortDirection. This Enumeration is used to display N/A in the FlowPortDirection
+ when the port is not atomic. So the Facet "Direction" extends Enumerator and not FlowDirection to allow this behavior.
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/about.html b/deprecated/org.eclipse.papyrus.sysml.facets/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/build.properties b/deprecated/org.eclipse.papyrus.sysml.facets/build.properties new file mode 100644 index 00000000000..ec9877ca04a --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/build.properties @@ -0,0 +1,7 @@ +#
+#Mon Sep 12 09:30:16 CEST 2011
+bin.includes=META-INF/,.,plugin.xml,resources/,about.html,plugin.properties
+output..=bin/
+src.includes = about.html
+source..=src/
+bin..=bin/
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/plugin.properties b/deprecated/org.eclipse.papyrus.sysml.facets/plugin.properties new file mode 100644 index 00000000000..4b1ed988b60 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/plugin.properties @@ -0,0 +1,3 @@ +#Properties file for org.eclipse.papyrus.sysml.facets
+providerName = Eclipse Modeling Project
+pluginName = EMF Facets for Papyrus SysML (Incubation)
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/plugin.xml b/deprecated/org.eclipse.papyrus.sysml.facets/plugin.xml new file mode 100644 index 00000000000..7f2b95565b0 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/plugin.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?eclipse version="3.4"?>
+
+<plugin>
+ <extension point="org.eclipse.emf.facet.infra.facet.registration">
+ <facetset file="resources/requirementsFacets.facetSet"/>
+ </extension>
+ <extension point="org.eclipse.emf.facet.infra.query.registration">
+ <modelqueryset file="resources/requirementsQueries.querySet"/>
+ </extension>
+ <extension point="org.eclipse.emf.facet.infra.query.registration">
+ <modelqueryset file="resources/portAndFlowsQueries.querySet"/>
+ </extension>
+ <extension point="org.eclipse.emf.facet.infra.facet.registration">
+ <facetset file="resources/portAndFlowsFacets.facetSet"/>
+ </extension>
+</plugin>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/resources/extendedsysml.genmodel b/deprecated/org.eclipse.papyrus.sysml.facets/resources/extendedsysml.genmodel new file mode 100644 index 00000000000..ba39a559190 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/resources/extendedsysml.genmodel @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" modelDirectory="/org.eclipse.papyrus.sysml.facets_branch/src"
+ modelPluginID="org.eclipse.papyrus.sysml.facets_branch" modelName="Extendedsysml"
+ importerID="org.eclipse.emf.importer.ecore" complianceLevel="6.0" copyrightFields="false">
+ <foreignModel>extentedsysml.ecore</foreignModel>
+ <genPackages prefix="Extendedsysml" basePackage="org.eclipse.papyrus.sysml.facets.extendedsysml"
+ disposableProviderFactory="true" ecorePackage="extentedsysml.ecore#/">
+ <nestedGenPackages prefix="Portandflows" disposableProviderFactory="true" ecorePackage="extentedsysml.ecore#//portandflows">
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="extentedsysml.ecore#//portandflows/FlowPortDirection">
+ <genEnumLiterals ecoreEnumLiteral="extentedsysml.ecore#//portandflows/FlowPortDirection/in"/>
+ <genEnumLiterals ecoreEnumLiteral="extentedsysml.ecore#//portandflows/FlowPortDirection/out"/>
+ <genEnumLiterals ecoreEnumLiteral="extentedsysml.ecore#//portandflows/FlowPortDirection/inout"/>
+ </genEnums>
+ <genEnums typeSafeEnumCompatible="false" ecoreEnum="extentedsysml.ecore#//portandflows/NAFlowPortDirection">
+ <genEnumLiterals ecoreEnumLiteral="extentedsysml.ecore#//portandflows/NAFlowPortDirection/NA"/>
+ </genEnums>
+ </nestedGenPackages>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/resources/extentedsysml.ecore b/deprecated/org.eclipse.papyrus.sysml.facets/resources/extentedsysml.ecore new file mode 100644 index 00000000000..154a23ae23d --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/resources/extentedsysml.ecore @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="extendedsysml"
+ nsURI="http://www.eclipse.org/papyrus/0.8.0/ExtendedSysML" nsPrefix="ExtendedSysml">
+ <eSubpackages name="portandflows" nsURI="http://www.eclipse.org/papyrus/0.7.0/ExtendedSysML/PortAndFlows"
+ nsPrefix="PortAndFlows">
+ <eClassifiers xsi:type="ecore:EEnum" name="NAFlowPortDirection" instanceTypeName="NAFlowPortDirection">
+ <eLiterals name="NA" literal="N/A"/>
+ </eClassifiers>
+ </eSubpackages>
+</ecore:EPackage>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/resources/portAndFlowsFacets.facetSet b/deprecated/org.eclipse.papyrus.sysml.facets/resources/portAndFlowsFacets.facetSet new file mode 100644 index 00000000000..ab24bf55d01 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/resources/portAndFlowsFacets.facetSet @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="ASCII"?>
+<facet:FacetSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:facet="http://www.eclipse.org/EmfFacet/infra/facet/0.8.incubation" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="portAndFlowsFacets" nsURI="http://www.eclipse.org/papyrus/sysml/portAndFlows/SysMLPortAndFlowsFacetSet.facetSet" nsPrefix="SysMLPortAndFlowsFacetSet">
+ <eClassifiers xsi:type="facet:Facet" name="FlowPort" abstract="true">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Port"/>
+ <eStructuralFeatures xsi:type="facet:FacetAttribute" name="/isAtomic" changeable="false" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Boolean"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/portAndFlowsQueries#GetFlowPortIsAtomicQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetAttribute" name="direction" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EEnumerator"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/portAndFlowsQueries#GetFlowPortDirectionQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/portAndFlowsQueries#SetFlowPortDirectionQuery"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+</facet:FacetSet>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/resources/portAndFlowsQueries.querySet b/deprecated/org.eclipse.papyrus.sysml.facets/resources/portAndFlowsQueries.querySet new file mode 100644 index 00000000000..de8e0bcf4a9 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/resources/portAndFlowsQueries.querySet @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="ASCII"?>
+<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="portAndFlowsQueries" description="These queries are used to manage the PortAndFlowsProfile">
+ <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ <associatedMetamodels href="http://www.eclipse.org/emf/2002/Ecore#/"/>
+ <associatedMetamodels href="http://www.eclipse.org/papyrus/0.7.0/SysML#//portandflows"/>
+ <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/Types#/"/>
+ <queries xsi:type="query:JavaModelQuery" name="GetFlowPortIsAtomicQuery" description="Query to get the derived attribute "isAtomic" of the FlowPort" implementationClassName="org.eclipse.papyrus.sysml.facets.portandflows.query.value.getter.GetFlowPortIsAtomicQuery">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Boolean"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Port"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetFlowPortDirectionQuery" description="Query to qet the attribute "Direction" of the FlowPort" implementationClassName="org.eclipse.papyrus.sysml.facets.portandflows.query.value.getter.GetFlowPortDirectionQuery">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EEnumerator"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Port"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetFlowPortDirectionQuery" description="Query to qet the attribute "Direction" of the FlowPort" implementationClassName="org.eclipse.papyrus.sysml.facets.portandflows.query.value.setter.SetFlowPortDirectionQuery">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EEnumerator"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Port"/>
+ </queries>
+</query:ModelQuerySet>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/resources/requirementsFacets.facetSet b/deprecated/org.eclipse.papyrus.sysml.facets/resources/requirementsFacets.facetSet new file mode 100644 index 00000000000..8e7cded63a0 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/resources/requirementsFacets.facetSet @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="ASCII"?>
+<facet:FacetSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:facet="http://www.eclipse.org/EmfFacet/infra/facet/0.8.incubation" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="requirementsFacets" nsURI="http://www.eclipse.org/papyrus/sysml/requirements/SysMLRequirementsFacetSet.facetSet" nsPrefix="SysMLRequirementsFacetSet">
+ <eClassifiers xsi:type="facet:Facet" name="Requirement" abstract="true">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <eStructuralFeatures xsi:type="facet:FacetAttribute" name="text" lowerBound="1" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementTextQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementTextQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetAttribute" name="id" lowerBound="1" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementIdQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementIdQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="/derived" upperBound="-1" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementDerivedQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementDerivedQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="/derivedFrom" upperBound="-1" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementDerivedFromQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementDerivedFromQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="/satisfiedBy" upperBound="-1" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementSatisfiedByQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementSatisfiedByQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="/refinedBy" upperBound="-1" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementRefinedByQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementRefinedByQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="/tracedTo" upperBound="-1" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementTracedToQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementTracedToQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="/verifiedBy" upperBound="-1" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementVerifiedByQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementVerifiedByQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="/master" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementMasterQuery"/>
+ <setQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#SetRequirementMasterQuery"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="base_Class" lowerBound="1" changeable="false" volatile="true" unsettable="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="requirementsQueries.querySet#GetRequirementBase_ClassQuery"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+</facet:FacetSet>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/resources/requirementsQueries.querySet b/deprecated/org.eclipse.papyrus.sysml.facets/resources/requirementsQueries.querySet new file mode 100644 index 00000000000..bdf14ce2ef7 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/resources/requirementsQueries.querySet @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="ASCII"?>
+<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="requirementsQueries" description="These queries are used to manage the requirements">
+ <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementIdQuery" description="Query to get the attribute "id" of the requirement" lowerBound="1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementIdQuery">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementTextQuery" description="Query to get the attribute "text" of the requirement" lowerBound="1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementTextQuery">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementDerivedQuery" description="Query to get the reference "derived" of the requirement" upperBound="-1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementDerivedQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementDerivedFromQuery" description="Query to get the reference "derivedBy" of the requirement" upperBound="-1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementDerivedFromQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementSatisfiedByQuery" description="Query to get the reference "satisfiedBy" of the requirement" upperBound="-1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementSatifiedByQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementRefinedByQuery" description="Query to get the reference "redefinedBy" of the requirement" upperBound="-1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementRefinedByQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementTracedToQuery" description="Query to get the reference "tracedTo" of the requirement" upperBound="-1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementTracedToQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementVerifiedByQuery" description="Query to get the reference "verified by" of the requirement" upperBound="-1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementVerifiedByQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementMasterQuery" description="Query to get the field reference "master" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementMasterQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetRequirementBase_ClassQuery" description="Query to get the reference "base_class" of the requirement" lowerBound="1" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.getter.GetRequirementBase_ClassQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementIdQuery" description="Query to set the attribute "id" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementIdQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementTextQuery" description="Query to set the attribute "text" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementTextQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementDerivedFromQuery" description="Query to set the derived attribute "derived From" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementDerivedFromQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementDerivedQuery" description="Query to set the derived attribute "derived" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementDerivedQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementMasterQuery" description="Query to set the derived attribute "master" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementMasterQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementSatisfiedByQuery" description="Query to set the derived attribute "satisfiedBy" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementSatisfiedByQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementVerifiedByQuery" description="Query to set the derived attribute "verifiedBy" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementVerifiedByQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementTracedToQuery" description="Query to set the derived attribute "tracedTo" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementTracedToQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="SetRequirementRefinedByQuery" description="Query to set the derived attribute "refinedBy" of the requirement" implementationClassName="org.eclipse.papyrus.sysml.facets.query.value.setter.SetRequirementRefinedByQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement"/>
+ </queries>
+</query:ModelQuerySet>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet b/deprecated/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet new file mode 100644 index 00000000000..c8d6ea1cbf8 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet @@ -0,0 +1,270 @@ +<?xml version="1.0" encoding="ASCII"?>
+<profilefacet:ProfileFacetSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:paramQuery="http://www.eclipse.org/papyrus/infra/emf/facet/parametric/query/0.9.1" xmlns:profilefacet="http://www.eclipse.org/papyrus/0.9/profilefacet" name="SysML" nsURI="http://www.eclipse.org/papyrus/profilefacet/SysML" nsPrefix="SysML" representedElement_XMI_ID="_TZ_nULU5EduiKqCzJMWbGw" profileQualifiedName="SysML">
+ <eSubpackages xsi:type="profilefacet:ProfileFacetSet" name="ModelElements" nsURI="http://www.eclipse.org/papyrus/profilefacet/SysML::ModelElements" nsPrefix="ModelElements" representedElement_XMI_ID="_Gx8MgLX7EduFmqQsrNB9lw" profileQualifiedName="SysML::ModelElements">
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="View" representedElement_XMI_ID="_mPGvULU9Edu2ieF4ON8UjA" stereotypeQualifiedName="SysML::ModelElements::View">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="viewPoint" lowerBound="1" changeable="false" derived="true" representedElement_XMI_ID="_3Qho8LU9Edu2ieF4ON8UjA" propertyQualifiedName="SysML::ModelElements::View::viewPoint" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::ModelElements::View::viewPoint_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::ModelElements::View::viewPoint_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::ModelElements::View_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="ViewPoint" representedElement_XMI_ID="_mhSEcLU9Edu2ieF4ON8UjA" stereotypeQualifiedName="SysML::ModelElements::ViewPoint">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="stakeHolders" upperBound="-1" derived="true" representedElement_XMI_ID="__VwDoLU9Edu2ieF4ON8UjA" propertyQualifiedName="SysML::ModelElements::ViewPoint::stakeHolders">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::ModelElements::ViewPoint::stakeHolders_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::ModelElements::ViewPoint::stakeHolders_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="purpose" derived="true" representedElement_XMI_ID="__lB1wLU9Edu2ieF4ON8UjA" propertyQualifiedName="SysML::ModelElements::ViewPoint::purpose">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::ModelElements::ViewPoint::purpose_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::ModelElements::ViewPoint::purpose_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="concerns" upperBound="-1" derived="true" representedElement_XMI_ID="__s9pwLU9Edu2ieF4ON8UjA" propertyQualifiedName="SysML::ModelElements::ViewPoint::concerns">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::ModelElements::ViewPoint::concerns_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::ModelElements::ViewPoint::concerns_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="languages" upperBound="-1" derived="true" representedElement_XMI_ID="__48QQLU9Edu2ieF4ON8UjA" propertyQualifiedName="SysML::ModelElements::ViewPoint::languages">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::ModelElements::ViewPoint::languages_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::ModelElements::ViewPoint::languages_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="methods" upperBound="-1" derived="true" representedElement_XMI_ID="_AEs0ULU-Edu2ieF4ON8UjA" propertyQualifiedName="SysML::ModelElements::ViewPoint::methods">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::ModelElements::ViewPoint::methods_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::ModelElements::ViewPoint::methods_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::ModelElements::ViewPoint_query"/>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ </eSubpackages>
+ <eSubpackages xsi:type="profilefacet:ProfileFacetSet" name="Blocks" nsURI="http://www.eclipse.org/papyrus/profilefacet/SysML::Blocks" nsPrefix="Blocks" representedElement_XMI_ID="_fSw28LX7EduFmqQsrNB9lw" profileQualifiedName="SysML::Blocks">
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="Block" representedElement_XMI_ID="_8J2A8LVAEdu2ieF4ON8UjA" stereotypeQualifiedName="SysML::Blocks::Block">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="isEncapsulated" derived="true" representedElement_XMI_ID="__AIRkLVAEdu2ieF4ON8UjA" propertyQualifiedName="SysML::Blocks::Block::isEncapsulated">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Blocks::Block::isEncapsulated_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Blocks::Block::isEncapsulated_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Blocks::Block_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="Unit" representedElement_XMI_ID="_t9k6ELVBEdu2ieF4ON8UjA" stereotypeQualifiedName="SysML::Blocks::Unit">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="dimension" unsettable="true" derived="true" representedElement_XMI_ID="_U8AxIKGxEdyj2Ya50HPlXg" propertyQualifiedName="SysML::Blocks::Unit::dimension">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Blocks::Unit::dimension_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Blocks::Unit::dimension_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Blocks::Unit_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="ValueType" representedElement_XMI_ID="_yfp-ILVBEdu2ieF4ON8UjA" stereotypeQualifiedName="SysML::Blocks::ValueType">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="unit" unsettable="true" derived="true" representedElement_XMI_ID="_mfPXUKGxEdyj2Ya50HPlXg" propertyQualifiedName="SysML::Blocks::ValueType::unit">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Blocks::ValueType::unit_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Blocks::ValueType::unit_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="dimension" unsettable="true" derived="true" representedElement_XMI_ID="_pj40EKGxEdyj2Ya50HPlXg" propertyQualifiedName="SysML::Blocks::ValueType::dimension">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Blocks::ValueType::dimension_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Blocks::ValueType::dimension_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Blocks::ValueType_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="NestedConnectorEnd" representedElement_XMI_ID="_moxaQLVCEdu2ieF4ON8UjA" stereotypeQualifiedName="SysML::Blocks::NestedConnectorEnd">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="propertyPath" lowerBound="1" upperBound="-1" derived="true" representedElement_XMI_ID="_oH640LVCEdu2ieF4ON8UjA" propertyQualifiedName="SysML::Blocks::NestedConnectorEnd::propertyPath">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Blocks::NestedConnectorEnd::propertyPath_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Blocks::NestedConnectorEnd::propertyPath_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Blocks::NestedConnectorEnd_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="ParticipantProperty" representedElement_XMI_ID="_AJuDYKGwEdyj2Ya50HPlXg" stereotypeQualifiedName="SysML::Blocks::ParticipantProperty">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="end" lowerBound="1" unsettable="true" derived="true" representedElement_XMI_ID="_X_BroKGwEdyj2Ya50HPlXg" propertyQualifiedName="SysML::Blocks::ParticipantProperty::end">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Blocks::ParticipantProperty::end_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Blocks::ParticipantProperty::end_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Blocks::ParticipantProperty_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="ConnectorProperty" representedElement_XMI_ID="_FC-RUKGwEdyj2Ya50HPlXg" stereotypeQualifiedName="SysML::Blocks::ConnectorProperty">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="connector" lowerBound="1" unsettable="true" derived="true" representedElement_XMI_ID="_bq6ukKGwEdyj2Ya50HPlXg" propertyQualifiedName="SysML::Blocks::ConnectorProperty::connector">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Blocks::ConnectorProperty::connector_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Blocks::ConnectorProperty::connector_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Blocks::ConnectorProperty_query"/>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ </eSubpackages>
+ <eSubpackages xsi:type="profilefacet:ProfileFacetSet" name="PortAndFlows" nsURI="http://www.eclipse.org/papyrus/profilefacet/SysML::PortAndFlows" nsPrefix="PortAndFlows" representedElement_XMI_ID="_rpx28LX7EduFmqQsrNB9lw" profileQualifiedName="SysML::PortAndFlows">
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="FlowPort" representedElement_XMI_ID="_lNvKMLVDEdu2ieF4ON8UjA" stereotypeQualifiedName="SysML::PortAndFlows::FlowPort">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="isAtomic" lowerBound="1" changeable="false" derived="true" representedElement_XMI_ID="_TrY4ULVEEdu2ieF4ON8UjA" propertyQualifiedName="SysML::PortAndFlows::FlowPort::isAtomic" isDerived="true">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::PortAndFlows::FlowPort::isAtomic_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::PortAndFlows::FlowPort::isAtomic_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="isConjugated" derived="true" representedElement_XMI_ID="_T-tc8LVEEdu2ieF4ON8UjA" propertyQualifiedName="SysML::PortAndFlows::FlowPort::isConjugated">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::PortAndFlows::FlowPort::isConjugated_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::PortAndFlows::FlowPort::isConjugated_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="direction" lowerBound="1" derived="true" representedElement_XMI_ID="_ULDP0LVEEdu2ieF4ON8UjA" propertyQualifiedName="SysML::PortAndFlows::FlowPort::direction">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//EnumerationLiteral"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::PortAndFlows::FlowPort::direction_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::PortAndFlows::FlowPort::direction_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::PortAndFlows::FlowPort_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="FlowProperty" representedElement_XMI_ID="_mB-qkLVDEdu2ieF4ON8UjA" stereotypeQualifiedName="SysML::PortAndFlows::FlowProperty">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="direction" lowerBound="1" derived="true" representedElement_XMI_ID="_M9NJELVEEdu2ieF4ON8UjA" propertyQualifiedName="SysML::PortAndFlows::FlowProperty::direction">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//EnumerationLiteral"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::PortAndFlows::FlowProperty::direction_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::PortAndFlows::FlowProperty::direction_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::PortAndFlows::FlowProperty_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="ItemFlow" representedElement_XMI_ID="_9cdikLVEEdu2ieF4ON8UjA" stereotypeQualifiedName="SysML::PortAndFlows::ItemFlow">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="itemProperty" unsettable="true" derived="true" representedElement_XMI_ID="__ulWMLVEEdu2ieF4ON8UjA" propertyQualifiedName="SysML::PortAndFlows::ItemFlow::itemProperty">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::PortAndFlows::ItemFlow::itemProperty_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::PortAndFlows::ItemFlow::itemProperty_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::PortAndFlows::ItemFlow_query"/>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ </eSubpackages>
+ <eSubpackages xsi:type="profilefacet:ProfileFacetSet" name="Activities" nsURI="http://www.eclipse.org/papyrus/profilefacet/SysML::Activities" nsPrefix="Activities" representedElement_XMI_ID="_C2zXMLX8EduFmqQsrNB9lw" profileQualifiedName="SysML::Activities">
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="Rate" representedElement_XMI_ID="_2a7ZQLXjEduHWpAaWjM62w" stereotypeQualifiedName="SysML::Activities::Rate">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="rate" unsettable="true" derived="true" representedElement_XMI_ID="_YzasYLXkEduHWpAaWjM62w" propertyQualifiedName="SysML::Activities::Rate::rate">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Activities::Rate::rate_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Activities::Rate::rate_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Activities::Rate_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="Probability" representedElement_XMI_ID="_3MEiULXjEduHWpAaWjM62w" stereotypeQualifiedName="SysML::Activities::Probability">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="probability" unsettable="true" derived="true" representedElement_XMI_ID="_frTxQLXkEduHWpAaWjM62w" propertyQualifiedName="SysML::Activities::Probability::probability">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Activities::Probability::probability_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Activities::Probability::probability_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Activities::Probability_query"/>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ </eSubpackages>
+ <eSubpackages xsi:type="profilefacet:ProfileFacetSet" name="Allocations" nsURI="http://www.eclipse.org/papyrus/profilefacet/SysML::Allocations" nsPrefix="Allocations" representedElement_XMI_ID="_NxdG4LX8EduFmqQsrNB9lw" profileQualifiedName="SysML::Allocations">
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="Allocated" representedElement_XMI_ID="_Hj0sgLXnEduHWpAaWjM62w" stereotypeQualifiedName="SysML::Allocations::Allocated">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="allocatedFrom" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_Sj35kLXnEduHWpAaWjM62w" propertyQualifiedName="SysML::Allocations::Allocated::allocatedFrom" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Allocations::Allocated::allocatedFrom_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Allocations::Allocated::allocatedFrom_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="allocatedTo" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_S07NULXnEduHWpAaWjM62w" propertyQualifiedName="SysML::Allocations::Allocated::allocatedTo" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Allocations::Allocated::allocatedTo_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Allocations::Allocated::allocatedTo_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Allocations::Allocated_query"/>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ </eSubpackages>
+ <eSubpackages xsi:type="profilefacet:ProfileFacetSet" name="Requirements" nsURI="http://www.eclipse.org/papyrus/profilefacet/SysML::Requirements" nsPrefix="Requirements" representedElement_XMI_ID="_OOJC4LX8EduFmqQsrNB9lw" profileQualifiedName="SysML::Requirements">
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="TestCase" representedElement_XMI_ID="_Sb6wELXqEduHWpAaWjM62w" stereotypeQualifiedName="SysML::Requirements::TestCase">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="verifies" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_zN7ToKG1Edyj2Ya50HPlXg" propertyQualifiedName="SysML::Requirements::TestCase::verifies" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::TestCase::verifies_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::TestCase::verifies_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Requirements::TestCase_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="Requirement" representedElement_XMI_ID="_xajygLXqEduHWpAaWjM62w" stereotypeQualifiedName="SysML::Requirements::Requirement">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="text" lowerBound="1" derived="true" representedElement_XMI_ID="_3DxdwLXqEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::text">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::text_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::text_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetAttribute" name="id" lowerBound="1" derived="true" representedElement_XMI_ID="_3YlQILXqEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::id">
+ <eType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::id_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::id_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="derived" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_3jp3sLXqEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::derived" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::derived_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::derived_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="derivedFrom" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_3wFxMLXqEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::derivedFrom" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::derivedFrom_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::derivedFrom_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="satisfiedBy" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_FHcz4LXrEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::satisfiedBy" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::satisfiedBy_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::satisfiedBy_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="refinedBy" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_F-KZcLXrEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::refinedBy" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::refinedBy_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::refinedBy_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="tracedTo" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_O6rBcLXrEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::tracedTo" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::tracedTo_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::tracedTo_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="verifiedBy" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_PHumALXrEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::verifiedBy" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::verifiedBy_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::verifiedBy_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="master" changeable="false" derived="true" representedElement_XMI_ID="_PStuALXrEduHWpAaWjM62w" propertyQualifiedName="SysML::Requirements::Requirement::master" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::Requirement::master_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::Requirement::master_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Requirements::Requirement_query"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="profilefacet:StereotypeFacet" name="RequirementRelated" representedElement_XMI_ID="_ypiHELXqEduHWpAaWjM62w" stereotypeQualifiedName="SysML::Requirements::RequirementRelated">
+ <eSuperTypes href="http://www.eclipse.org/uml2/4.0.0/UML#//Element"/>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="tracedFrom" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_0nBtgLX1Edu94_NE0EO5_A" propertyQualifiedName="SysML::Requirements::RequirementRelated::tracedFrom" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::RequirementRelated::tracedFrom_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::RequirementRelated::tracedFrom_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="satisfies" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_0yJ_cLX1Edu94_NE0EO5_A" propertyQualifiedName="SysML::Requirements::RequirementRelated::satisfies" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::RequirementRelated::satisfies_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::RequirementRelated::satisfies_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="refines" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_1AqVgLX1Edu94_NE0EO5_A" propertyQualifiedName="SysML::Requirements::RequirementRelated::refines" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::RequirementRelated::refines_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::RequirementRelated::refines_value"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xsi:type="profilefacet:StereotypePropertyFacetReference" name="verifies" upperBound="-1" changeable="false" derived="true" representedElement_XMI_ID="_56-VIMq4Ed2earfX6q16xg" propertyQualifiedName="SysML::Requirements::RequirementRelated::verifies" isDerived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <valueQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#get_SysML::Requirements::RequirementRelated::verifies_value"/>
+ <setQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#set_SysML::Requirements::RequirementRelated::verifies_value"/>
+ </eStructuralFeatures>
+ <conditionQuery xsi:type="paramQuery:ParametricQuery" href="sysml_profilefacet.querySet#IsApplied_SysML::Requirements::RequirementRelated_query"/>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ </eSubpackages>
+ <extendedPackage href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+</profilefacet:ProfileFacetSet>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.querySet b/deprecated/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.querySet new file mode 100644 index 00000000000..048bc4e9c75 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.querySet @@ -0,0 +1,594 @@ +<?xml version="1.0" encoding="ASCII"?>
+<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:paramQuery="http://www.eclipse.org/papyrus/infra/emf/facet/parametric/query/0.9.1" xmlns:profilefacet="http://www.eclipse.org/papyrus/0.9/profilefacet" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="QueriesFor_SysML" description="Queries used by the generated facetset SysML">
+ <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ <associatedMetamodels href="http://www.eclipse.org/emf/2002/Ecore#/"/>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Blocks::Block_query" description="Test if the stereotype SysML::Blocks::Block or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Blocks::Block"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::ModelElements::ViewPoint::purpose_value" description="Getter for the stereotype property SysML::ModelElements::ViewPoint::purpose">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getStringSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/purpose"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::ModelElements::ViewPoint::methods_value" description="Setter for the stereotype property SysML::ModelElements::ViewPoint::methods">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setStringMultiValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/methods"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Allocations::Allocated::allocatedTo_value" description="Getter for the stereotype property SysML::Allocations::Allocated::allocatedTo" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Allocations/Allocated/allocatedTo"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::RequirementRelated::verifies_value" description="Setter for the stereotype property SysML::Requirements::RequirementRelated::verifies">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/RequirementRelated/verifies"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::master_value" description="Getter for the stereotype property SysML::Requirements::Requirement::master">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/master"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Blocks::NestedConnectorEnd::propertyPath_value" description="Setter for the stereotype property SysML::Blocks::NestedConnectorEnd::propertyPath">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/NestedConnectorEnd/propertyPath"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::PortAndFlows::FlowPort::isAtomic_value" description="Getter for the stereotype property SysML::PortAndFlows::FlowPort::isAtomic" lowerBound="1">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getBooleanSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//PortAndFlows/FlowPort/isAtomic"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::TestCase::verifies_value" description="Getter for the stereotype property SysML::Requirements::TestCase::verifies" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/TestCase/verifies"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Blocks::ParticipantProperty_query" description="Test if the stereotype SysML::Blocks::ParticipantProperty or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Blocks::ParticipantProperty"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Allocations::Allocated_query" description="Test if the stereotype SysML::Allocations::Allocated or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Allocations::Allocated"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Activities::Rate::rate_value" description="Getter for the stereotype property SysML::Activities::Rate::rate">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Activities/Rate/rate"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Activities::Probability::probability_value" description="Setter for the stereotype property SysML::Activities::Probability::probability">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Activities/Probability/probability"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::master_value" description="Setter for the stereotype property SysML::Requirements::Requirement::master">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/master"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::satisfiedBy_value" description="Getter for the stereotype property SysML::Requirements::Requirement::satisfiedBy" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/satisfiedBy"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Requirements::RequirementRelated_query" description="Test if the stereotype SysML::Requirements::RequirementRelated or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Requirements::RequirementRelated"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::RequirementRelated::refines_value" description="Getter for the stereotype property SysML::Requirements::RequirementRelated::refines" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/RequirementRelated/refines"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::ModelElements::ViewPoint::stakeHolders_value" description="Getter for the stereotype property SysML::ModelElements::ViewPoint::stakeHolders" upperBound="-1">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getStringMultiValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/stakeHolders"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::id_value" description="Setter for the stereotype property SysML::Requirements::Requirement::id">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setStringSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//Requirements/Requirement/id"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Blocks::Block::isEncapsulated_value" description="Getter for the stereotype property SysML::Blocks::Block::isEncapsulated">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getBooleanSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//Blocks/Block/isEncapsulated"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Blocks::ValueType::unit_value" description="Getter for the stereotype property SysML::Blocks::ValueType::unit">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/ValueType/unit"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Blocks::NestedConnectorEnd_query" description="Test if the stereotype SysML::Blocks::NestedConnectorEnd or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Blocks::NestedConnectorEnd"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::PortAndFlows::FlowPort::direction_value" description="Getter for the stereotype property SysML::PortAndFlows::FlowPort::direction" lowerBound="1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//EnumerationLiteral"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getUMLEnumerationSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//PortAndFlows/FlowPort/direction"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::derivedFrom_value" description="Getter for the stereotype property SysML::Requirements::Requirement::derivedFrom" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/derivedFrom"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::RequirementRelated::satisfies_value" description="Setter for the stereotype property SysML::Requirements::RequirementRelated::satisfies">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/RequirementRelated/satisfies"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::ModelElements::View::viewPoint_value" description="Getter for the stereotype property SysML::ModelElements::View::viewPoint" lowerBound="1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//ModelElements/View/viewPoint"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Activities::Probability::probability_value" description="Getter for the stereotype property SysML::Activities::Probability::probability">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Activities/Probability/probability"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::PortAndFlows::FlowProperty::direction_value" description="Getter for the stereotype property SysML::PortAndFlows::FlowProperty::direction" lowerBound="1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//EnumerationLiteral"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getUMLEnumerationSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//PortAndFlows/FlowProperty/direction"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Blocks::Unit_query" description="Test if the stereotype SysML::Blocks::Unit or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Blocks::Unit"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::derived_value" description="Setter for the stereotype property SysML::Requirements::Requirement::derived">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/derived"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Allocations::Allocated::allocatedTo_value" description="Setter for the stereotype property SysML::Allocations::Allocated::allocatedTo">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Allocations/Allocated/allocatedTo"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Blocks::Block::isEncapsulated_value" description="Setter for the stereotype property SysML::Blocks::Block::isEncapsulated">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setBooleanSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//Blocks/Block/isEncapsulated"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Allocations::Allocated::allocatedFrom_value" description="Setter for the stereotype property SysML::Allocations::Allocated::allocatedFrom">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Allocations/Allocated/allocatedFrom"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Requirements::TestCase_query" description="Test if the stereotype SysML::Requirements::TestCase or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Requirements::TestCase"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::tracedTo_value" description="Setter for the stereotype property SysML::Requirements::Requirement::tracedTo">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/tracedTo"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Blocks::ValueType_query" description="Test if the stereotype SysML::Blocks::ValueType or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Blocks::ValueType"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::ModelElements::ViewPoint_query" description="Test if the stereotype SysML::ModelElements::ViewPoint or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::ModelElements::ViewPoint"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::PortAndFlows::FlowPort_query" description="Test if the stereotype SysML::PortAndFlows::FlowPort or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::PortAndFlows::FlowPort"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::text_value" description="Getter for the stereotype property SysML::Requirements::Requirement::text" lowerBound="1">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getStringSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//Requirements/Requirement/text"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Blocks::Unit::dimension_value" description="Getter for the stereotype property SysML::Blocks::Unit::dimension">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/Unit/dimension"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Activities::Rate_query" description="Test if the stereotype SysML::Activities::Rate or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Activities::Rate"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Blocks::NestedConnectorEnd::propertyPath_value" description="Getter for the stereotype property SysML::Blocks::NestedConnectorEnd::propertyPath" upperBound="-1" lowerBound="1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/NestedConnectorEnd/propertyPath"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Allocations::Allocated::allocatedFrom_value" description="Getter for the stereotype property SysML::Allocations::Allocated::allocatedFrom" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Allocations/Allocated/allocatedFrom"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::satisfiedBy_value" description="Setter for the stereotype property SysML::Requirements::Requirement::satisfiedBy">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/satisfiedBy"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::ModelElements::ViewPoint::stakeHolders_value" description="Setter for the stereotype property SysML::ModelElements::ViewPoint::stakeHolders">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setStringMultiValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/stakeHolders"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::ModelElements::ViewPoint::methods_value" description="Getter for the stereotype property SysML::ModelElements::ViewPoint::methods" upperBound="-1">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getStringMultiValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/methods"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::ModelElements::ViewPoint::languages_value" description="Getter for the stereotype property SysML::ModelElements::ViewPoint::languages" upperBound="-1">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getStringMultiValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/languages"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::refinedBy_value" description="Setter for the stereotype property SysML::Requirements::Requirement::refinedBy">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/refinedBy"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::id_value" description="Getter for the stereotype property SysML::Requirements::Requirement::id" lowerBound="1">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getStringSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//Requirements/Requirement/id"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::PortAndFlows::FlowProperty::direction_value" description="Setter for the stereotype property SysML::PortAndFlows::FlowProperty::direction">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//EnumerationLiteral"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setUMLEnumerationSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//PortAndFlows/FlowProperty/direction"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::refinedBy_value" description="Getter for the stereotype property SysML::Requirements::Requirement::refinedBy" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/refinedBy"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::RequirementRelated::tracedFrom_value" description="Setter for the stereotype property SysML::Requirements::RequirementRelated::tracedFrom">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/RequirementRelated/tracedFrom"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::verifiedBy_value" description="Getter for the stereotype property SysML::Requirements::Requirement::verifiedBy" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/verifiedBy"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::ModelElements::View::viewPoint_value" description="Setter for the stereotype property SysML::ModelElements::View::viewPoint">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//ModelElements/View/viewPoint"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::PortAndFlows::FlowPort::direction_value" description="Setter for the stereotype property SysML::PortAndFlows::FlowPort::direction">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//EnumerationLiteral"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setUMLEnumerationSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//PortAndFlows/FlowPort/direction"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::derivedFrom_value" description="Setter for the stereotype property SysML::Requirements::Requirement::derivedFrom">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/derivedFrom"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::ModelElements::ViewPoint::concerns_value" description="Setter for the stereotype property SysML::ModelElements::ViewPoint::concerns">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setStringMultiValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/concerns"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::TestCase::verifies_value" description="Setter for the stereotype property SysML::Requirements::TestCase::verifies">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/TestCase/verifies"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::RequirementRelated::tracedFrom_value" description="Getter for the stereotype property SysML::Requirements::RequirementRelated::tracedFrom" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/RequirementRelated/tracedFrom"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Blocks::ParticipantProperty::end_value" description="Getter for the stereotype property SysML::Blocks::ParticipantProperty::end" lowerBound="1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/ParticipantProperty/end"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::PortAndFlows::FlowPort::isConjugated_value" description="Setter for the stereotype property SysML::PortAndFlows::FlowPort::isConjugated">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setBooleanSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//PortAndFlows/FlowPort/isConjugated"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::RequirementRelated::satisfies_value" description="Getter for the stereotype property SysML::Requirements::RequirementRelated::satisfies" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/RequirementRelated/satisfies"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::RequirementRelated::verifies_value" description="Getter for the stereotype property SysML::Requirements::RequirementRelated::verifies" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/RequirementRelated/verifies"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Blocks::ParticipantProperty::end_value" description="Setter for the stereotype property SysML::Blocks::ParticipantProperty::end">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/ParticipantProperty/end"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::tracedTo_value" description="Getter for the stereotype property SysML::Requirements::Requirement::tracedTo" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/tracedTo"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::PortAndFlows::FlowPort::isConjugated_value" description="Getter for the stereotype property SysML::PortAndFlows::FlowPort::isConjugated">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getBooleanSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//PortAndFlows/FlowPort/isConjugated"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Blocks::ValueType::dimension_value" description="Setter for the stereotype property SysML::Blocks::ValueType::dimension">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/ValueType/dimension"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::PortAndFlows::FlowProperty_query" description="Test if the stereotype SysML::PortAndFlows::FlowProperty or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::PortAndFlows::FlowProperty"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Blocks::ConnectorProperty::connector_value" description="Setter for the stereotype property SysML::Blocks::ConnectorProperty::connector">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/ConnectorProperty/connector"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Blocks::ConnectorProperty_query" description="Test if the stereotype SysML::Blocks::ConnectorProperty or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Blocks::ConnectorProperty"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::PortAndFlows::ItemFlow::itemProperty_value" description="Getter for the stereotype property SysML::PortAndFlows::ItemFlow::itemProperty">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//PortAndFlows/ItemFlow/itemProperty"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::RequirementRelated::refines_value" description="Setter for the stereotype property SysML::Requirements::RequirementRelated::refines">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/RequirementRelated/refines"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Blocks::ValueType::dimension_value" description="Getter for the stereotype property SysML::Blocks::ValueType::dimension">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/ValueType/dimension"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::ModelElements::ViewPoint::concerns_value" description="Getter for the stereotype property SysML::ModelElements::ViewPoint::concerns" upperBound="-1">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getStringMultiValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/concerns"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::PortAndFlows::ItemFlow_query" description="Test if the stereotype SysML::PortAndFlows::ItemFlow or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::PortAndFlows::ItemFlow"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::ModelElements::ViewPoint::languages_value" description="Setter for the stereotype property SysML::ModelElements::ViewPoint::languages">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setStringMultiValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/languages"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Blocks::ConnectorProperty::connector_value" description="Getter for the stereotype property SysML::Blocks::ConnectorProperty::connector" lowerBound="1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/ConnectorProperty/connector"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Activities::Rate::rate_value" description="Setter for the stereotype property SysML::Activities::Rate::rate">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Activities/Rate/rate"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::verifiedBy_value" description="Setter for the stereotype property SysML::Requirements::Requirement::verifiedBy">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/verifiedBy"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::PortAndFlows::ItemFlow::itemProperty_value" description="Setter for the stereotype property SysML::PortAndFlows::ItemFlow::itemProperty">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//PortAndFlows/ItemFlow/itemProperty"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Blocks::ValueType::unit_value" description="Setter for the stereotype property SysML::Blocks::ValueType::unit">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/ValueType/unit"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::ModelElements::View_query" description="Test if the stereotype SysML::ModelElements::View or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::ModelElements::View"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Requirements::Requirement::text_value" description="Setter for the stereotype property SysML::Requirements::Requirement::text">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setStringSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//Requirements/Requirement/text"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::PortAndFlows::FlowPort::isAtomic_value" description="Setter for the stereotype property SysML::PortAndFlows::FlowPort::isAtomic">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setBooleanSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//PortAndFlows/FlowPort/isAtomic"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="get_SysML::Requirements::Requirement::derived_value" description="Getter for the stereotype property SysML::Requirements::Requirement::derived" upperBound="-1">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#getEObjectMultiReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Requirements/Requirement/derived"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::Blocks::Unit::dimension_value" description="Setter for the stereotype property SysML::Blocks::Unit::dimension">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setEObjectSingleReferenceValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetReference" href="sysml_profilefacet.facetSet#//Blocks/Unit/dimension"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Activities::Probability_query" description="Test if the stereotype SysML::Activities::Probability or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Activities::Probability"/>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="set_SysML::ModelElements::ViewPoint::purpose_value" description="Setter for the stereotype property SysML::ModelElements::ViewPoint::purpose">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EString"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#setStringSingleValue"/>
+ <arguments xsi:type="paramQuery:EStructuralFeatureArgument" argumentName="editedFeature">
+ <value xsi:type="profilefacet:StereotypePropertyFacetAttribute" href="sysml_profilefacet.facetSet#//ModelElements/ViewPoint/purpose"/>
+ </arguments>
+ </queries>
+ <queries xsi:type="paramQuery:ParametricQuery" name="IsApplied_SysML::Requirements::Requirement_query" description="Test if the stereotype SysML::Requirements::Requirement or one of its specialization is applied on the element">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <calledQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/uml_stereotype_queries#isAppliedRequiredStereotype"/>
+ <arguments xsi:type="paramQuery:StringArgument" argumentName="stereotypeQualifiedName" value="SysML::Requirements::Requirement"/>
+ </queries>
+</query:ModelQuerySet>
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/Activator.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/Activator.java new file mode 100644 index 00000000000..b0b5e972881 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/Activator.java @@ -0,0 +1,45 @@ +/*******************************************************************************
+ * Copyright (c) 2010 Mia-Software.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Nicolas Bros (Mia-Software)
+ *******************************************************************************/
+package org.eclipse.papyrus.sysml.facets;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/** The activator class controls the plug-in life cycle */
+public class Activator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.sysml.facets"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ @Override
+ public void start(final BundleContext context) throws Exception {
+ super.start(context);
+ Activator.plugin = this;
+ }
+
+ @Override
+ public void stop(final BundleContext context) throws Exception {
+ Activator.plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return Activator.plugin;
+ }
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/NAFlowPortDirection.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/NAFlowPortDirection.java new file mode 100644 index 00000000000..fa4ef9b6907 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/NAFlowPortDirection.java @@ -0,0 +1,198 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import org.eclipse.emf.common.util.Enumerator;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the literals of the enumeration '<em><b>NA Flow Port Direction</b></em>',
+ * and utility methods for working with them.
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.PortandflowsPackage#getNAFlowPortDirection()
+ * @model instanceClass="org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection"
+ * @generated
+ */
+public enum NAFlowPortDirection implements Enumerator {
+ /**
+ * The '<em><b>NA</b></em>' literal object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #NA_VALUE
+ * @generated
+ * @ordered
+ */
+ NA(0, "NA", "N/A");
+
+ /**
+ * The '<em><b>NA</b></em>' literal value.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of '<em><b>NA</b></em>' literal object isn't clear, there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @see #NA
+ * @model literal="N/A"
+ * @generated
+ * @ordered
+ */
+ public static final int NA_VALUE = 0;
+
+ /**
+ * An array of all the '<em><b>NA Flow Port Direction</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static final NAFlowPortDirection[] VALUES_ARRAY = new NAFlowPortDirection[]{ NA, };
+
+ /**
+ * A public read-only list of all the '<em><b>NA Flow Port Direction</b></em>' enumerators.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final List<NAFlowPortDirection> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
+
+ /**
+ * Returns the '<em><b>NA Flow Port Direction</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static NAFlowPortDirection get(String literal) {
+ for(int i = 0; i < VALUES_ARRAY.length; ++i) {
+ NAFlowPortDirection result = VALUES_ARRAY[i];
+ if(result.toString().equals(literal)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>NA Flow Port Direction</b></em>' literal with the specified name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static NAFlowPortDirection getByName(String name) {
+ for(int i = 0; i < VALUES_ARRAY.length; ++i) {
+ NAFlowPortDirection result = VALUES_ARRAY[i];
+ if(result.getName().equals(name)) {
+ return result;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Returns the '<em><b>NA Flow Port Direction</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static NAFlowPortDirection get(int value) {
+ switch(value) {
+ case NA_VALUE:
+ return NA;
+ }
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private final int value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private final String name;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private final String literal;
+
+ /**
+ * Only this class can construct instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private NAFlowPortDirection(int value, String name, String literal) {
+ this.value = value;
+ this.name = name;
+ this.literal = literal;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public int getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getLiteral() {
+ return literal;
+ }
+
+ /**
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString() {
+ return literal;
+ }
+
+} //NAFlowPortDirection
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/PortandflowsFactory.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/PortandflowsFactory.java new file mode 100644 index 00000000000..8517e729810 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/PortandflowsFactory.java @@ -0,0 +1,41 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.PortandflowsPackage
+ * @generated
+ */
+public interface PortandflowsFactory extends EFactory {
+
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ PortandflowsFactory eINSTANCE = org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.impl.PortandflowsFactoryImpl.init();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ PortandflowsPackage getPortandflowsPackage();
+
+} //PortandflowsFactory
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/PortandflowsPackage.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/PortandflowsPackage.java new file mode 100644 index 00000000000..d29c765c961 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/PortandflowsPackage.java @@ -0,0 +1,130 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows;
+
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.PortandflowsFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface PortandflowsPackage extends EPackage {
+
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNAME = "portandflows";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/papyrus/0.7.0/ExtendedSysML/PortAndFlows";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "PortAndFlows";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ PortandflowsPackage eINSTANCE = org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.impl.PortandflowsPackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection
+ * <em>NA Flow Port Direction</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.impl.PortandflowsPackageImpl#getNAFlowPortDirection()
+ * @generated
+ */
+ int NA_FLOW_PORT_DIRECTION = 0;
+
+
+ /**
+ * Returns the meta object for enum '{@link org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection
+ * <em>NA Flow Port Direction</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for enum '<em>NA Flow Port Direction</em>'.
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection
+ * @generated
+ */
+ EEnum getNAFlowPortDirection();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ PortandflowsFactory getPortandflowsFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ interface Literals {
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection
+ * <em>NA Flow Port Direction</em>}' enum.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.impl.PortandflowsPackageImpl#getNAFlowPortDirection()
+ * @generated
+ */
+ EEnum NA_FLOW_PORT_DIRECTION = eINSTANCE.getNAFlowPortDirection();
+
+ }
+
+} //PortandflowsPackage
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/impl/PortandflowsFactoryImpl.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/impl/PortandflowsFactoryImpl.java new file mode 100644 index 00000000000..37cb7a4d18d --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/impl/PortandflowsFactoryImpl.java @@ -0,0 +1,149 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+import org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection;
+import org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.PortandflowsFactory;
+import org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.PortandflowsPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class PortandflowsFactoryImpl extends EFactoryImpl implements PortandflowsFactory {
+
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static PortandflowsFactory init() {
+ try {
+ PortandflowsFactory thePortandflowsFactory = (PortandflowsFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.eclipse.org/papyrus/0.7.0/ExtendedSysML/PortAndFlows");
+ if(thePortandflowsFactory != null) {
+ return thePortandflowsFactory;
+ }
+ } catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new PortandflowsFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PortandflowsFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch(eClass.getClassifierID()) {
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object createFromString(EDataType eDataType, String initialValue) {
+ switch(eDataType.getClassifierID()) {
+ case PortandflowsPackage.NA_FLOW_PORT_DIRECTION:
+ return createNAFlowPortDirectionFromString(eDataType, initialValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String convertToString(EDataType eDataType, Object instanceValue) {
+ switch(eDataType.getClassifierID()) {
+ case PortandflowsPackage.NA_FLOW_PORT_DIRECTION:
+ return convertNAFlowPortDirectionToString(eDataType, instanceValue);
+ default:
+ throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NAFlowPortDirection createNAFlowPortDirectionFromString(EDataType eDataType, String initialValue) {
+ NAFlowPortDirection result = NAFlowPortDirection.get(initialValue);
+ if(result == null)
+ throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'");
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String convertNAFlowPortDirectionToString(EDataType eDataType, Object instanceValue) {
+ return instanceValue == null ? null : instanceValue.toString();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PortandflowsPackage getPortandflowsPackage() {
+ return (PortandflowsPackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static PortandflowsPackage getPackage() {
+ return PortandflowsPackage.eINSTANCE;
+ }
+
+} //PortandflowsFactoryImpl
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/impl/PortandflowsPackageImpl.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/impl/PortandflowsPackageImpl.java new file mode 100644 index 00000000000..81111ed61fa --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/extendedsysml/extendedsysml/portandflows/impl/PortandflowsPackageImpl.java @@ -0,0 +1,173 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.impl;
+
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+import org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection;
+import org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.PortandflowsFactory;
+import org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.PortandflowsPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class PortandflowsPackageImpl extends EPackageImpl implements PortandflowsPackage {
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EEnum naFlowPortDirectionEEnum = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the
+ * package
+ * package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also performs initialization of the
+ * package, or returns the registered package, if one already exists. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.PortandflowsPackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private PortandflowsPackageImpl() {
+ super(eNS_URI, PortandflowsFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>
+ * This method is used to initialize {@link PortandflowsPackage#eINSTANCE} when that field is accessed. Clients should not invoke it directly.
+ * Instead, they should simply access that field to obtain the package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static PortandflowsPackage init() {
+ if(isInited)
+ return (PortandflowsPackage)EPackage.Registry.INSTANCE.getEPackage(PortandflowsPackage.eNS_URI);
+
+ // Obtain or create and register package
+ PortandflowsPackageImpl thePortandflowsPackage = (PortandflowsPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PortandflowsPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new PortandflowsPackageImpl());
+
+ isInited = true;
+
+ // Create package meta-data objects
+ thePortandflowsPackage.createPackageContents();
+
+ // Initialize created meta-data
+ thePortandflowsPackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ thePortandflowsPackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(PortandflowsPackage.eNS_URI, thePortandflowsPackage);
+ return thePortandflowsPackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EEnum getNAFlowPortDirection() {
+ return naFlowPortDirectionEEnum;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public PortandflowsFactory getPortandflowsFactory() {
+ return (PortandflowsFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void createPackageContents() {
+ if(isCreated)
+ return;
+ isCreated = true;
+
+ // Create enums
+ naFlowPortDirectionEEnum = createEEnum(NA_FLOW_PORT_DIRECTION);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void initializePackageContents() {
+ if(isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Initialize enums and add enum literals
+ initEEnum(naFlowPortDirectionEEnum, NAFlowPortDirection.class, "NAFlowPortDirection");
+ addEEnumLiteral(naFlowPortDirectionEEnum, NAFlowPortDirection.NA);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //PortandflowsPackageImpl
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/messages/Messages.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/messages/Messages.java new file mode 100644 index 00000000000..fe75aa339c7 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/messages/Messages.java @@ -0,0 +1,40 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.facets.messages;
+
+import org.eclipse.osgi.util.NLS;
+
+public class Messages extends NLS {
+
+ private static final String BUNDLE_NAME = "org.eclipse.papyrus.sysml.facets.messages.messages"; //$NON-NLS-1$
+
+ public static String SetRequirementDerivedFromQuery_DeriveReqtCantBeCreated;
+
+ public static String SetRequirementDerivedQuery_DeriveReqtCanBeCreated;
+
+ public static String SetRequirementMasterQuery_CopyCantBeCreated;
+
+ public static String SetRequirementRefinedByQuery_StandardIsNotAppliedOnTheModel;
+
+ public static String SetRequirementTextQuery_AssignmentCantBeDone;
+
+ public static String SetRequirementTextQuery_NotASysMLRequirement;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ private Messages() {
+ }
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/messages/messages.properties b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/messages/messages.properties new file mode 100644 index 00000000000..ab7c93339f5 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/messages/messages.properties @@ -0,0 +1,6 @@ +SetRequirementDerivedFromQuery_DeriveReqtCantBeCreated=The link DeriveReqt can't be created between {0} and {1}.
+SetRequirementDerivedQuery_DeriveReqtCanBeCreated=The link DeriveReqt can't be created between {0} and {1}.
+SetRequirementMasterQuery_CopyCantBeCreated=The link Copy can't be created between {0} and {1}.
+SetRequirementRefinedByQuery_StandardIsNotAppliedOnTheModel=The required profile Standard is not applied on the model.
+SetRequirementTextQuery_AssignmentCantBeDone=Assignment can't be done.
+SetRequirementTextQuery_NotASysMLRequirement=The edited element is not a SysML Requirement.
diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/getter/GetFlowPortDirectionQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/getter/GetFlowPortDirectionQuery.java new file mode 100644 index 00000000000..636ee52d23c --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/getter/GetFlowPortDirectionQuery.java @@ -0,0 +1,37 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.portandflows.query.value.getter; + +import org.eclipse.emf.common.util.Enumerator; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection; +import org.eclipse.papyrus.sysml.portandflows.FlowPort; +import org.eclipse.uml2.uml.Port; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to qet the attribute "Direction" of the FlowPort */ +public class GetFlowPortDirectionQuery implements IJavaModelQuery<Port, Enumerator> { + + public Enumerator evaluate(final Port context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + FlowPort flowPort = UMLUtil.getStereotypeApplication(context, FlowPort.class); + if(flowPort != null) { + if(flowPort.isAtomic()) { + return flowPort.getDirection(); + } else { + return NAFlowPortDirection.get(0); + } + } + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/getter/GetFlowPortIsAtomicQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/getter/GetFlowPortIsAtomicQuery.java new file mode 100644 index 00000000000..bd305a936c1 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/getter/GetFlowPortIsAtomicQuery.java @@ -0,0 +1,42 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.portandflows.query.value.getter; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.portandflows.FlowPort; +import org.eclipse.uml2.uml.Port; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the derived attribute "isAtomic" of the FlowPort */ +public class GetFlowPortIsAtomicQuery implements IJavaModelQuery<Port, Boolean> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public Boolean evaluate(final Port context, final ParameterValueList parameterValues) + throws ModelQueryExecutionException { + FlowPort flowPort = UMLUtil.getStereotypeApplication(context, FlowPort.class); + if(flowPort != null) { + return flowPort.isAtomic(); + } + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/setter/SetFlowPortDirectionQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/setter/SetFlowPortDirectionQuery.java new file mode 100644 index 00000000000..3517b252da2 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/portandflows/query/value/setter/SetFlowPortDirectionQuery.java @@ -0,0 +1,73 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.portandflows.query.value.setter; + +import org.eclipse.emf.common.util.Enumerator; +import org.eclipse.emf.edit.command.SetCommand; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForEObject; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.extendedsysml.extendedsysml.portandflows.NAFlowPortDirection; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.portandflows.FlowPort; +import org.eclipse.papyrus.sysml.portandflows.PortandflowsPackage; +import org.eclipse.uml2.uml.Port; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to qet the attribute "Direction" of the FlowPort */ +public class SetFlowPortDirectionQuery implements IJavaModelQueryWithEditingDomain<Port, Enumerator> { + + public Enumerator evaluate(final Port context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + //nothing to do + return null; + } + + + public Enumerator evaluate(Port context, ParameterValueList parameterValues, EditingDomain editingDomain) throws ModelQueryExecutionException { + FlowPort flowPort = UMLUtil.getStereotypeApplication(context, FlowPort.class); + + if(flowPort != null) { + if(!((parameterValues.isEmpty()) || (parameterValues.get(0) == null))) { + + + + // Retrieve new value from parameter and update if the property value has changed. + Enumerator newValue = (parameterValues.get(0).getValue() instanceof Enumerator) ? (Enumerator)parameterValues.get(0).getValue() : null; + if(!(newValue instanceof NAFlowPortDirection)) {//we do nothing in this case + if(newValue != flowPort.getDirection()) { + try { + TransactionalEditingDomain domain = ServiceUtilsForEObject.getInstance().getTransactionalEditingDomain(flowPort); + SetCommand command = new SetCommand(domain, flowPort, PortandflowsPackage.eINSTANCE.getFlowPort_Direction(), newValue); + if(command.canExecute()) { + domain.getCommandStack().execute(command); + } + + } catch (ServiceException e) { + throw new ModelQueryExecutionException(e); + } + + } + } + } + } else { + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, "The edited element is not a SysML FlowPort.", Type.ERROR))); + } + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementBase_ClassQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementBase_ClassQuery.java new file mode 100644 index 00000000000..025ba56a8d6 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementBase_ClassQuery.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the text of the requirement */ +public class GetRequirementBase_ClassQuery implements IJavaModelQuery<Class, Class> { + + public Class evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + return (requirement != null) ? requirement.getBase_Class() : null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementDerivedFromQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementDerivedFromQuery.java new file mode 100644 index 00000000000..83b1f1db01c --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementDerivedFromQuery.java @@ -0,0 +1,40 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the text of the requirement */ +public class GetRequirementDerivedFromQuery implements IJavaModelQuery<Class, Collection<Class>> { + + public Collection<Class> evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Collection<Class> result = new ArrayList<Class>(); + + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + if(requirement != null) { + for(Requirement current : requirement.getDerivedFrom()) { + result.add(current.getBase_Class()); + } + } + return result; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementDerivedQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementDerivedQuery.java new file mode 100644 index 00000000000..63eb8e4b9e5 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementDerivedQuery.java @@ -0,0 +1,40 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import java.util.ArrayList; +import java.util.Collection; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the text of the requirement */ +public class GetRequirementDerivedQuery implements IJavaModelQuery<Class, Collection<Class>> { + + public Collection<Class> evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Collection<Class> result = new ArrayList<Class>(); + + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + if(requirement != null) { + for(Requirement current : requirement.getDerived()) { + result.add(current.getBase_Class()); + } + } + return result; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementIdQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementIdQuery.java new file mode 100644 index 00000000000..7103bc1f514 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementIdQuery.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the id of the requirement */ +public class GetRequirementIdQuery implements IJavaModelQuery<Class, String> { + + public String evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + return (requirement != null) ? requirement.getId() : null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementMasterQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementMasterQuery.java new file mode 100644 index 00000000000..55baa02992d --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementMasterQuery.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the text of the requirement */ +public class GetRequirementMasterQuery implements IJavaModelQuery<Class, Class> { + + public Class evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + return ((requirement != null) && (requirement.getMaster() != null)) ? requirement.getMaster().getBase_Class() : null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementRefinedByQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementRefinedByQuery.java new file mode 100644 index 00000000000..e3d080fc385 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementRefinedByQuery.java @@ -0,0 +1,33 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import java.util.Collection; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the text of the requirement */ +public class GetRequirementRefinedByQuery implements IJavaModelQuery<Class, Collection<NamedElement>> { + + public Collection<NamedElement> evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + return (requirement != null) ? requirement.getRefinedBy() : null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementSatifiedByQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementSatifiedByQuery.java new file mode 100644 index 00000000000..aba70bf3670 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementSatifiedByQuery.java @@ -0,0 +1,33 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import java.util.Collection; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the text of the requirement */ +public class GetRequirementSatifiedByQuery implements IJavaModelQuery<Class, Collection<NamedElement>> { + + public Collection<NamedElement> evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + return (requirement != null) ? requirement.getSatisfiedBy() : null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementTextQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementTextQuery.java new file mode 100644 index 00000000000..c9f3020182f --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementTextQuery.java @@ -0,0 +1,30 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the text of the requirement */ +public class GetRequirementTextQuery implements IJavaModelQuery<Class, String> { + + public String evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + return (requirement != null) ? requirement.getText() : null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementTracedToQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementTracedToQuery.java new file mode 100644 index 00000000000..c454df504f5 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementTracedToQuery.java @@ -0,0 +1,35 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import java.util.Collection; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** + * Query to get the text of the requirement + */ +public class GetRequirementTracedToQuery implements IJavaModelQuery<Class, Collection<NamedElement>> { + + public Collection<NamedElement> evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + return (requirement != null) ? requirement.getTracedTo() : null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementVerifiedByQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementVerifiedByQuery.java new file mode 100644 index 00000000000..e1119eeb045 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/getter/GetRequirementVerifiedByQuery.java @@ -0,0 +1,38 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.getter; + +import java.util.Collection; + +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to get the text of the requirement */ + +public class GetRequirementVerifiedByQuery implements IJavaModelQuery<Class, Collection<NamedElement>> { + + public Collection<NamedElement> evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + if(requirement != null) { + return requirement.getVerifiedBy(); + } + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementDerivedFromQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementDerivedFromQuery.java new file mode 100644 index 00000000000..afb3a5f9fb7 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementDerivedFromQuery.java @@ -0,0 +1,133 @@ +/** + * + * Copyright (c) 2011 CEA LIST. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo(CEA LIST) - initial API and implementation + */ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; +import org.eclipse.osgi.util.NLS; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.DeriveReqt; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Dependency; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the derived attribute "derived" of the requirement */ +public class SetRequirementDerivedFromQuery implements IJavaModelQueryWithEditingDomain<Class, EObject> { + + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + //nothing to do + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param arg0 + * @param parameter + * @param arg2 + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final Class context, final ParameterValueList parameter, final EditingDomain editingDomain) throws ModelQueryExecutionException { + CompositeCommand cmd = new CompositeCommand("Edit the feature /DerivedFrom"); //$NON-NLS-1$ + /* + * we need to do this test, because, the facets can be applied on a default table. + * In this case, we can't be sure the edited element is a Requirement + */ + if(UMLUtil.getStereotypeApplication(context, Requirement.class) != null) { + Requirement req = UMLUtil.getStereotypeApplication(context, Requirement.class); + EList<Dependency> dependencies = context.getClientDependencies(); + EList<Requirement> currentDerivedFrom = req.getDerivedFrom(); + List<Class> currentDerivedFrom_base_Class = new ArrayList<Class>(); + for(Requirement currentReq : currentDerivedFrom) { + currentDerivedFrom_base_Class.add(currentReq.getBase_Class()); + } + + + ModelQueryParameterValue object = parameter.get(0); + Object values = object.getValue(); + Assert.isTrue(values instanceof List<?>); + List<?> newDerivedFrom = (List<?>)values; + + //we destroy the unnecessary Derive_Reqt + for(Dependency current : dependencies) { + if(UMLUtil.getStereotypeApplication(current, DeriveReqt.class) != null) { + EList<NamedElement> suppliers = current.getSuppliers(); + //we assume that there is only one supplier + if(suppliers.size() == 1) { + NamedElement supplier = suppliers.get(0); + if(!newDerivedFrom.contains(supplier)) {//we destroy this dependencies + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(current); + DestroyElementRequest request = new DestroyElementRequest(current, false); + ICommand desroyCommand = provider.getEditCommand(request); + cmd.add(desroyCommand); + } + } + } + } + + for(Object current : (List<?>)values) { + //we create the derive_reqt only if it doesn't exist + + if(!currentDerivedFrom_base_Class.contains(current)) { + if(UMLUtil.getStereotypeApplication(context, Requirement.class) != null) { + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + CreateRelationshipRequest createRequest = new CreateRelationshipRequest(context.getNearestPackage(), context, (EObject)current, SysMLElementTypes.DERIVE_REQT); + cmd.add(provider.getEditCommand(createRequest)); + } else { + + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, NLS.bind(Messages.SetRequirementDerivedFromQuery_DeriveReqtCantBeCreated, context.getName(), ((NamedElement)current).getName()), Type.ERROR)); + } + } + } + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR)); + } + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(cmd)); + return null; + } + +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementDerivedQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementDerivedQuery.java new file mode 100644 index 00000000000..6dcb8676ce5 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementDerivedQuery.java @@ -0,0 +1,133 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; +import org.eclipse.osgi.util.NLS; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.DeriveReqt; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Dependency; +import org.eclipse.uml2.uml.DirectedRelationship; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the derived attribute "derived" of the requirement */ +public class SetRequirementDerivedQuery implements IJavaModelQueryWithEditingDomain<Class, EObject> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(Class context, ParameterValueList parameterValues) throws ModelQueryExecutionException { + //nothing to do + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param context + * @param parameterValues + * @param editingDomain + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(Class context, ParameterValueList parameter, EditingDomain editingDomain) throws ModelQueryExecutionException { + CompositeCommand cmd = new CompositeCommand("Edit the feature /Derived"); //$NON-NLS-1$ + if(UMLUtil.getStereotypeApplication(context, Requirement.class) != null) { + Requirement req = UMLUtil.getStereotypeApplication(context, Requirement.class); + + EList<DirectedRelationship> dependencies = context.getTargetDirectedRelationships(); + EList<Requirement> currentDerived = req.getDerived(); + List<Class> currentDerived_base_Class = new ArrayList<Class>(); + for(Requirement currentReq : currentDerived) { + currentDerived_base_Class.add(currentReq.getBase_Class()); + } + + + ModelQueryParameterValue object = parameter.get(0); + Object values = object.getValue(); + Assert.isTrue(values instanceof List<?>); + List<?> newDerivedFrom = (List<?>)values; + + //we destroy the unnecessary Derive_Reqt + for(DirectedRelationship current : dependencies) { + if(UMLUtil.getStereotypeApplication(current, DeriveReqt.class) != null) { + EList<NamedElement> clients = ((Dependency)current).getClients(); + //we assume that there is only one client + if(clients.size() == 1) { + NamedElement supplier = clients.get(0); + if(!newDerivedFrom.contains(supplier)) {//we destroy this dependencies + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(current); + DestroyElementRequest request = new DestroyElementRequest(current, false); + ICommand desroyCommand = provider.getEditCommand(request); + cmd.add(desroyCommand); + } + } + } + } + + + for(Object current : (List<?>)values) { + //we create the derive_reqt only if it doesn't exist + if(!currentDerived_base_Class.contains(current)) { + if(UMLUtil.getStereotypeApplication(context, Requirement.class) != null) { + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + + CreateElementRequest createRequest = new CreateRelationshipRequest(context.getNearestPackage(), (EObject)current, context, SysMLElementTypes.DERIVE_REQT); + cmd.add(provider.getEditCommand(createRequest)); + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, NLS.bind(Messages.SetRequirementDerivedQuery_DeriveReqtCanBeCreated, context.getName(), ((NamedElement)current).getName()), Type.ERROR)); + } + } + + } + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR)); + } + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(cmd)); + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementIdQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementIdQuery.java new file mode 100644 index 00000000000..d83a07373e0 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementIdQuery.java @@ -0,0 +1,96 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.command.SetCommand; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForEObject; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.sysml.requirements.RequirementsPackage; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the attribute "id" of the requirement */ +public class SetRequirementIdQuery implements IJavaModelQueryWithEditingDomain<Class, EObject> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + //nothing to do + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param arg0 + * @param parameter + * @param arg2 + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final Class context, final ParameterValueList parameter, final EditingDomain editingDomain) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + + if(requirement != null) { + if(!((parameter.isEmpty()) || (parameter.get(0) == null))) { + + + + // Retrieve new value from parameter and update if the property value has changed. + String newValue = (parameter.get(0).getValue() instanceof String) ? (String)parameter.get(0).getValue() : null; + if(newValue != requirement.getId()) { + + try { + + TransactionalEditingDomain domain = ServiceUtilsForEObject.getInstance().getTransactionalEditingDomain(requirement); + SetCommand command = new SetCommand(domain, requirement, RequirementsPackage.eINSTANCE.getRequirement_Id(), newValue); + if(command.canExecute()) { + domain.getCommandStack().execute(command); + } + + } catch (ServiceException e) { + throw new ModelQueryExecutionException(e); + } + + } + } + } else { + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR))); + } + + return context; + } + +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementMasterQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementMasterQuery.java new file mode 100644 index 00000000000..b118e058fe7 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementMasterQuery.java @@ -0,0 +1,121 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; +import org.eclipse.osgi.util.NLS; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.Copy; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.Dependency; +import org.eclipse.uml2.uml.DirectedRelationship; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the derived attribute "master" of the requirement */ +public class SetRequirementMasterQuery implements IJavaModelQueryWithEditingDomain<Class, EObject> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + // nothing to do + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param context + * @param parameterValues + * @param editingDomain + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(Class context, ParameterValueList parameterValues, EditingDomain editingDomain) throws ModelQueryExecutionException { + CompositeCommand cmd = new CompositeCommand("Edit the derived attribute /master"); //$NON-NLS-1$ + ModelQueryParameterValue object = parameterValues.get(0); + Object value = object.getValue(); + Class newMaster = null; + if(UMLUtil.getStereotypeApplication(context, Requirement.class) != null) { + if(value != null) { + Assert.isTrue(value instanceof Class); + newMaster = (Class)value; + } + Assert.isTrue(UMLUtil.getStereotypeApplication(context, Requirement.class) != null); + + EList<Dependency> dependencies = context.getClientDependencies(); + + //we destroy the unnecessary Copy + for(DirectedRelationship current : dependencies) { + if(UMLUtil.getStereotypeApplication(current, Copy.class) != null) { + EList<NamedElement> target = ((Dependency)current).getSuppliers(); + //we assume that there is only one client + if(target.size() == 1) { + NamedElement client = target.get(0); + if(newMaster != client) {//we destroy this dependency + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(current); + DestroyElementRequest request = new DestroyElementRequest(current, false); + ICommand destroyCommand = provider.getEditCommand(request); + cmd.add(destroyCommand); + } + } + } + } + + if(newMaster != null) { + if(UMLUtil.getStereotypeApplication(newMaster, Requirement.class) != null) { + //we create the Element Copy + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + CreateElementRequest createRequest = new CreateRelationshipRequest(context.getNearestPackage(), context, newMaster, SysMLElementTypes.COPY); + cmd.add(provider.getEditCommand(createRequest)); + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, NLS.bind(Messages.SetRequirementMasterQuery_CopyCantBeCreated, context.getName(), ((NamedElement)newMaster).getName()), Type.ERROR)); + } + } + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR)); + } + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(cmd)); + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementRefinedByQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementRefinedByQuery.java new file mode 100644 index 00000000000..12e6ed4fe41 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementRefinedByQuery.java @@ -0,0 +1,125 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import java.util.List; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.sysml.util.ElementUtil; +import org.eclipse.papyrus.uml.service.types.element.UMLElementTypes; +import org.eclipse.uml2.uml.Dependency; +import org.eclipse.uml2.uml.DirectedRelationship; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.profile.l2.L2Package; +import org.eclipse.uml2.uml.profile.l2.Refine; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the derived attribute "refinedBy" of the requirement */ +public class SetRequirementRefinedByQuery implements IJavaModelQueryWithEditingDomain<NamedElement, EObject> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final NamedElement context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + //nothing to do + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param context + * @param parameterValues + * @param editingDomain + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(NamedElement context, ParameterValueList parameterValues, EditingDomain editingDomain) throws ModelQueryExecutionException { + CompositeCommand cmd = new CompositeCommand("Edit the feature /refinedBy"); //$NON-NLS-1$ + if(ElementUtil.getStereotypeApplication(context, Requirement.class) != null) { + if(!context.getNearestPackage().isProfileApplied(UMLUtil.getProfile(L2Package.eINSTANCE))) { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementRefinedByQuery_StandardIsNotAppliedOnTheModel, Type.ERROR)); + } else { + Requirement req = UMLUtil.getStereotypeApplication(context, Requirement.class); + EList<DirectedRelationship> dependencies = context.getTargetDirectedRelationships(); + EList<NamedElement> currentRefinedBy = req.getRefinedBy(); + + + ModelQueryParameterValue object = parameterValues.get(0); + Object values = object.getValue(); + Assert.isTrue(values instanceof List<?>); + List<?> newRefinedBy = (List<?>)values; + + //we destroy the unnecessary Refine + for(DirectedRelationship current : dependencies) { + if(UMLUtil.getStereotypeApplication(current, Refine.class) != null) { + + EList<NamedElement> clients = ((Dependency)current).getClients(); + //we assume that there is only one client + if(clients.size() == 1) { + NamedElement client = clients.get(0); + if(!newRefinedBy.contains(client)) {//we destroy this dependencies + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(current); + DestroyElementRequest request = new DestroyElementRequest(current, false); + ICommand destroyCommand = provider.getEditCommand(request); + cmd.add(destroyCommand); + } + } + } + } + + for(Object current : (List<?>)values) { + //we create the Trace only if it doesn't exist + Assert.isTrue(current instanceof NamedElement); + if(!currentRefinedBy.contains(current)) { + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + CreateRelationshipRequest createRequest = new CreateRelationshipRequest(context.getNearestPackage(), (NamedElement)current, context, UMLElementTypes.REFINE); + cmd.add(provider.getEditCommand(createRequest)); + } + } + } + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR)); + } + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(cmd)); + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementSatisfiedByQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementSatisfiedByQuery.java new file mode 100644 index 00000000000..6aa6cc7a233 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementSatisfiedByQuery.java @@ -0,0 +1,120 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import java.util.List; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.sysml.requirements.Satisfy; +import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; +import org.eclipse.uml2.uml.Dependency; +import org.eclipse.uml2.uml.DirectedRelationship; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the derived attribute "satisfiedBy" of the requirement */ +public class SetRequirementSatisfiedByQuery implements IJavaModelQueryWithEditingDomain<NamedElement, EObject> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final NamedElement context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + // nothing to do + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param context + * @param parameterValues + * @param editingDomain + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(NamedElement context, ParameterValueList parameterValues, EditingDomain editingDomain) throws ModelQueryExecutionException { + CompositeCommand cmd = new CompositeCommand("Edit the derived attribute /SatisfiedBy"); //$NON-NLS-1$ + if(UMLUtil.getStereotypeApplication(context, Requirement.class) != null) { + + Requirement req = UMLUtil.getStereotypeApplication(context, Requirement.class); + EList<DirectedRelationship> dependencies = context.getTargetDirectedRelationships(); + EList<NamedElement> currentSatisfiedBy = req.getSatisfiedBy(); + + + + ModelQueryParameterValue object = parameterValues.get(0); + Object values = object.getValue(); + Assert.isTrue(values instanceof List<?>); + List<?> newSatisfiedBy = (List<?>)values; + + //we destroy the unnecessary Satisfy + for(DirectedRelationship current : dependencies) { + if(UMLUtil.getStereotypeApplication(current, Satisfy.class) != null) { + EList<NamedElement> clients = ((Dependency)current).getClients(); + //we assume that there is only one client + if(clients.size() == 1) { + NamedElement client = clients.get(0); + if(!newSatisfiedBy.contains(client)) {//we destroy this dependencies + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(current); + DestroyElementRequest request = new DestroyElementRequest(current, false); + ICommand desroyCommand = provider.getEditCommand(request); + cmd.add(desroyCommand); + } + } + } + } + + for(Object current : (List<?>)values) { + //we create the derive_reqt only if it doesn't exist + Assert.isTrue(current instanceof NamedElement); + if(!currentSatisfiedBy.contains(current)) { + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + CreateRelationshipRequest createRequest = new CreateRelationshipRequest(context.getNearestPackage(), (NamedElement)current, context, SysMLElementTypes.SATISFY); + cmd.add(provider.getEditCommand(createRequest)); + } + } + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR)); + } + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(cmd)); + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementTextQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementTextQuery.java new file mode 100644 index 00000000000..bc87bed3aaa --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementTextQuery.java @@ -0,0 +1,92 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.command.SetCommand; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.core.services.ServiceException; +import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForEObject; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.sysml.requirements.RequirementsPackage; +import org.eclipse.uml2.uml.Class; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the attribute "text" of the requirement */ +public class SetRequirementTextQuery implements IJavaModelQueryWithEditingDomain<Class, EObject> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final Class context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + // nothing to do + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param context + * @param parameter + * @param editingDomain + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final Class context, final ParameterValueList parameter, final EditingDomain editingDomain) throws ModelQueryExecutionException { + Requirement requirement = UMLUtil.getStereotypeApplication(context, Requirement.class); + + if(requirement != null) { + if(!((parameter.isEmpty()) || (parameter.get(0) == null))) { + + // Retrieve new value from parameter and update if the property value has changed. + String newValue = (parameter.get(0).getValue() instanceof String) ? (String)parameter.get(0).getValue() : null; + if(newValue != requirement.getId()) { + + try { + + TransactionalEditingDomain domain = ServiceUtilsForEObject.getInstance().getTransactionalEditingDomain(context); + SetCommand command = new SetCommand(domain, requirement, RequirementsPackage.eINSTANCE.getRequirement_Text(), newValue); + if(command.canExecute()) { + domain.getCommandStack().execute(command); + } + + } catch (ServiceException e) { + throw new ModelQueryExecutionException(e); + } + + } + } + } else { + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR))); + } + return context; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementTracedToQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementTracedToQuery.java new file mode 100644 index 00000000000..590f09c7c5f --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementTracedToQuery.java @@ -0,0 +1,150 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import java.util.List; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; +import org.eclipse.jface.dialogs.MessageDialog; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.uml.service.types.element.UMLElementTypes; +import org.eclipse.uml2.uml.Dependency; +import org.eclipse.uml2.uml.DirectedRelationship; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.Stereotype; +import org.eclipse.uml2.uml.profile.l2.L2Package; +import org.eclipse.uml2.uml.profile.l2.Trace; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the derived attribute "tracedTo" of the requirement */ +public class SetRequirementTracedToQuery implements IJavaModelQueryWithEditingDomain<NamedElement, EObject> { + + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final NamedElement context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + // nothing to do + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param context + * @param parameterValues + * @param editingDomain + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(NamedElement context, ParameterValueList parameterValues, EditingDomain editingDomain) throws ModelQueryExecutionException { + CompositeCommand cmd = new CompositeCommand("Edit the feature /TracedTo"); //$NON-NLS-1$ + int result = MessageDialog.OK; + if(UMLUtil.getStereotypeApplication(context, Requirement.class) != null) { + if(!context.getNearestPackage().isProfileApplied(UMLUtil.getProfile(L2Package.eINSTANCE))) { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementRefinedByQuery_StandardIsNotAppliedOnTheModel, Type.ERROR)); + } else { + Requirement req = UMLUtil.getStereotypeApplication(context, Requirement.class); + EList<DirectedRelationship> dependencies = context.getTargetDirectedRelationships(); + + EList<?> currentTracedTo = req.getTracedTo(); + + ModelQueryParameterValue object = parameterValues.get(0); + Object values = object.getValue(); + Assert.isTrue(values instanceof List<?>); + List<?> newTracedTo = (List<?>)values; + + //we destroy the unnecessary tracedTo + for(DirectedRelationship current : dependencies) { + if(UMLUtil.getStereotypeApplication(current, Trace.class) != null && isStricteTrace(current)) { + EList<NamedElement> clients = ((Dependency)current).getClients(); + //we assume that there is only one client + if(clients.size() == 1) { + NamedElement client = clients.get(0); + if(!newTracedTo.contains(client)) {//we destroy this dependencies + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(current); + DestroyElementRequest request = new DestroyElementRequest(current, false); + ICommand desroyCommand = provider.getEditCommand(request); + cmd.add(desroyCommand); + } + + } + } + } + + for(Object current : (List<?>)values) { + //we create the Trace only if it doesn't exist + Assert.isTrue(current instanceof NamedElement); + if(!currentTracedTo.contains(current)) { + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + CreateRelationshipRequest createRequest = new CreateRelationshipRequest(context.getNearestPackage(), (NamedElement)current, context, UMLElementTypes.TRACE); + cmd.add(provider.getEditCommand(createRequest)); + } + } + } + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR)); + } + if(result == MessageDialog.OK) { + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(cmd)); + } + return null; + } + + /** + * + * @param link + * a {@link DirectedRelationship} + * @return + * <code>true</code> if the link is Stereotyped with Trace (and <code>false</code> if the link is stereotyped with a subtype of Trace + */ + private boolean isStricteTrace(DirectedRelationship link) { + EList<Stereotype> appliedStereotypes = link.getAppliedStereotypes(); + for(Stereotype ste : appliedStereotypes) { + if((ste instanceof Trace)) { + EObject stereotypeApplication = link.getStereotypeApplication(ste); + if(Trace.class.isInstance(stereotypeApplication)) { + return true; + } + } + } + return false; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementVerifiedByQuery.java b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementVerifiedByQuery.java new file mode 100644 index 00000000000..a6894ffcd9e --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.facets/src/org/eclipse/papyrus/sysml/facets/query/value/setter/SetRequirementVerifiedByQuery.java @@ -0,0 +1,120 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.facets.query.value.setter; + +import java.util.List; + +import org.eclipse.core.runtime.Assert; +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.gmf.runtime.common.core.command.CompositeCommand; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateRelationshipRequest; +import org.eclipse.gmf.runtime.emf.type.core.requests.DestroyElementRequest; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.gmf.diagram.common.commands.IdentityCommandWithNotification; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.infra.widgets.toolbox.notification.Type; +import org.eclipse.papyrus.sysml.facets.messages.Messages; +import org.eclipse.papyrus.sysml.requirements.Requirement; +import org.eclipse.papyrus.sysml.requirements.Verify; +import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; +import org.eclipse.uml2.uml.Dependency; +import org.eclipse.uml2.uml.DirectedRelationship; +import org.eclipse.uml2.uml.NamedElement; +import org.eclipse.uml2.uml.util.UMLUtil; + +/** Query to set the derived attribute "verifiedBy" of the requirement */ +public class SetRequirementVerifiedByQuery implements IJavaModelQueryWithEditingDomain<NamedElement, EObject> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(final NamedElement context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + // TODO Auto-generated method stub + return null; + } + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQueryWithEditingDomain#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList, org.eclipse.emf.edit.domain.EditingDomain) + * + * @param context + * @param parameterValues + * @param editingDomain + * @return + * @throws ModelQueryExecutionException + */ + public EObject evaluate(NamedElement context, ParameterValueList parameterValues, EditingDomain editingDomain) throws ModelQueryExecutionException { + CompositeCommand cmd = new CompositeCommand("Edit the feature /VerifiedBy"); //$NON-NLS-1$ + if(UMLUtil.getStereotypeApplication(context, Requirement.class) != null) { + + Requirement req = UMLUtil.getStereotypeApplication(context, Requirement.class); + EList<DirectedRelationship> dependencies = context.getTargetDirectedRelationships(); + EList<?> currentVerifiedBy = req.getVerifiedBy(); + + + + ModelQueryParameterValue object = parameterValues.get(0); + Object values = object.getValue(); + Assert.isTrue(values instanceof List<?>); + List<?> newVerifiedBy = (List<?>)values; + + //we destroy the unnecessary Verified + for(DirectedRelationship current : dependencies) { + if(UMLUtil.getStereotypeApplication(current, Verify.class) != null) { + EList<NamedElement> clients = ((Dependency)current).getClients(); + //we assume that there is only one client + if(clients.size() == 1) { + NamedElement client = clients.get(0); + if(!newVerifiedBy.contains(client)) {//we destroy this dependencies + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(current); + DestroyElementRequest request = new DestroyElementRequest(current, false); + ICommand desroyCommand = provider.getEditCommand(request); + cmd.add(desroyCommand); + } + } + } + } + + for(Object current : (List<?>)values) { + //we create the derive_reqt only if it doesn't exist + Assert.isTrue(current instanceof NamedElement); + if(!currentVerifiedBy.contains(current)) { + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + CreateRelationshipRequest createRequest = new CreateRelationshipRequest(context.getNearestPackage(), (NamedElement)current, context, SysMLElementTypes.VERIFY); + cmd.add(provider.getEditCommand(createRequest)); + } + } + } else { + cmd.add(new IdentityCommandWithNotification(Messages.SetRequirementTextQuery_AssignmentCantBeDone, Messages.SetRequirementTextQuery_NotASysMLRequirement, Type.ERROR)); + } + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(cmd)); + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/.classpath b/deprecated/org.eclipse.papyrus.sysml.table.allocation/.classpath new file mode 100644 index 00000000000..45f024e850e --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/.project b/deprecated/org.eclipse.papyrus.sysml.table.allocation/.project new file mode 100644 index 00000000000..eee04871a33 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/.project @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.sysml.table.allocation</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.emf.facet.common.ProjectNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.sysml.table.allocation/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..5d9a820e72b --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/META-INF/MANIFEST.MF @@ -0,0 +1,36 @@ +Manifest-Version: 1.0
+Require-Bundle: org.eclipse.emf.facet.infra.common.core,
+ org.eclipse.emf.facet.infra.query.core,
+ org.eclipse.papyrus.infra.services.edit;bundle-version="1.0.0",
+ org.eclipse.papyrus.sysml.service.types;bundle-version="1.0.0",
+ org.eclipse.papyrus.infra.table.common;bundle-version="1.0.0",
+ org.eclipse.core.expressions,
+ org.eclipse.papyrus.infra.table.instance;bundle-version="1.0.0",
+ org.eclipse.emf.facet.widgets.nattable;bundle-version="0.1.0",
+ org.eclipse.emf.facet.widgets.nattable.tableconfiguration;bundle-version="0.1.0",
+ org.eclipse.emf.facet.widgets.nattable.instance;bundle-version="0.1.0",
+ org.eclipse.papyrus.sysml;bundle-version="1.0.0",
+ org.eclipse.emf.facet.util.emf.core;bundle-version="0.2.0",
+ org.eclipse.core.runtime;bundle-version="3.8.0",
+ org.eclipse.emf.edit;bundle-version="2.8.0",
+ org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0",
+ org.eclipse.papyrus.infra.core;bundle-version="1.0.0",
+ org.eclipse.ui,
+ org.eclipse.papyrus.infra.core.sasheditor;bundle-version="1.0.0",
+ org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.0.0",
+ org.eclipse.papyrus.uml.diagram.common;bundle-version="1.0.0",
+ org.eclipse.uml2.uml;bundle-version="4.0.0",
+ org.eclipse.papyrus.uml.table.common;bundle-version="1.0.0"
+Bundle-Vendor: %providerName
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .,
+ bin
+Bundle-Version: 1.0.0.qualifier
+Bundle-Name: %pluginName
+Bundle-Localization: plugin
+Bundle-Activator: org.eclipse.papyrus.sysml.table.allocation.Activator
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.eclipse.papyrus.sysml.table.allocation;single
+ ton:=true
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/about.html b/deprecated/org.eclipse.papyrus.sysml.table.allocation/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/build.properties b/deprecated/org.eclipse.papyrus.sysml.table.allocation/build.properties new file mode 100644 index 00000000000..a5b8aba17eb --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/build.properties @@ -0,0 +1,7 @@ +#
+#Mon Sep 12 09:30:17 CEST 2011
+bin.includes=META-INF/,.,plugin.properties,resources/,plugin.xml,icons/,about.html
+output..=bin/
+src.includes = about.html
+source..=src/
+bin..=bin/
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/allocation_table.gif b/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/allocation_table.gif Binary files differnew file mode 100644 index 00000000000..01476ab60c0 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/allocation_table.gif diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/allocation_table.png b/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/allocation_table.png Binary files differnew file mode 100644 index 00000000000..757b31ce86b --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/allocation_table.png diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/table_SysML_Allocation.gif b/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/table_SysML_Allocation.gif Binary files differnew file mode 100644 index 00000000000..da218ead152 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/table_SysML_Allocation.gif diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/table_SysML_Allocation.png b/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/table_SysML_Allocation.png Binary files differnew file mode 100644 index 00000000000..761ea002323 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/icons/table_SysML_Allocation.png diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/plugin.properties b/deprecated/org.eclipse.papyrus.sysml.table.allocation/plugin.properties new file mode 100644 index 00000000000..c20559ab717 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/plugin.properties @@ -0,0 +1,3 @@ +#Properties file for org.eclipse.papyrus.sysml.table.allocation
+providerName = Eclipse Modeling Project
+pluginName = Papyrus Table Editor For Allocation (Incubation)
\ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/plugin.xml b/deprecated/org.eclipse.papyrus.sysml.table.allocation/plugin.xml new file mode 100644 index 00000000000..f953d368abf --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/plugin.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?eclipse version="3.4"?>
+
+<plugin>
+ <extension point="org.eclipse.papyrus.infra.core.papyrusDiagram">
+ <editorDiagram factoryClass="org.eclipse.papyrus.sysml.table.allocation.CreateAllocationTableFactory" icon="icons/table_SysML_Allocation.gif">
+ </editorDiagram>
+ </extension>
+ <!--extension point="org.eclipse.ui.menus">
+ <menuContribution allPopups="false" locationURI="toolbar:org.eclipse.papyrus.table.ui.toolbar">
+ <command commandId="org.eclipse.papyrus.sysml.table.allocation.create.table.command" icon="icons/table_SysML_Allocation.gif" id="org.eclipse.papyrus.table.ui.toolbar.allocation.table" style="push" tooltip="Create a new SysML Allocation table">
+ <visibleWhen>
+ <reference
+ definitionId="org.eclipse.papyrus.sysml.diagram.common.IsPapyrusActiveWithSysML">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ <menuContribution allPopups="false" locationURI="popup:org.eclipse.papyrus.views.modelexplorer.popupmenu.createtable">
+ <command commandId="org.eclipse.papyrus.sysml.table.allocation.create.table.command" icon="icons/table_SysML_Allocation.gif" id="org.eclipse.papyrus.views.modelexplorer.popupmenu.createtable.allocation.table" style="push" tooltip="Create a new SysML Allocation table">
+ <visibleWhen>
+ <reference
+ definitionId="org.eclipse.papyrus.sysml.diagram.common.IsPapyrusActiveWithSysML">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ <menuContribution allPopups="false" locationURI="menu:org.eclipse.papyrus.table.ui.menu.tables">
+ <command commandId="org.eclipse.papyrus.sysml.table.allocation.create.table.command" icon="icons/table_SysML_Allocation.gif" id="org.eclipse.papyrus.table.ui.menu.tables.allocation.table" style="push" tooltip="Create a new SysML Allocation table">
+ <visibleWhen>
+ <reference
+ definitionId="org.eclipse.papyrus.sysml.diagram.common.IsPapyrusActiveWithSysML">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+ <extension point="org.eclipse.ui.commands">
+ <command categoryId="org.eclipse.papyrus.editor.category" description="Create a new SysML Allocation table" id="org.eclipse.papyrus.sysml.table.allocation.create.table.command" name="SysML &Allocation Table">
+ </command>
+ </extension>
+ <extension point="org.eclipse.ui.handlers">
+ <handler class="org.eclipse.papyrus.sysml.table.allocation.CreateAllocationTableCommand" commandId="org.eclipse.papyrus.sysml.table.allocation.create.table.command">
+ <activeWhen>
+ <and>
+ <with variable="selection">
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.sysml.table.allocation.tester.isAppliedAllocations" value="true">
+ </test>
+ </with>
+ </and>
+ </activeWhen>
+ </handler>
+ </extension-->
+ <extension point="org.eclipse.emf.facet.infra.query.registration">
+ <modelqueryset file="resources/allocate.querySet"/>
+ </extension>
+ <extension point="org.eclipse.core.expressions.propertyTesters">
+ <propertyTester class="org.eclipse.papyrus.sysml.table.allocation.tester.AllocationPropertyTester" id="org.eclipse.papyrus.sysml.table.allocation.tester" namespace="org.eclipse.papyrus.sysml.table.allocation.tester" properties="isAppliedAllocations" type="org.eclipse.jface.viewers.IStructuredSelection">
+ </propertyTester>
+ </extension>
+ <extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
+ <browserCustomization file="resources/table_SysML_Allocation_showOnlyClientAndSupplier.uiCustom"/>
+ </extension>
+</plugin>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/allocate.querySet b/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/allocate.querySet new file mode 100644 index 00000000000..11d4bbe34c7 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/allocate.querySet @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="ASCII"?>
+<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="allocate" description="Query Set for Allocation">
+ <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ <associatedMetamodels href="http://www.eclipse.org/papyrus/0.7.0/SysML#/"/>
+ <associatedMetamodels href="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8#/"/>
+ <associatedMetamodels href="http://www.eclipse.org/emf/2002/Ecore#/"/>
+ <queries xsi:type="query:JavaModelQuery" name="IsAllocateQuery" description="Test is the element is an Allocate" implementationClassName="org.eclipse.papyrus.sysml.table.allocation.queries.IsAllocateQuery">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
+ <scope href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="CreateAbstractionQuery" description="Create a new Abstraction" lowerBound="1" implementationClassName="org.eclipse.papyrus.sysml.table.allocation.queries.CreateAbstractionQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Abstraction"/>
+ <scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Package"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="CreateAllocateQuery" description="Create a new Allocation" lowerBound="1" implementationClassName="org.eclipse.papyrus.sysml.table.allocation.queries.CreateAllocateQuery">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Abstraction"/>
+ <scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Package"/>
+ </queries>
+</query:ModelQuerySet>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/allocate.tableconfiguration2 b/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/allocate.tableconfiguration2 new file mode 100644 index 00000000000..25bdafe1803 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/allocate.tableconfiguration2 @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<tableconfiguration2:TableConfiguration2 xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" xmlns:tableconfiguration2="http://www.eclipse.org/EMF_Facet/Table/0.1.0/tableconfiguration2">
+ <canBePresentedInTheTable xsi:type="query:JavaModelQuery" href="emffacet:/query/allocate#IsAllocateQuery"/>
+ <defaultCustomizations href="emffacet:/customization/SysMLDefaultExplorerCustomization#/"/>
+ <instantiationMethod name="CreateAbstractionQuery" description="Create a new Abstraction">
+ <instantiationQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/allocate#CreateAbstractionQuery"/>
+ </instantiationMethod>
+ <instantiationMethod name="CreateAllocateQuery" description="Create a new Allocate">
+ <instantiationQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/allocate#CreateAllocateQuery"/>
+ </instantiationMethod>
+ <defaultLocalCustomizations href="emffacet:/customization/table_Ecore_hideEAnnotationFeature#/"/>
+ <defaultLocalCustomizations href="emffacet:/customization/table_SysML_Allocation_showOnlyClientAndSupplier#/"/>
+</tableconfiguration2:TableConfiguration2>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/table_SysML_Allocation_showOnlyClientAndSupplier.uiCustom b/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/table_SysML_Allocation_showOnlyClientAndSupplier.uiCustom new file mode 100644 index 00000000000..b445216d4cc --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/resources/table_SysML_Allocation_showOnlyClientAndSupplier.uiCustom @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="ASCII"?>
+<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="http://www.eclipse.org/uml2/4.0.0/UML" allQuerySetsAvailable="false">
+ <types metaclassName="uml.Element">
+ <references referenceName="ownedElement">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="owner">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedComment">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.NamedElement">
+ <attributes attributeName="name">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <attributes attributeName="visibility">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <attributes attributeName="qualifiedName">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <references referenceName="clientDependency">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="namespace">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="nameExpression">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.ParameterableElement">
+ <references referenceName="owningTemplateParameter">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="templateParameter">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.Relationship">
+ <references referenceName="relatedElement">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.DirectedRelationship">
+ <references referenceName="source">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="target">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.Abstraction">
+ <references referenceName="mapping">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+</uicustom:MetamodelView>
\ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/Activator.java b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/Activator.java new file mode 100644 index 00000000000..5f829acfd95 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/Activator.java @@ -0,0 +1,45 @@ +/*******************************************************************************
+ * Copyright (c) 2010 Mia-Software.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Nicolas Bros (Mia-Software)
+ *******************************************************************************/
+package org.eclipse.papyrus.sysml.table.allocation;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/** The activator class controls the plug-in life cycle */
+public class Activator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.sysml.table.allocation"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator plugin;
+
+ @Override
+ public void start(final BundleContext context) throws Exception {
+ super.start(context);
+ Activator.plugin = this;
+ }
+
+ @Override
+ public void stop(final BundleContext context) throws Exception {
+ Activator.plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return Activator.plugin;
+ }
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/CreateAllocationTableCommand.java b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/CreateAllocationTableCommand.java new file mode 100644 index 00000000000..2c16e537bf8 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/CreateAllocationTableCommand.java @@ -0,0 +1,86 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.allocation;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+import org.eclipse.emf.facet.widgets.nattable.tableconfiguration2.TableConfiguration2;
+import org.eclipse.papyrus.infra.table.common.handlers.AbstractCreateNattableEditorCommand;
+import org.eclipse.papyrus.sysml.table.allocation.editor.AllocationTableEditor;
+import org.eclipse.papyrus.sysml.util.SysmlResource;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Package;
+
+
+
+/**
+ * The command to create the Requirement Table
+ *
+ *
+ *
+ */
+public class CreateAllocationTableCommand extends AbstractCreateNattableEditorCommand {
+
+ /**
+ *
+ * Constructor.
+ *
+ */
+ public CreateAllocationTableCommand() {
+ super(AllocationTableEditor.EDITOR_TYPE, AllocationTableEditor.DEFAULT_NAME);
+ }
+
+ /**
+ *
+ * @see org.eclipse.papyrus.infra.table.common.handlers.AbstractCreateNattableEditorCommand#getTableConfiguration()
+ *
+ * @return
+ */
+ @Override
+ protected TableConfiguration2 getTableConfiguration2() {
+ ResourceSet resourceSet = new ResourceSetImpl();
+
+ String symbolicName = Activator.getDefault().getBundle().getSymbolicName();
+ URI uri = URI.createPlatformPluginURI(symbolicName + "/resources/allocate.tableconfiguration2", true); //$NON-NLS-1$
+ Resource resource = resourceSet.getResource(uri, true);
+
+ TableConfiguration2 tableConfiguration = null;
+ if(resource.getContents().get(0) instanceof org.eclipse.emf.facet.widgets.nattable.tableconfiguration.TableConfiguration) {
+ tableConfiguration = (TableConfiguration2)resource.getContents().get(0);
+ return tableConfiguration;
+ }
+ return null;
+ }
+ /**
+ *
+ * @see org.eclipse.papyrus.infra.table.common.handlers.AbstractCreateNattableEditorCommand#isEnabled()
+ *
+ * @return
+ */
+ @Override
+ public boolean isEnabled() {
+ EObject object = getTableContext();
+ if(object instanceof Element) {
+ Element el = (Element)object;
+ Package pack = el.getNearestPackage();
+ //we can create an Allocation Table only when the profile is applied
+ return pack.getAppliedProfile(SysmlResource.ALLOCATIONS_ID, true) != null;
+ }
+ return false;
+ }
+
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/CreateAllocationTableFactory.java b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/CreateAllocationTableFactory.java new file mode 100644 index 00000000000..388f82acffc --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/CreateAllocationTableFactory.java @@ -0,0 +1,36 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.allocation;
+
+import org.eclipse.papyrus.infra.table.common.factory.AbstractNattableEditorFactory;
+import org.eclipse.papyrus.sysml.table.allocation.editor.AllocationTableEditor;
+
+/**
+ * the factory for the AllocationTable
+ *
+ *
+ *
+ */
+public class CreateAllocationTableFactory extends AbstractNattableEditorFactory {
+
+ /**
+ * Constructor.
+ *
+ * @param diagramClass
+ * @param expectedType
+ */
+ public CreateAllocationTableFactory() {
+ super(AllocationTableEditor.class, AllocationTableEditor.EDITOR_TYPE);
+ }
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/editor/AllocationTableEditor.java b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/editor/AllocationTableEditor.java new file mode 100644 index 00000000000..a92a748f433 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/editor/AllocationTableEditor.java @@ -0,0 +1,44 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.allocation.editor;
+
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.infra.table.common.editor.AbstractNattableEditor;
+import org.eclipse.papyrus.infra.table.instance.papyrustableinstance.PapyrusTableInstance;
+import org.eclipse.papyrus.uml.table.common.editor.AbstractUMLTableEditor;
+
+
+/**
+ *
+ * The requirement table editor
+ *
+ */
+public class AllocationTableEditor extends AbstractUMLTableEditor {
+
+
+ /** the type of the editor */
+ public static final String EDITOR_TYPE = "PapyrusAllocationTable"; //$NON-NLS-1$
+
+ public static final String DEFAULT_NAME = "AllocationTable"; //$NON-NLS-1$
+
+ /**
+ * @param servicesRegistry
+ * @param rawModel2
+ *
+ */
+ public AllocationTableEditor(ServicesRegistry servicesRegistry, PapyrusTableInstance rawModel) {
+ super(servicesRegistry, rawModel);
+ }
+
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/CreateAbstractionQuery.java b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/CreateAbstractionQuery.java new file mode 100644 index 00000000000..4daac093705 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/CreateAbstractionQuery.java @@ -0,0 +1,69 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.table.allocation.queries; + +import org.eclipse.emf.common.command.Command; +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.emf.facet.widgets.celleditors.ICommandFactoriesRegistry; +import org.eclipse.emf.facet.widgets.celleditors.ICommandFactory; +import org.eclipse.emf.facet.widgets.nattable.tableconfiguration.InstantiationMethodParameters; +import org.eclipse.uml2.uml.Abstraction; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.UMLFactory; +import org.eclipse.uml2.uml.UMLPackage; + +/** Create a new Abstraction */ +//FIXME: Use an element type to create the Abstraction. Remove the dependency to uml.diagram.common +public class CreateAbstractionQuery implements IJavaModelQuery<Package, Abstraction> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public Abstraction evaluate(final Package context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + EditingDomain editingDomain = null; + ModelQueryParameterValue model = parameterValues.getParameterValueByName(InstantiationMethodParameters.getEditingDomainParameter().getName()); + if(model != null) { + if(model.getValue() instanceof EditingDomain) { + editingDomain = (EditingDomain)model.getValue(); + } + } + if(editingDomain != null) { + ICommandFactory commandFactory = ICommandFactoriesRegistry.INSTANCE.getCommandFactoryFor(editingDomain); + + if(context != null) { + Abstraction abstraction = UMLFactory.eINSTANCE.createAbstraction(); + + String name = org.eclipse.papyrus.uml.diagram.common.helper.NamedElementHelper.EINSTANCE.getNewUMLElementName(context, abstraction.eClass()); + abstraction.setName(name); + Command command = commandFactory.createAddCommand(editingDomain, context, UMLPackage.eINSTANCE.getPackage_PackagedElement(), abstraction); + + editingDomain.getCommandStack().execute(command); + return abstraction; + } + } + + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/CreateAllocateQuery.java b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/CreateAllocateQuery.java new file mode 100644 index 00000000000..0c4bcfff47a --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/CreateAllocateQuery.java @@ -0,0 +1,69 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.table.allocation.queries; + +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.emf.facet.widgets.nattable.tableconfiguration.InstantiationMethodParameters; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; +import org.eclipse.uml2.uml.Abstraction; +import org.eclipse.uml2.uml.Package; + +/** Test if the element is an Allocation */ +public class CreateAllocateQuery implements IJavaModelQuery<Package, Abstraction> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public Abstraction evaluate(final Package context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + EditingDomain editingDomain = null; + ModelQueryParameterValue model = parameterValues.getParameterValueByName(InstantiationMethodParameters.getEditingDomainParameter().getName()); + if(model != null) { + if(model.getValue() instanceof EditingDomain) { + editingDomain = (EditingDomain)model.getValue(); + } + } + if(editingDomain != null) { + if(context != null) { + + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + CreateElementRequest createRequest = new CreateElementRequest(context, SysMLElementTypes.ALLOCATE); + ICommand createGMFCommand = provider.getEditCommand(createRequest); + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(createGMFCommand)); + if(createGMFCommand.getCommandResult() != null) {//when the Model is not a SysML model, return null! + Object returnedValue = createGMFCommand.getCommandResult().getReturnValue(); + return (Abstraction)returnedValue; + } + return null; + } + } + + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/IsAllocateQuery.java b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/IsAllocateQuery.java new file mode 100644 index 00000000000..b03802e2afb --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/queries/IsAllocateQuery.java @@ -0,0 +1,45 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.table.allocation.queries; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.uml2.uml.Abstraction; +import org.eclipse.uml2.uml.Stereotype; + +/** Test is the element is an Abstraction */ +public class IsAllocateQuery implements IJavaModelQuery<EObject, Boolean> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public Boolean evaluate(final EObject context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + + if(context instanceof Abstraction) { + Abstraction abstraction = (Abstraction)context; + Stereotype ste = abstraction.getAppliedStereotype("SysML::Allocations::Allocate"); //$NON-NLS-1$ + return new Boolean(ste != null); + } + return new Boolean(false); + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/tester/AllocationPropertyTester.java b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/tester/AllocationPropertyTester.java new file mode 100644 index 00000000000..3677994f225 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.allocation/src/org/eclipse/papyrus/sysml/table/allocation/tester/AllocationPropertyTester.java @@ -0,0 +1,62 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.allocation.tester;
+
+import org.eclipse.core.expressions.PropertyTester;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.sysml.table.allocation.CreateAllocationTableCommand;
+
+/**
+ * Property tester for Allocation Table
+ *
+ *
+ *
+ */
+public class AllocationPropertyTester extends PropertyTester {
+
+ /**
+ * the property to test
+ */
+ public static final String IS_APPLIED_ALLOCATIONS = "isAppliedAllocations"; //$NON-NLS-1$
+
+ /**
+ *
+ * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
+ *
+ * @param receiver
+ * @param property
+ * @param args
+ * @param expectedValue
+ * @return
+ */
+ public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
+ if(IS_APPLIED_ALLOCATIONS.equals(property) && receiver instanceof IStructuredSelection) {
+ boolean currentValue = testIsAppliedAllocation((IStructuredSelection)receiver);
+ return (new Boolean(currentValue).equals(expectedValue));
+ }
+ return false;
+ }
+
+ /**
+ * returns <code>true</code> if the first selected element is inside a package where the profile SysML::Allocations is applied
+ *
+ * @param selection
+ * @return
+ */
+ private boolean testIsAppliedAllocation(IStructuredSelection selection) {
+ CreateAllocationTableCommand handler = new CreateAllocationTableCommand();
+ return handler.isEnabled();
+ }
+
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.feature/.project b/deprecated/org.eclipse.papyrus.sysml.table.feature/.project new file mode 100644 index 00000000000..3a2b6dcb6df --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.feature/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.sysml.table.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.feature/build.properties b/deprecated/org.eclipse.papyrus.sysml.table.feature/build.properties new file mode 100644 index 00000000000..128baaa4d3b --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.feature/build.properties @@ -0,0 +1,6 @@ +bin.includes = feature.xml,\
+ epl-v10.html,\
+ license.html,\
+ feature.properties
+src.includes = epl-v10.html,\
+ license.html
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.feature/epl-v10.html b/deprecated/org.eclipse.papyrus.sysml.table.feature/epl-v10.html new file mode 100644 index 00000000000..cb1073a4bad --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.feature/epl-v10.html @@ -0,0 +1,304 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> +<html xmlns:o="urn:schemas-microsoft-com:office:office" +xmlns:w="urn:schemas-microsoft-com:office:word" +xmlns="http://www.w3.org/TR/REC-html40"> + +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> +<link rel=File-List +href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml"> +<title>Eclipse Public License - Version 1.0</title> +<style> +<!-- + /* Font Definitions */ +@font-face + { + panose-1:2 11 6 4 3 5 4 4 2 4; + mso-font-charset:0; + mso-font-pitch:variable; + mso-font-signature:553679495 -2147483648 8 0 66047 0;} + /* Style Definitions */ +p.MsoNormal, li.MsoNormal, div.MsoNormal + {mso-style-parent:""; + margin:0in; + margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:12.0pt; + } +p + {margin-right:0in; + mso-margin-top-alt:auto; + mso-margin-bottom-alt:auto; + margin-left:0in; + mso-pagination:widow-orphan; + font-size:12.0pt; + } +p.BalloonText, li.BalloonText, div.BalloonText + {mso-style-name:"Balloon Text"; + margin:0in; + margin-bottom:.0001pt; + mso-pagination:widow-orphan; + font-size:8.0pt; + + } +@page Section1 + {size:8.5in 11.0in; + margin:1.0in 1.25in 1.0in 1.25in; + mso-header-margin:.5in; + mso-footer-margin:.5in; + mso-paper-source:0;} +div.Section1 + {page:Section1;} +--> +</style> +</head> + +<body lang="EN-US" style='tab-interval:.5in'> + +<div class=Section1> + +<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b> +</p> + +<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER +THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, +REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE +OF THIS AGREEMENT.</span> </p> + +<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p> + +<p><span style='font-size:10.0pt'>"Contribution" means:</span> </p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a) +in the case of the initial Contributor, the initial code and documentation +distributed under this Agreement, and<br clear=left> +b) in the case of each subsequent Contributor:</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i) +changes to the Program, and</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii) +additions to the Program;</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where +such changes and/or additions to the Program originate from and are distributed +by that particular Contributor. A Contribution 'originates' from a Contributor +if it was added to the Program by such Contributor itself or anyone acting on +such Contributor's behalf. Contributions do not include additions to the +Program which: (i) are separate modules of software distributed in conjunction +with the Program under their own license agreement, and (ii) are not derivative +works of the Program. </span></p> + +<p><span style='font-size:10.0pt'>"Contributor" means any person or +entity that distributes the Program.</span> </p> + +<p><span style='font-size:10.0pt'>"Licensed Patents " mean patent +claims licensable by a Contributor which are necessarily infringed by the use +or sale of its Contribution alone or when combined with the Program. </span></p> + +<p><span style='font-size:10.0pt'>"Program" means the Contributions +distributed in accordance with this Agreement.</span> </p> + +<p><span style='font-size:10.0pt'>"Recipient" means anyone who +receives the Program under this Agreement, including all Contributors.</span> </p> + +<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a) +Subject to the terms of this Agreement, each Contributor hereby grants Recipient +a non-exclusive, worldwide, royalty-free copyright license to<span +style='color:red'> </span>reproduce, prepare derivative works of, publicly +display, publicly perform, distribute and sublicense the Contribution of such +Contributor, if any, and such derivative works, in source code and object code +form.</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) +Subject to the terms of this Agreement, each Contributor hereby grants +Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free +patent license under Licensed Patents to make, use, sell, offer to sell, import +and otherwise transfer the Contribution of such Contributor, if any, in source +code and object code form. This patent license shall apply to the combination +of the Contribution and the Program if, at the time the Contribution is added +by the Contributor, such addition of the Contribution causes such combination +to be covered by the Licensed Patents. The patent license shall not apply to +any other combinations which include the Contribution. No hardware per se is +licensed hereunder. </span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c) +Recipient understands that although each Contributor grants the licenses to its +Contributions set forth herein, no assurances are provided by any Contributor +that the Program does not infringe the patent or other intellectual property +rights of any other entity. Each Contributor disclaims any liability to Recipient +for claims brought by any other entity based on infringement of intellectual +property rights or otherwise. As a condition to exercising the rights and +licenses granted hereunder, each Recipient hereby assumes sole responsibility +to secure any other intellectual property rights needed, if any. For example, +if a third party patent license is required to allow Recipient to distribute +the Program, it is Recipient's responsibility to acquire that license before +distributing the Program.</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d) +Each Contributor represents that to its knowledge it has sufficient copyright +rights in its Contribution, if any, to grant the copyright license set forth in +this Agreement. </span></p> + +<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p> + +<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the +Program in object code form under its own license agreement, provided that:</span> +</p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a) +it complies with the terms and conditions of this Agreement; and</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) +its license agreement:</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i) +effectively disclaims on behalf of all Contributors all warranties and +conditions, express and implied, including warranties or conditions of title +and non-infringement, and implied warranties or conditions of merchantability +and fitness for a particular purpose; </span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii) +effectively excludes on behalf of all Contributors all liability for damages, +including direct, indirect, special, incidental and consequential damages, such +as lost profits; </span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii) +states that any provisions which differ from this Agreement are offered by that +Contributor alone and not by any other party; and</span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv) +states that source code for the Program is available from such Contributor, and +informs licensees how to obtain it in a reasonable manner on or through a +medium customarily used for software exchange.<span style='color:blue'> </span></span></p> + +<p><span style='font-size:10.0pt'>When the Program is made available in source +code form:</span> </p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a) +it must be made available under this Agreement; and </span></p> + +<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a +copy of this Agreement must be included with each copy of the Program. </span></p> + +<p><span style='font-size:10.0pt'>Contributors may not remove or alter any +copyright notices contained within the Program. </span></p> + +<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the +originator of its Contribution, if any, in a manner that reasonably allows +subsequent Recipients to identify the originator of the Contribution. </span></p> + +<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p> + +<p><span style='font-size:10.0pt'>Commercial distributors of software may +accept certain responsibilities with respect to end users, business partners +and the like. While this license is intended to facilitate the commercial use +of the Program, the Contributor who includes the Program in a commercial +product offering should do so in a manner which does not create potential +liability for other Contributors. Therefore, if a Contributor includes the +Program in a commercial product offering, such Contributor ("Commercial +Contributor") hereby agrees to defend and indemnify every other +Contributor ("Indemnified Contributor") against any losses, damages and +costs (collectively "Losses") arising from claims, lawsuits and other +legal actions brought by a third party against the Indemnified Contributor to +the extent caused by the acts or omissions of such Commercial Contributor in +connection with its distribution of the Program in a commercial product +offering. The obligations in this section do not apply to any claims or Losses +relating to any actual or alleged intellectual property infringement. In order +to qualify, an Indemnified Contributor must: a) promptly notify the Commercial +Contributor in writing of such claim, and b) allow the Commercial Contributor +to control, and cooperate with the Commercial Contributor in, the defense and +any related settlement negotiations. The Indemnified Contributor may participate +in any such claim at its own expense.</span> </p> + +<p><span style='font-size:10.0pt'>For example, a Contributor might include the +Program in a commercial product offering, Product X. That Contributor is then a +Commercial Contributor. If that Commercial Contributor then makes performance +claims, or offers warranties related to Product X, those performance claims and +warranties are such Commercial Contributor's responsibility alone. Under this +section, the Commercial Contributor would have to defend claims against the +other Contributors related to those performance claims and warranties, and if a +court requires any other Contributor to pay any damages as a result, the +Commercial Contributor must pay those damages.</span> </p> + +<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p> + +<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS +AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT +WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, +WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, +MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely +responsible for determining the appropriateness of using and distributing the +Program and assumes all risks associated with its exercise of rights under this +Agreement , including but not limited to the risks and costs of program errors, +compliance with applicable laws, damage to or loss of data, programs or +equipment, and unavailability or interruption of operations. </span></p> + +<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p> + +<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS +AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY +OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF +THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGES.</span> </p> + +<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p> + +<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid +or unenforceable under applicable law, it shall not affect the validity or +enforceability of the remainder of the terms of this Agreement, and without +further action by the parties hereto, such provision shall be reformed to the +minimum extent necessary to make such provision valid and enforceable.</span> </p> + +<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation +against any entity (including a cross-claim or counterclaim in a lawsuit) +alleging that the Program itself (excluding combinations of the Program with +other software or hardware) infringes such Recipient's patent(s), then such +Recipient's rights granted under Section 2(b) shall terminate as of the date +such litigation is filed. </span></p> + +<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement +shall terminate if it fails to comply with any of the material terms or +conditions of this Agreement and does not cure such failure in a reasonable +period of time after becoming aware of such noncompliance. If all Recipient's +rights under this Agreement terminate, Recipient agrees to cease use and +distribution of the Program as soon as reasonably practicable. However, +Recipient's obligations under this Agreement and any licenses granted by +Recipient relating to the Program shall continue and survive. </span></p> + +<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute +copies of this Agreement, but in order to avoid inconsistency the Agreement is +copyrighted and may only be modified in the following manner. The Agreement +Steward reserves the right to publish new versions (including revisions) of +this Agreement from time to time. No one other than the Agreement Steward has +the right to modify this Agreement. The Eclipse Foundation is the initial +Agreement Steward. The Eclipse Foundation may assign the responsibility to +serve as the Agreement Steward to a suitable separate entity. Each new version +of the Agreement will be given a distinguishing version number. The Program +(including Contributions) may always be distributed subject to the version of +the Agreement under which it was received. In addition, after a new version of +the Agreement is published, Contributor may elect to distribute the Program +(including its Contributions) under the new version. Except as expressly stated +in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to +the intellectual property of any Contributor under this Agreement, whether +expressly, by implication, estoppel or otherwise. All rights in the Program not +expressly granted under this Agreement are reserved.</span> </p> + +<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the +State of New York and the intellectual property laws of the United States of +America. No party to this Agreement will bring a legal action under this +Agreement more than one year after the cause of action arose. Each party waives +its rights to a jury trial in any resulting litigation.</span> </p> + +<p class=MsoNormal></p> + +</div> + +</body> + +</html>
\ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.sysml.table.feature/feature.properties b/deprecated/org.eclipse.papyrus.sysml.table.feature/feature.properties new file mode 100644 index 00000000000..a630891ba6a --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.feature/feature.properties @@ -0,0 +1,139 @@ +# NLS_MESSAGEFORMAT_VAR + +# "featureName" property - name of the feature +featureName=Papyrus SysML tables (Incubation) + +# "providerName" property - name of the company that provides the feature +providerName=Eclipse Modeling Project + +# "licenseURL" property - URL of the "Feature License" +# do not translate value - just change to point to a locale-specific HTML page +licenseURL=license.html + +# "license" property - text of the "Feature Update License" +# should be plain text version of license agreement pointed to be "licenseURL" +license=\ +Eclipse Foundation Software User Agreement\n\ +February 1, 2011\n\ +\n\ +Usage Of Content\n\ +\n\ +THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\ +OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\ +USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\ +AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\ +NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\ +AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\ +AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\ +OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\ +TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\ +OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\ +BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\ +\n\ +Applicable Licenses\n\ +\n\ +Unless otherwise indicated, all Content made available by the\n\ +Eclipse Foundation is provided to you under the terms and conditions of\n\ +the Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is\n\ +provided with this Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\ +For purposes of the EPL, "Program" will mean the Content.\n\ +\n\ +Content includes, but is not limited to, source code, object code,\n\ +documentation and other files maintained in the Eclipse Foundation source code\n\ +repository ("Repository") in software modules ("Modules") and made available\n\ +as downloadable archives ("Downloads").\n\ +\n\ + - Content may be structured and packaged into modules to facilitate delivering,\n\ + extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\ + plug-in fragments ("Fragments"), and features ("Features").\n\ + - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java(TM) ARchive)\n\ + in a directory named "plugins".\n\ + - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\ + Each Feature may be packaged as a sub-directory in a directory named "features".\n\ + Within a Feature, files named "feature.xml" may contain a list of the names and version\n\ + numbers of the Plug-ins and/or Fragments associated with that Feature.\n\ + - Features may also include other Features ("Included Features"). Within a Feature, files\n\ + named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\ +\n\ +The terms and conditions governing Plug-ins and Fragments should be\n\ +contained in files named "about.html" ("Abouts"). The terms and\n\ +conditions governing Features and Included Features should be contained\n\ +in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\ +Licenses may be located in any directory of a Download or Module\n\ +including, but not limited to the following locations:\n\ +\n\ + - The top-level (root) directory\n\ + - Plug-in and Fragment directories\n\ + - Inside Plug-ins and Fragments packaged as JARs\n\ + - Sub-directories of the directory named "src" of certain Plug-ins\n\ + - Feature directories\n\ +\n\ +Note: if a Feature made available by the Eclipse Foundation is installed using the\n\ +Provisioning Technology (as defined below), you must agree to a license ("Feature \n\ +Update License") during the installation process. If the Feature contains\n\ +Included Features, the Feature Update License should either provide you\n\ +with the terms and conditions governing the Included Features or inform\n\ +you where you can locate them. Feature Update Licenses may be found in\n\ +the "license" property of files named "feature.properties" found within a Feature.\n\ +Such Abouts, Feature Licenses, and Feature Update Licenses contain the\n\ +terms and conditions (or references to such terms and conditions) that\n\ +govern your use of the associated Content in that directory.\n\ +\n\ +THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER\n\ +TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\ +SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\ +\n\ + - Eclipse Distribution License Version 1.0 (available at http://www.eclipse.org/licenses/edl-v1.0.html)\n\ + - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\ + - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\ + - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\ + - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\ + - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\ +\n\ +IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\ +TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License\n\ +is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\ +govern that particular Content.\n\ +\n\ +\n\Use of Provisioning Technology\n\ +\n\ +The Eclipse Foundation makes available provisioning software, examples of which include,\n\ +but are not limited to, p2 and the Eclipse Update Manager ("Provisioning Technology") for\n\ +the purpose of allowing users to install software, documentation, information and/or\n\ +other materials (collectively "Installable Software"). This capability is provided with\n\ +the intent of allowing such users to install, extend and update Eclipse-based products.\n\ +Information about packaging Installable Software is available at\n\ +http://eclipse.org/equinox/p2/repository_packaging.html ("Specification").\n\ +\n\ +You may use Provisioning Technology to allow other parties to install Installable Software.\n\ +You shall be responsible for enabling the applicable license agreements relating to the\n\ +Installable Software to be presented to, and accepted by, the users of the Provisioning Technology\n\ +in accordance with the Specification. By using Provisioning Technology in such a manner and\n\ +making it available in accordance with the Specification, you further acknowledge your\n\ +agreement to, and the acquisition of all necessary rights to permit the following:\n\ +\n\ + 1. A series of actions may occur ("Provisioning Process") in which a user may execute\n\ + the Provisioning Technology on a machine ("Target Machine") with the intent of installing,\n\ + extending or updating the functionality of an Eclipse-based product.\n\ + 2. During the Provisioning Process, the Provisioning Technology may cause third party\n\ + Installable Software or a portion thereof to be accessed and copied to the Target Machine.\n\ + 3. Pursuant to the Specification, you will provide to the user the terms and conditions that\n\ + govern the use of the Installable Software ("Installable Software Agreement") and such\n\ + Installable Software Agreement shall be accessed from the Target Machine in accordance\n\ + with the Specification. Such Installable Software Agreement must inform the user of the\n\ + terms and conditions that govern the Installable Software and must solicit acceptance by\n\ + the end user in the manner prescribed in such Installable Software Agreement. Upon such\n\ + indication of agreement by the user, the provisioning Technology will complete installation\n\ + of the Installable Software.\n\ +\n\ +Cryptography\n\ +\n\ +Content may contain encryption software. The country in which you are\n\ +currently may have restrictions on the import, possession, and use,\n\ +and/or re-export to another country, of encryption software. BEFORE\n\ +using any encryption software, please check the country's laws,\n\ +regulations and policies concerning the import, possession, or use, and\n\ +re-export of encryption software, to see if this is permitted.\n\ +\n\ +Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.\n +########### end of license property ########################################## diff --git a/deprecated/org.eclipse.papyrus.sysml.table.feature/feature.xml b/deprecated/org.eclipse.papyrus.sysml.table.feature/feature.xml new file mode 100644 index 00000000000..2b536b87660 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.feature/feature.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?><feature id="org.eclipse.papyrus.sysml.table.feature" label="%featureName" provider-name="%providerName" version="1.0.0.qualifier">
+
+ <copyright url="http://www.eclipse.org/legal/epl-v10.html">
+ Copyright (c) 2012 CEA LIST.
+All rights reserved. This program and the accompanying materials
+are made available under the terms of the Eclipse Public License
+v1.0
+which accompanies this distribution, and is available at
+http://www.eclipse.org/legal/epl-v10.html
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin download-size="0" id="org.eclipse.papyrus.sysml.table.allocation" install-size="0" unpack="false" version="0.0.0"/>
+
+ <plugin download-size="0" id="org.eclipse.papyrus.sysml.table.requirement" install-size="0" unpack="false" version="0.0.0"/>
+
+</feature>
\ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.sysml.table.feature/license.html b/deprecated/org.eclipse.papyrus.sysml.table.feature/license.html new file mode 100644 index 00000000000..f19c483b9c8 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.feature/license.html @@ -0,0 +1,108 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> +<title>Eclipse Foundation Software User Agreement</title> +</head> + +<body lang="EN-US"> +<h2>Eclipse Foundation Software User Agreement</h2> +<p>February 1, 2011</p> + +<h3>Usage Of Content</h3> + +<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS + (COLLECTIVELY "CONTENT"). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND + CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE + OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR + NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND + CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p> + +<h3>Applicable Licenses</h3> + +<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0 + ("EPL"). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>. + For purposes of the EPL, "Program" will mean the Content.</p> + +<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code + repository ("Repository") in software modules ("Modules") and made available as downloadable archives ("Downloads").</p> + +<ul> + <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"), plug-in fragments ("Fragments"), and features ("Features").</li> + <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java™ ARchive) in a directory named "plugins".</li> + <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named "features". Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of the Plug-ins + and/or Fragments associated with that Feature.</li> + <li>Features may also include other Features ("Included Features"). Within a Feature, files named "feature.xml" may contain a list of the names and version numbers of Included Features.</li> +</ul> + +<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named "about.html" ("Abouts"). The terms and conditions governing Features and +Included Features should be contained in files named "license.html" ("Feature Licenses"). Abouts and Feature Licenses may be located in any directory of a Download or Module +including, but not limited to the following locations:</p> + +<ul> + <li>The top-level (root) directory</li> + <li>Plug-in and Fragment directories</li> + <li>Inside Plug-ins and Fragments packaged as JARs</li> + <li>Sub-directories of the directory named "src" of certain Plug-ins</li> + <li>Feature directories</li> +</ul> + +<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license ("Feature Update License") during the +installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or +inform you where you can locate them. Feature Update Licenses may be found in the "license" property of files named "feature.properties" found within a Feature. +Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in +that directory.</p> + +<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE +OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p> + +<ul> + <li>Eclipse Distribution License Version 1.0 (available at <a href="http://www.eclipse.org/licenses/edl-v10.html">http://www.eclipse.org/licenses/edl-v1.0.html</a>)</li> + <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li> + <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li> + <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li> + <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li> + <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li> +</ul> + +<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please +contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p> + + +<h3>Use of Provisioning Technology</h3> + +<p>The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse + Update Manager ("Provisioning Technology") for the purpose of allowing users to install software, documentation, information and/or + other materials (collectively "Installable Software"). This capability is provided with the intent of allowing such users to + install, extend and update Eclipse-based products. Information about packaging Installable Software is available at <a + href="http://eclipse.org/equinox/p2/repository_packaging.html">http://eclipse.org/equinox/p2/repository_packaging.html</a> + ("Specification").</p> + +<p>You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the + applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology + in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the + Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:</p> + +<ol> + <li>A series of actions may occur ("Provisioning Process") in which a user may execute the Provisioning Technology + on a machine ("Target Machine") with the intent of installing, extending or updating the functionality of an Eclipse-based + product.</li> + <li>During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be + accessed and copied to the Target Machine.</li> + <li>Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable + Software ("Installable Software Agreement") and such Installable Software Agreement shall be accessed from the Target + Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern + the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such + indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.</li> +</ol> + +<h3>Cryptography</h3> + +<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to + another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import, + possession, or use, and re-export of encryption software, to see if this is permitted.</p> + +<p><small>Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.</small></p> +</body> +</html> diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/.classpath b/deprecated/org.eclipse.papyrus.sysml.table.requirement/.classpath new file mode 100644 index 00000000000..45f024e850e --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/.project b/deprecated/org.eclipse.papyrus.sysml.table.requirement/.project new file mode 100644 index 00000000000..606bd416f06 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/.project @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.sysml.table.requirement</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.emf.facet.common.ProjectNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/META-INF/MANIFEST.MF b/deprecated/org.eclipse.papyrus.sysml.table.requirement/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..cbfc076b4a9 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/META-INF/MANIFEST.MF @@ -0,0 +1,36 @@ +Manifest-Version: 1.0
+Require-Bundle: org.eclipse.emf.facet.widgets.nattable.instance,
+ org.eclipse.emf.facet.infra.query.core,
+ org.eclipse.papyrus.infra.services.edit;bundle-version="1.0.0",
+ org.eclipse.papyrus.sysml.service.types;bundle-version="1.0.0",
+ org.eclipse.papyrus.infra.table.common;bundle-version="1.0.0",
+ org.eclipse.core.expressions,
+ org.eclipse.emf.facet.infra.common.core;bundle-version="0.1.0",
+ org.eclipse.papyrus.infra.table.instance;bundle-version="1.0.0",
+ org.eclipse.emf.facet.widgets.nattable;bundle-version="0.1.0",
+ org.eclipse.emf.facet.infra.browser.custom.core,
+ org.eclipse.papyrus.sysml;bundle-version="1.0.0",
+ org.eclipse.core.runtime;bundle-version="3.8.0",
+ org.eclipse.emf.edit;bundle-version="2.8.0",
+ org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0",
+ org.eclipse.papyrus.infra.core;bundle-version="1.0.0",
+ org.eclipse.ui,
+ org.eclipse.papyrus.infra.core.sasheditor;bundle-version="1.0.0",
+ org.eclipse.papyrus.infra.gmfdiag.commands;bundle-version="1.0.0",
+ org.eclipse.uml2.uml;bundle-version="4.0.0",
+ org.eclipse.papyrus.uml.table.common;bundle-version="1.0.0",
+ org.eclipse.papyrus.infra.table.papyrustableconfiguration.metamodel;bundle-version="1.0.0"
+Bundle-Vendor: %providerName
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .,
+ bin
+Bundle-Version: 1.0.0.qualifier
+Bundle-Localization: plugin
+Bundle-Name: %pluginName
+Bundle-Activator: org.eclipse.papyrus.sysml.table.requirement.Activato
+ r
+Bundle-ManifestVersion: 2
+Bundle-SymbolicName: org.eclipse.papyrus.sysml.table.requirement;singl
+ eton:=true
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/about.html b/deprecated/org.eclipse.papyrus.sysml.table.requirement/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/build.properties b/deprecated/org.eclipse.papyrus.sysml.table.requirement/build.properties new file mode 100644 index 00000000000..e164411e90e --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/build.properties @@ -0,0 +1,7 @@ +#
+#Mon Sep 12 09:30:17 CEST 2011
+bin.includes=META-INF/,.,plugin.properties,icons/,about.html,resources/,plugin.xml
+output..=bin/
+src.includes = about.html
+source..=src/
+bin..=bin/
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.gif b/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.gif Binary files differnew file mode 100644 index 00000000000..426869ed0ff --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.gif diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.png b/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.png Binary files differnew file mode 100644 index 00000000000..c671f9e6440 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.png diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.gif b/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.gif Binary files differnew file mode 100644 index 00000000000..15a4cd2889b --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.gif diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.png b/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.png Binary files differnew file mode 100644 index 00000000000..b074f330444 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.png diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.properties b/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.properties new file mode 100644 index 00000000000..131c3128599 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.properties @@ -0,0 +1,3 @@ +#Properties file for org.eclipse.papyrus.sysml.table.requirement
+providerName = Eclipse Modeling Project
+pluginName = Papyrus Table Editor For Requirements (Incubation)
\ No newline at end of file diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.xml b/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.xml new file mode 100644 index 00000000000..5a65f35aa77 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<?eclipse version="3.4"?>
+
+<plugin>
+ <extension point="org.eclipse.papyrus.infra.core.papyrusDiagram">
+ <editorDiagram factoryClass="org.eclipse.papyrus.sysml.table.requirement.CreateRequirementTableFactory" icon="icons/table_SysML_Requirement.gif">
+ </editorDiagram>
+ </extension>
+ <!--extension point="org.eclipse.ui.menus">
+ <menuContribution allPopups="false" locationURI="toolbar:org.eclipse.papyrus.table.ui.toolbar">
+ <command commandId="org.eclipse.papyrus.sysml.table.requirement.create.table.command" icon="icons/table_SysML_Requirement.gif" style="push" tooltip="Create a New SysML Requirement Table">
+ <visibleWhen>
+ <reference
+ definitionId="org.eclipse.papyrus.sysml.diagram.common.IsPapyrusActiveWithSysML">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ <menuContribution allPopups="false" locationURI="popup:org.eclipse.papyrus.views.modelexplorer.popupmenu.createtable">
+ <command commandId="org.eclipse.papyrus.sysml.table.requirement.create.table.command" icon="icons/table_SysML_Requirement.gif" style="push" tooltip="Create a New SysML Requirement Table">
+ <visibleWhen>
+ <reference
+ definitionId="org.eclipse.papyrus.sysml.diagram.common.IsPapyrusActiveWithSysML">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ <menuContribution allPopups="false" locationURI="menu:org.eclipse.papyrus.table.ui.menu.tables">
+ <command commandId="org.eclipse.papyrus.sysml.table.requirement.create.table.command" icon="icons/table_SysML_Requirement.gif" style="push" tooltip="Create a New SysML Requirement Table">
+ <visibleWhen>
+ <reference
+ definitionId="org.eclipse.papyrus.sysml.diagram.common.IsPapyrusActiveWithSysML">
+ </reference>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+ </extension>
+ <extension point="org.eclipse.ui.commands">
+ <command categoryId="org.eclipse.papyrus.editor.category" description="Create a new SysML Requirement Table" id="org.eclipse.papyrus.sysml.table.requirement.create.table.command" name="SysML Requirement Table">
+ </command>
+ </extension>
+ <extension point="org.eclipse.ui.handlers">
+ <handler class="org.eclipse.papyrus.sysml.table.requirement.CreateRequirementTableCommand" commandId="org.eclipse.papyrus.sysml.table.requirement.create.table.command">
+ <activeWhen>
+ <and>
+ <with variable="selection">
+ <test forcePluginActivation="true" property="org.eclipse.papyrus.sysml.table.requirement.tester.isAppliedRequirements" value="true">
+ </test>
+ </with>
+ </and>
+ </activeWhen>
+ </handler>
+ </extension-->
+ <extension point="org.eclipse.core.expressions.propertyTesters">
+ <propertyTester class="org.eclipse.papyrus.sysml.table.requirement.tester.RequirementPropertyTester" id="org.eclipse.papyrus.sysml.table.requirement.tester" namespace="org.eclipse.papyrus.sysml.table.requirement.tester" properties="isAppliedRequirements" type="org.eclipse.jface.viewers.IStructuredSelection">
+ </propertyTester>
+ </extension>
+ <extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
+ <browserCustomization file="resources/table_UML_Class_hideAllClassFeatures.uiCustom">
+ </browserCustomization>
+ </extension>
+ <extension point="org.eclipse.emf.facet.infra.query.registration">
+ <modelqueryset file="resources/requirementsTable.querySet"/>
+ </extension>
+</plugin>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirement.papyrustableconfiguration b/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirement.papyrustableconfiguration new file mode 100644 index 00000000000..c34e1141683 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirement.papyrustableconfiguration @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<PapyrusTableConfiguration:PapyrusTableConfiguration
+ xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:PapyrusTableConfiguration="http://www.eclipse.org/PapyrusTableInstance/0.9.1/papyrustableconfiguration"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:profilefacet="http://www.eclipse.org/papyrus/0.9/profilefacet"
+ xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation"
+ pastedElementId="org.eclipse.papyrus.sysml.Requirement">
+ <pastedElementContainmentFeature
+ href="http://www.eclipse.org/uml2/4.0.0/UML#//Package/packagedElement" />
+ <TableConfiguration>
+ <canBePresentedInTheTable xsi:type="query:JavaModelQuery"
+ href="emffacet:/query/requirementsTable#IsRequirement" />
+ <instantiationMethod name="Create Requirement"
+ description="This method creates a new Class stereotyped with requirement">
+ <instantiationQuery xsi:type="query:JavaModelQuery"
+ href="emffacet:/query/requirementsTable#CreateRequirements" />
+ </instantiationMethod>
+ <defaultLocalCustomizations
+ href="emffacet:/customization/table_UML_Class_hideAllClassFeatures#/" />
+ <defaultLocalCustomizations
+ href="emffacet:/customization/table_Ecore_hideEAnnotationFeature#/" />
+ </TableConfiguration>
+ <defaultColumns xsi:type="ecore:EAttribute"
+ href="http://www.eclipse.org/uml2/4.0.0/UML#//NamedElement/name" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetAttribute"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/text" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetAttribute"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/id" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetReference"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/derived" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetAttribute"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/derivedFrom" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetReference"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/satisfiedBy" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetReference"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/refinedBy" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetReference"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/tracedTo" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetReference"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/verifiedBy" />
+ <defaultColumns xsi:type="profilefacet:StereotypePropertyFacetReference"
+ href="platform:/plugin/org.eclipse.papyrus.sysml.facets/resources/sysml_profilefacet.facetSet#//Requirements/Requirement/master" />
+</PapyrusTableConfiguration:PapyrusTableConfiguration>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirements.tableconfiguration2 b/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirements.tableconfiguration2 new file mode 100644 index 00000000000..e3895e3f7c7 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirements.tableconfiguration2 @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<tableconfiguration2:TableConfiguration2 xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" xmlns:tableconfiguration2="http://www.eclipse.org/EMF_Facet/Table/0.1.0/tableconfiguration2">
+ <defaultCustomizations href="emffacet:/customization/SysMLDefaultExplorerCustomization#/"/>
+ <canBePresentedInTheTable xsi:type="query:JavaModelQuery" href="emffacet:/query/requirementsTable#IsRequirement"/>
+ <defaultFacets href="emffacet:/facet/requirementsFacets#//Requirement"/>
+ <instantiationMethod name="Create Requirement" description="This method creates a new Class stereotyped with requirement">
+ <instantiationQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/requirementsTable#CreateRequirements"/>
+ </instantiationMethod>
+ <defaultLocalCustomizations href="emffacet:/customization/table_Ecore_hideEAnnotationFeature#/"/>
+ <defaultLocalCustomizations href="emffacet:/customization/table_UML_Class_hideAllClassFeatures#/"/>
+</tableconfiguration2:TableConfiguration2>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirementsTable.querySet b/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirementsTable.querySet new file mode 100644 index 00000000000..9bf233e3d56 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirementsTable.querySet @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="ASCII"?>
+<query:ModelQuerySet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="requirementsTable" description="This query set is used by the requirements table">
+ <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/UML#/"/>
+ <associatedMetamodels href="http://www.eclipse.org/emf/2002/Ecore#/"/>
+ <associatedMetamodels href="http://www.eclipse.org/uml2/4.0.0/Types#/"/>
+ <queries xsi:type="query:JavaModelQuery" name="CreateRequirements" description="This query creates a new Class stereotyped Requirement" implementationClassName="org.eclipse.papyrus.sysml.table.requirement.queries.CreateRequirement">
+ <returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/4.0.0/UML#//Class"/>
+ <scope href="http://www.eclipse.org/uml2/4.0.0/UML#//Package"/>
+ </queries>
+ <queries xsi:type="query:JavaModelQuery" name="IsRequirement" description="This query test if the EObject is a class stereotyped with requirement" lowerBound="1" implementationClassName="org.eclipse.papyrus.sysml.table.requirement.queries.IsRequirement">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/4.0.0/Types#//Boolean"/>
+ <scope href="http://www.eclipse.org/emf/2002/Ecore#//EObject"/>
+ </queries>
+</query:ModelQuerySet>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/table_UML_Class_hideAllClassFeatures.uiCustom b/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/table_UML_Class_hideAllClassFeatures.uiCustom new file mode 100644 index 00000000000..2c4fc5c4e33 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/table_UML_Class_hideAllClassFeatures.uiCustom @@ -0,0 +1,282 @@ +<?xml version="1.0" encoding="ASCII"?>
+<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="http://www.eclipse.org/uml2/4.0.0/UML" allQuerySetsAvailable="false">
+ <types metaclassName="uml.Element">
+ <references referenceName="ownedElement">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="owner">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedComment">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.NamedElement">
+ <attributes attributeName="visibility">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <attributes attributeName="qualifiedName">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <references referenceName="clientDependency">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="namespace">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="nameExpression">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.Namespace">
+ <references referenceName="elementImport">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="packageImport">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedRule">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="member">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="importedMember">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedMember">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.RedefinableElement">
+ <attributes attributeName="isLeaf">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <references referenceName="redefinedElement">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="redefinitionContext">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.ParameterableElement">
+ <references referenceName="owningTemplateParameter">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="templateParameter">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.Type">
+ <references referenceName="package">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.TemplateableElement">
+ <references referenceName="templateBinding">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedTemplateSignature">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.Classifier">
+ <attributes attributeName="isAbstract">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <attributes attributeName="isFinalSpecialization">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <references referenceName="generalization">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="powertypeExtent">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="feature">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="inheritedMember">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="redefinedClassifier">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="general">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="substitution">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="attribute">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="representation">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="collaborationUse">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedUseCase">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="useCase">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.StructuredClassifier">
+ <references referenceName="ownedAttribute">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="part">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="role">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedConnector">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.EncapsulatedClassifier">
+ <references referenceName="ownedPort">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.BehavioredClassifier">
+ <references referenceName="ownedBehavior">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="classifierBehavior">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="interfaceRealization">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedTrigger">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+ <types metaclassName="uml.Class">
+ <attributes attributeName="isActive">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </attributes>
+ <references referenceName="nestedClassifier">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedOperation">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="superClass">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="ownedReception">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ <references referenceName="extension">
+ <customizedFeatures>
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="false"/>
+ </customizedFeatures>
+ </references>
+ </types>
+</uicustom:MetamodelView>
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/Activator.java b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/Activator.java new file mode 100644 index 00000000000..bf6ad48cd11 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/Activator.java @@ -0,0 +1,48 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.table.requirement; + +import org.eclipse.core.runtime.Plugin; +import org.osgi.framework.BundleContext; + +/** The activator class controls the plug-in life cycle */ +public class Activator extends Plugin { + + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.papyrus.sysml.table.requirement"; //$NON-NLS-1$ + + // The shared instance + private static Activator plugin; + + @Override + public void start(final BundleContext context) throws Exception { + super.start(context); + Activator.plugin = this; + } + + @Override + public void stop(final BundleContext context) throws Exception { + Activator.plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return Activator.plugin; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableCommand.java b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableCommand.java new file mode 100644 index 00000000000..32ca56a1bc5 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableCommand.java @@ -0,0 +1,93 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.requirement;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.common.util.URI;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.emf.ecore.resource.ResourceSet;
+import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
+import org.eclipse.emf.facet.widgets.nattable.internal.Messages;
+import org.eclipse.emf.facet.widgets.nattable.tableconfiguration2.TableConfiguration2;
+import org.eclipse.papyrus.infra.table.common.handlers.AbstractCreateNattableEditorCommand;
+import org.eclipse.papyrus.infra.table.papyrustableconfiguration.metamodel.PapyrusTableConfiguration.PapyrusTableConfiguration;
+import org.eclipse.papyrus.sysml.table.requirement.editor.RequirementTableEditor;
+import org.eclipse.papyrus.sysml.util.SysmlResource;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Package;
+
+
+
+/**
+ * The command to create the Requirement Table
+ *
+ *
+ *
+ */
+public class CreateRequirementTableCommand extends AbstractCreateNattableEditorCommand {
+
+ /**
+ *
+ * Constructor.
+ *
+ */
+ public CreateRequirementTableCommand() {
+ super(RequirementTableEditor.EDITOR_TYPE, RequirementTableEditor.DEFAULT_NAME);
+ }
+
+ @Override
+ protected PapyrusTableConfiguration getPapyrusTableConfiguration() {
+ ResourceSet resourceSet = new ResourceSetImpl();
+
+ String symbolicName = org.eclipse.papyrus.sysml.table.requirement.Activator.getDefault().getBundle().getSymbolicName();
+ URI uri = URI.createPlatformPluginURI(symbolicName + "/resources/requirement.papyrustableconfiguration", true); //$NON-NLS-1$
+ Resource resource = resourceSet.getResource(uri, true);
+
+ PapyrusTableConfiguration tableConfiguration = null;
+ if(resource.getContents().get(0) instanceof PapyrusTableConfiguration) {
+ tableConfiguration = (PapyrusTableConfiguration)resource.getContents().get(0);
+ return tableConfiguration;
+ }
+ return null;
+ }
+ /**
+ *
+ * @see org.eclipse.papyrus.infra.table.common.handlers.AbstractCreateNattableEditorCommand#isEnabled()
+ *
+ * @return
+ */
+ @Override
+ public boolean isEnabled() {
+ EObject object = getTableContext();
+ if(object instanceof Element) {
+ Element el = (Element)object;
+ Package pack = el.getNearestPackage();
+ //we can create an Allocation Table only when the profile is applied
+ return pack.getAppliedProfile(SysmlResource.REQUIREMENTS_ID, true) != null;
+ }
+ return false;
+ }
+
+ @Override
+ protected List<String> getHiddenColumnName() {
+ List<String> hiddenColumns = new ArrayList<String>();
+ hiddenColumns.add(Messages.NatTableWidget_metaclass);
+ //TODO should be externalized, currently not externalized in EMF-Facet
+ hiddenColumns.add("/eContainer"); //$NON-NLS-1$
+ return hiddenColumns;
+ }
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableFactory.java b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableFactory.java new file mode 100644 index 00000000000..3836797e135 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableFactory.java @@ -0,0 +1,29 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.requirement;
+
+import org.eclipse.papyrus.sysml.table.requirement.editor.RequirementTableEditor;
+
+public class CreateRequirementTableFactory extends org.eclipse.papyrus.infra.table.common.factory.AbstractNattableEditorFactory {
+
+ /**
+ * Constructor.
+ *
+ * @param diagramClass
+ * @param expectedType
+ */
+ public CreateRequirementTableFactory() {
+ super(RequirementTableEditor.class, RequirementTableEditor.EDITOR_TYPE);
+ }
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/editor/RequirementTableEditor.java b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/editor/RequirementTableEditor.java new file mode 100644 index 00000000000..4340942dde7 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/editor/RequirementTableEditor.java @@ -0,0 +1,46 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.requirement.editor;
+
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.infra.table.common.editor.AbstractNattableEditor;
+import org.eclipse.papyrus.infra.table.instance.papyrustableinstance.PapyrusTableInstance;
+import org.eclipse.papyrus.uml.table.common.editor.AbstractUMLTableEditor;
+
+
+
+
+/**
+ *
+ * The requirement table editor
+ *
+ */
+public class RequirementTableEditor extends AbstractUMLTableEditor {
+
+
+ /** the type of the editor */
+ public static final String EDITOR_TYPE = "PapyrusRequirementTable"; //$NON-NLS-1$
+
+ /** the default name */
+ public static final String DEFAULT_NAME = "RequirementTable"; //$NON-NLS-1$
+
+ /**
+ * @param servicesRegistry
+ * @param rawModel2
+ *
+ */
+ public RequirementTableEditor(final ServicesRegistry servicesRegistry, final PapyrusTableInstance rawModel) {
+ super(servicesRegistry, rawModel);
+ }
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/CreateRequirement.java b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/CreateRequirement.java new file mode 100644 index 00000000000..12e2dcceb5a --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/CreateRequirement.java @@ -0,0 +1,69 @@ +/***************************************************************************** + * Copyright (c) 2011 CEA LIST. + * + * + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.sysml.table.requirement.queries; + +import org.eclipse.emf.edit.domain.EditingDomain; +import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException; +import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery; +import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList; +import org.eclipse.emf.facet.infra.query.runtime.ModelQueryParameterValue; +import org.eclipse.emf.facet.widgets.nattable.tableconfiguration.InstantiationMethodParameters; +import org.eclipse.gmf.runtime.common.core.command.ICommand; +import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest; +import org.eclipse.papyrus.commands.wrappers.GMFtoEMFCommandWrapper; +import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils; +import org.eclipse.papyrus.infra.services.edit.service.IElementEditService; +import org.eclipse.papyrus.sysml.service.types.element.SysMLElementTypes; +import org.eclipse.uml2.uml.Package; + +/** a query which creates a new requirement and associates it with its parent (contained by the scope) */ +public class CreateRequirement implements IJavaModelQuery<Package, org.eclipse.uml2.uml.Class> { + + /** + * + * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject, + * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList) + * + * @param context + * @param parameterValues + * @return + * @throws ModelQueryExecutionException + */ + public org.eclipse.uml2.uml.Class evaluate(final Package context, final ParameterValueList parameterValues) throws ModelQueryExecutionException { + EditingDomain editingDomain = null; + ModelQueryParameterValue model = parameterValues.getParameterValueByName(InstantiationMethodParameters.getEditingDomainParameter().getName()); + if(model != null) { + if(model.getValue() instanceof EditingDomain) { + editingDomain = (EditingDomain)model.getValue(); + } + } + if(editingDomain != null) { + if(context != null) { + + IElementEditService provider = ElementEditServiceUtils.getCommandProvider(context); + + CreateElementRequest createRequest = new CreateElementRequest(context, SysMLElementTypes.REQUIREMENT); + ICommand createGMFCommand = provider.getEditCommand(createRequest); + + editingDomain.getCommandStack().execute(new GMFtoEMFCommandWrapper(createGMFCommand)); + if(createGMFCommand.getCommandResult() != null) {//it's null, when the model is not a SysML model + Object returnedValue = createGMFCommand.getCommandResult().getReturnValue(); + return (org.eclipse.uml2.uml.Class)returnedValue; + } + + } + } + return null; + } +} diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/IsRequirement.java b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/IsRequirement.java new file mode 100644 index 00000000000..895bb06a4f4 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/IsRequirement.java @@ -0,0 +1,51 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.requirement.queries;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
+import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
+import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
+import org.eclipse.papyrus.sysml.util.SysmlResource;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Stereotype;
+
+/**
+ * Test if the eobject is a Requirement
+ *
+ *
+ *
+ */
+public class IsRequirement implements IJavaModelQuery<EObject, Boolean> {
+
+ /**
+ *
+ * @see org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery#evaluate(org.eclipse.emf.ecore.EObject,
+ * org.eclipse.emf.facet.infra.query.core.java.ParameterValueList)
+ *
+ * @param context
+ * @param parameterValues
+ * @return
+ * @throws ModelQueryExecutionException
+ */
+ public Boolean evaluate(final EObject context, final ParameterValueList parameterValues) throws ModelQueryExecutionException {
+
+ if(context instanceof Classifier) {
+ Classifier classifier = (Classifier)context;
+ Stereotype ste = classifier.getAppliedStereotype(SysmlResource.REQUIREMENT_ID);
+ return ste != null ? Boolean.TRUE : Boolean.FALSE;
+ }
+ return Boolean.FALSE;
+ }
+}
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/tester/RequirementPropertyTester.java b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/tester/RequirementPropertyTester.java new file mode 100644 index 00000000000..b60ac2ac388 --- /dev/null +++ b/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/tester/RequirementPropertyTester.java @@ -0,0 +1,56 @@ +/*****************************************************************************
+ * Copyright (c) 2011 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sysml.table.requirement.tester;
+
+import org.eclipse.core.expressions.PropertyTester;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.sysml.table.requirement.CreateRequirementTableCommand;
+
+
+public class RequirementPropertyTester extends PropertyTester {
+
+ /**
+ * the property to test
+ */
+ public static final String IS_APPLIED_REQUIREMENTS = "isAppliedRequirements"; //$NON-NLS-1$
+
+ /**
+ *
+ * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
+ *
+ * @param receiver
+ * @param property
+ * @param args
+ * @param expectedValue
+ * @return
+ */
+ public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
+ if(IS_APPLIED_REQUIREMENTS.equals(property) && receiver instanceof IStructuredSelection) {
+ boolean currentValue = testIsAppliedRequirements((IStructuredSelection)receiver);
+ return (new Boolean(currentValue).equals(expectedValue));
+ }
+ return false;
+ }
+
+ /**
+ * returns <code>true</code> if the first selected element is inside a package where the profile SysML::Allocations is applied
+ *
+ * @param selection
+ * @return
+ */
+ private boolean testIsAppliedRequirements(IStructuredSelection selection) {
+ CreateRequirementTableCommand handler = new CreateRequirementTableCommand();
+ return handler.isEnabled();
+ }
+}
|