Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-04-04 14:13:46 +0000
committerLaurent Wouters2014-04-04 14:13:46 +0000
commitefc3089d4d6e0b194fc422076337b89a13698521 (patch)
tree73e9a35c230fd0e50c5b4e39c2c7506d50cce9eb
parent5c2957367f0ec14f3585aeeb0147b44f7eac286e (diff)
downloadorg.eclipse.papyrus-efc3089d4d6e0b194fc422076337b89a13698521.tar.gz
org.eclipse.papyrus-efc3089d4d6e0b194fc422076337b89a13698521.tar.xz
org.eclipse.papyrus-efc3089d4d6e0b194fc422076337b89a13698521.zip
[clean] Retiring org.eclipse.papyrus.sysml.table.requirementlast/org.eclipse.papyrus.sysml.table.requirement
Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/.classpath7
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/.project29
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/META-INF/MANIFEST.MF36
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/about.html28
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/build.properties7
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.gifbin899 -> 0 bytes
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.pngbin1262 -> 0 bytes
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.gifbin972 -> 0 bytes
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.pngbin1345 -> 0 bytes
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.properties3
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.xml65
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirement.papyrustableconfiguration43
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirements.tableconfiguration211
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirementsTable.querySet14
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/table_UML_Class_hideAllClassFeatures.uiCustom282
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/Activator.java48
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableCommand.java93
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableFactory.java29
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/editor/RequirementTableEditor.java46
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/CreateRequirement.java69
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/IsRequirement.java51
-rw-r--r--deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/tester/RequirementPropertyTester.java56
22 files changed, 0 insertions, 917 deletions
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/.classpath b/deprecated/org.eclipse.papyrus.sysml.table.requirement/.classpath
deleted file mode 100644
index 45f024e850e..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?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
deleted file mode 100644
index 606bd416f06..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/.project
+++ /dev/null
@@ -1,29 +0,0 @@
-<?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
deleted file mode 100644
index cbfc076b4a9..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,36 +0,0 @@
-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
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!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 (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). 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, &quot;Program&quot; 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 (&quot;Redistributor&quot;) 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
deleted file mode 100644
index e164411e90e..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/build.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-#
-#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
deleted file mode 100644
index 426869ed0ff..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.gif
+++ /dev/null
Binary files differ
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
deleted file mode 100644
index c671f9e6440..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_SysML_Requirement.png
+++ /dev/null
Binary files differ
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
deleted file mode 100644
index 15a4cd2889b..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.gif
+++ /dev/null
Binary files differ
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
deleted file mode 100644
index b074f330444..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/icons/table_requirement.png
+++ /dev/null
Binary files differ
diff --git a/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.properties b/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.properties
deleted file mode 100644
index 131c3128599..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.properties
+++ /dev/null
@@ -1,3 +0,0 @@
-#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
deleted file mode 100644
index 5a65f35aa77..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/plugin.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?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
deleted file mode 100644
index c34e1141683..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirement.papyrustableconfiguration
+++ /dev/null
@@ -1,43 +0,0 @@
-<?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
deleted file mode 100644
index e3895e3f7c7..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirements.tableconfiguration2
+++ /dev/null
@@ -1,11 +0,0 @@
-<?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
deleted file mode 100644
index 9bf233e3d56..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/requirementsTable.querySet
+++ /dev/null
@@ -1,14 +0,0 @@
-<?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
deleted file mode 100644
index 2c4fc5c4e33..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/resources/table_UML_Class_hideAllClassFeatures.uiCustom
+++ /dev/null
@@ -1,282 +0,0 @@
-<?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
deleted file mode 100644
index bf6ad48cd11..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/Activator.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*****************************************************************************
- * 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
deleted file mode 100644
index 32ca56a1bc5..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableCommand.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*****************************************************************************
- * 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
deleted file mode 100644
index 3836797e135..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/CreateRequirementTableFactory.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*****************************************************************************
- * 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
deleted file mode 100644
index 4340942dde7..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/editor/RequirementTableEditor.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*****************************************************************************
- * 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
deleted file mode 100644
index 12e2dcceb5a..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/CreateRequirement.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*****************************************************************************
- * 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
deleted file mode 100644
index 895bb06a4f4..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/queries/IsRequirement.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*****************************************************************************
- * 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
deleted file mode 100644
index b60ac2ac388..00000000000
--- a/deprecated/org.eclipse.papyrus.sysml.table.requirement/src/org/eclipse/papyrus/sysml/table/requirement/tester/RequirementPropertyTester.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*****************************************************************************
- * 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();
- }
-}

Back to the top