Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources')
-rwxr-xr-xplugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration19
-rwxr-xr-xplugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagramPalette.xml132
2 files changed, 151 insertions, 0 deletions
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration
new file mode 100755
index 00000000000..5f975257958
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/configuration/RequirementDiagram.configuration
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<configuration:PapyrusConfiguration xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:configuration="http://www.eclipse.org/papyrus/infra/viewpoints/configuration" xmi:id="_ko07IErbEeSdQKzSRatBjg">
+ <viewpoints xsi:type="configuration:PapyrusViewpoint" xmi:id="_xogdoErbEeSdQKzSRatBjg" name="Default Papyrus Viewpoint">
+ <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_ZrBf4JaBEeS8eNvSwD0lgA" name="SysML 1.4 Requirement" icon="platform:/plugin/org.eclipse.papyrus.sysml.diagram.requirement/icons/obj16/Diagram_Requirement.gif" implementationID="PapyrusUMLClassDiagram" customPalette="platform:/plugin/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagramPalette.xml">
+ <profiles href="http://www.eclipse.org/papyrus/0.7.0/SysML#//requirements"/>
+ <modelRules xmi:id="_ZrBf4ZaBEeS8eNvSwD0lgA">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </modelRules>
+ <owningRules xmi:id="_ZrBf45aBEeS8eNvSwD0lgA">
+ <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/>
+ </owningRules>
+ <categories href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wNb49xhEeOqHvRyiN87hA"/>
+ <childRules xmi:id="_ZrBf5ZaBEeS8eNvSwD0lgA"/>
+ <paletteRules xmi:id="_QdpyAKJhEeS3RsrRENQYiQ" permit="false" element="clazz.group.*"/>
+ </modelKinds>
+ </viewpoints>
+ <defaultStakeholder href="platform:/plugin/org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration#_7wLmkdxhEeOqHvRyiN87hA"/>
+ <metamodel href="http://www.eclipse.org/uml2/5.0.0/UML#/"/>
+</configuration:PapyrusConfiguration>
diff --git a/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagramPalette.xml b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagramPalette.xml
new file mode 100755
index 00000000000..7075f797dba
--- /dev/null
+++ b/plugins/sysml/sysml14/org.eclipse.papyrus.sysml14.diagram.requirement/resources/palette/requirementDiagramPalette.xml
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+ <paletteDefinition>
+ <content>
+ <drawer iconpath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" id="requirement.drawer.nodes" name="Nodes">
+
+ <aspectTool description="Create a new Package"
+ id="requirement.tool.package"
+ name="Package" refToolId="clazz.tool.package">
+ </aspectTool>
+
+ <aspectTool description="Create a new Requirement"
+ id="requirement.tool.class" name="Requirement"
+ refToolId="clazz.tool.class" iconpath="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Requirement.gif">
+ <postAction id="org.eclipse.papyrus.postaction.displayAppliedStereotypePropertiesInCompartmentactionprovider">
+ <propertiesToDisplay>
+ <propertyToDisplay name="SysML::Requirements::Requirement.id"/>
+ <propertyToDisplay name="SysML::Requirements::Requirement.text"/>
+ </propertiesToDisplay>
+ </postAction>
+
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="SysML::Requirements::Requirement"/>
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+
+ <aspectTool description="Create a new Problem"
+ id="requirement.tool.comment" name="Problem"
+ refToolId="clazz.tool.comment" iconpath="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Problem.gif">
+
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="SysML::ModelElements::Problem"/>
+ </stereotypesToApply>
+ </postAction>
+
+ </aspectTool>
+
+ <aspectTool description="Create a new Rationale"
+ id="requirement.tool.comment" name="Rationale"
+ refToolId="clazz.tool.comment" iconpath="platform:/plugin/org.eclipse.papyrus.sysml/icons/modelelements/Rationale.gif">
+
+ <postAction id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="SysML::ModelElements::Rationale"/>
+ </stereotypesToApply>
+ </postAction>
+
+ </aspectTool>
+
+ <aspectTool description="Create a new Comment" id="requirement.tool.comment"
+ name="Comment" refToolId="clazz.tool.comment">
+ </aspectTool>
+
+ <aspectTool description="Create a new Constraint" id="requirement.tool.constraint"
+ name="Constraint" refToolId="clazz.tool.constraint">
+ </aspectTool>
+
+ </drawer>
+
+ <drawer iconpath="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" id="requirement.drawer.edges" name="Edges">
+
+ <aspectTool description="Create a Copy Link"
+ id="requirement.tool.copy" name="Copy"
+ refToolId="clazz.tool.abstraction" iconpath="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Copy.gif">
+ <postAction
+ id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype stereotypeName="SysML::Requirements::Copy" />
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+ <aspectTool description="Create a new Dependency" id="requirement.tool.dependency"
+ name="Dependency" refToolId="clazz.tool.dependency">
+ </aspectTool>
+
+ <aspectTool description="Create a Derive Link"
+ id="requirement.tool.derive" name="Derive"
+ refToolId="clazz.tool.abstraction" iconpath="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/DeriveReqt.gif">
+ <postAction
+ id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype
+ stereotypeName="SysML::Requirements::DeriveReqt" />
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+
+ <aspectTool description="Create a Decompose Link"
+ id="requirement.tool.decompose" name="Decompose"
+ refToolId="clazz.tool.containmentlink"/>
+ <aspectTool description="Create a new PackageImport" id="requirement.tool.packageimport"
+ name="PackageImport" refToolId="clazz.tool.packageimport">
+ </aspectTool>
+ <aspectTool description="Create a new Realization" id="requirement.tool.realization"
+ name="Realization" refToolId="clazz.tool.realization">
+ </aspectTool>
+ <aspectTool description="Create a Satisfy Link"
+ id="requirement.tool.satisfy" name="Satisfy"
+ refToolId="clazz.tool.abstraction" iconpath="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Satisfy.gif">
+ <postAction
+ id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype
+ stereotypeName="SysML::Requirements::Satisfy" />
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+
+ <aspectTool description="Create a Verify Link"
+ id="requirement.tool.verify" name="Verify"
+ refToolId="clazz.tool.abstraction" iconpath="platform:/plugin/org.eclipse.papyrus.sysml/icons/requirements/Verify.gif">
+ <postAction
+ id="org.eclipse.papyrus.applystereotypeactionprovider">
+ <stereotypesToApply>
+ <stereotype
+ stereotypeName="SysML::Requirements::Verify" />
+ </stereotypesToApply>
+ </postAction>
+ </aspectTool>
+
+
+
+ <!-- Attention : The element is added manually, can combine the two links comment and constraint, and therefore is not deleted -->
+ <aspectTool description="Create a new Link" id="package.tool.link"
+ name="Link" refToolId="clazz.tool.link">
+ </aspectTool>
+
+ </drawer>
+ </content>
+</paletteDefinition> \ No newline at end of file

Back to the top