diff options
author | Remi Schnekenburger | 2015-02-18 09:57:34 +0000 |
---|---|---|
committer | Remi Schnekenburger | 2015-02-18 09:57:34 +0000 |
commit | e8dbeda3a3e85168593f7a5ef26bd47c8c33b868 (patch) | |
tree | 2d17a454fcd0f6795139c56d45c0206a5b3267f6 /extraplugins | |
parent | 5b9984cbdea5ced961a50c4f890b3d150a6fbc09 (diff) | |
download | org.eclipse.papyrus-e8dbeda3a3e85168593f7a5ef26bd47c8c33b868.tar.gz org.eclipse.papyrus-e8dbeda3a3e85168593f7a5ef26bd47c8c33b868.tar.xz org.eclipse.papyrus-e8dbeda3a3e85168593f7a5ef26bd47c8c33b868.zip |
Pushing first version of umlrt.ui plugin. All UI stuff should not be
associated to the profile plugin
Diffstat (limited to 'extraplugins')
13 files changed, 439 insertions, 0 deletions
diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.classpath b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.classpath new file mode 100644 index 00000000000..098194ca4b7 --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src"/> + <classpathentry kind="output" path="bin"/> +</classpath> diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.project b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.project new file mode 100644 index 00000000000..8e74afa4749 --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.project @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.eclipse.papyrus.umlrt.ui</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> + <buildCommand> + <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.pde.PluginNature</nature> + <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature> + </natures> +</projectDescription> diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.settings/org.eclipse.jdt.core.prefs b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..f42de363afa --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/META-INF/MANIFEST.MF b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..d36af141d1c --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/META-INF/MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: UML-RT UI plugin +Bundle-SymbolicName: org.eclipse.papyrus.umlrt.ui;singleton:=true +Bundle-Version: 1.1.0.qualifier +Bundle-Activator: org.eclipse.papyrus.umlrt.ui.Activator +Bundle-Vendor: Eclipse Modeling Project +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.papyrus.uml.diagram.common;bundle-version="1.1.0", + org.eclipse.papyrus.umlrt;bundle-version="1.1.0", + org.eclipse.papyrus.umlrt.elementtypes;bundle-version="1.1.0" +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-ActivationPolicy: lazy diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/about.html b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/about.html new file mode 100644 index 00000000000..dd3c089a94c --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/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>November 14, 2008</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>
\ No newline at end of file diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/build.properties b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/build.properties new file mode 100644 index 00000000000..38c682778c9 --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/build.properties @@ -0,0 +1,8 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + about.html,\ + configuration/,\ + palettes/,\ + plugin.xml diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/configuration/UMLRT.configuration b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/configuration/UMLRT.configuration new file mode 100644 index 00000000000..5fa2c7981ae --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/configuration/UMLRT.configuration @@ -0,0 +1,47 @@ +<?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="_oa8yUBP7EeSS0oyATXohNA" defaultStakeholder="_stSKMBP7EeSS0oyATXohNA"> + <stakeholders xmi:id="_stSKMBP7EeSS0oyATXohNA" name="MetaModeler" viewpoints="_3T-cEBP7EeSS0oyATXohNA"/> + <viewpoints xsi:type="configuration:PapyrusViewpoint" xmi:id="_3T-cEBP7EeSS0oyATXohNA" name="UMLRT Viewpoint"> + <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_Z79eQHcZEeSnWeKqQOfW2A" name="UML-RT Capsule Diagram" icon="platform:/plugin/org.eclipse.papyrus.uml.diagram.clazz/icons/obj16/Diagram_Class.gif" implementationID="CompositeStructure" categories="_vUL7ABP7EeSS0oyATXohNA" customPalette="" customStyle=""> + <modelRules xmi:id="_I9zbAHk9EeSk0Zv84QxXew"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/> + </modelRules> + <owningRules xmi:id="_85OAcHcbEeSvwMs-oU2KZg"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/> + </owningRules> + <owningRules xmi:id="_0YJbEHk7EeSk0Zv84QxXew"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/> + </owningRules> + <childRules xmi:id="_J1gfEHk9EeSk0Zv84QxXew"/> + <paletteRules xmi:id="_J1gfEXk9EeSk0Zv84QxXew" permit="false" element="clazz.group.*"/> + </modelKinds> + <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_76zNAHljEeStRMMIACKMpA" name="UML-RT Protocol Diagram" icon="platform:/plugin/org.eclipse.papyrus.uml.diagram.clazz/icons/obj16/Diagram_Class.gif" implementationID="PapyrusUMLClassDiagram" categories="_vUL7ABP7EeSS0oyATXohNA" customPalette="" customStyle=""> + <modelRules xmi:id="_76zNAXljEeStRMMIACKMpA"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/> + </modelRules> + <owningRules xmi:id="_76zNAnljEeStRMMIACKMpA"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/> + </owningRules> + <owningRules xmi:id="_76zNA3ljEeStRMMIACKMpA"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/> + </owningRules> + <childRules xmi:id="_76zNBHljEeStRMMIACKMpA"/> + <paletteRules xmi:id="_76zNBXljEeStRMMIACKMpA" permit="false" element="clazz.group.*"/> + </modelKinds> + <modelKinds xsi:type="configuration:PapyrusDiagram" xmi:id="_z7jvYHowEeShz4kBD-O00g" name="UML-RT StateMachine Diagram" icon="platform:/plugin/org.eclipse.papyrus.uml.diagram.clazz/icons/obj16/Diagram_Class.gif" implementationID="PapyrusUMLStateMachineDiagram" categories="_vUL7ABP7EeSS0oyATXohNA" customPalette="" customStyle=""> + <modelRules xmi:id="_z7jvYXowEeShz4kBD-O00g"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Package"/> + </modelRules> + <owningRules xmi:id="_z7jvYnowEeShz4kBD-O00g"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Element"/> + </owningRules> + <owningRules xmi:id="_z7jvY3owEeShz4kBD-O00g"> + <element href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/> + </owningRules> + <childRules xmi:id="_z7jvZHowEeShz4kBD-O00g"/> + <paletteRules xmi:id="_z7jvZXowEeShz4kBD-O00g" permit="false" element="clazz.group.*"/> + </modelKinds> + </viewpoints> + <metamodel href="http://www.eclipse.org/uml2/5.0.0/UML#/"/> + <categories xmi:id="_vUL7ABP7EeSS0oyATXohNA" name="uml"/> +</configuration:PapyrusConfiguration> diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.CapsuleDiagram.Palette.xml b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.CapsuleDiagram.Palette.xml new file mode 100644 index 00000000000..75e2dca7bfa --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.CapsuleDiagram.Palette.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<paletteDefinition> + <content> + <drawer iconpath="/icons/drawer.gif" id="Drawer__1417096439749" + name="UML-RT"> + <aspectTool description="Create a Capsule" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Class.gif" + id="composite.tool.class_1417096476020" name="Capsule" + refToolId="composite.tool.class"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::Capsule" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create a CapsulePart" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Property.gif" + id="composite.tool.property_1417096489619" name="CapsulePart" + refToolId="composite.tool.property"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::CapsulePart" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an RTConnector" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Connector.gif" + id="composite.tool.connector_1417096565130" name="RTConnector" + refToolId="composite.tool.connector"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::RTConnector" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an RTPort" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Port.gif" + id="composite.tool.port_1417096575355" name="RTPort" + refToolId="composite.tool.port"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::RTPort" /> + </stereotypesToApply> + </postAction> + </aspectTool> + </drawer> + </content> +</paletteDefinition>
\ No newline at end of file diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.ProtocolDiagram.Palette.xml b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.ProtocolDiagram.Palette.xml new file mode 100644 index 00000000000..f0cdba2174b --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.ProtocolDiagram.Palette.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<paletteDefinition> + <content> + <drawer iconpath="/icons/drawer.gif" id="Drawer__1416993599968" + name="UML-RT"> + <aspectTool description="Create a ProtocolContainer" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif" + id="clazz.tool.package_1416993803624" name="ProtocolContainer" + refToolId="clazz.tool.package"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::ProtocolContainer" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create a Protocol" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Collaboration.gif" + id="composite.tool.collaboration_1417096522723" name="Protocol" + refToolId="composite.tool.collaboration"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::Protocol" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an RTMessageSet" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Interface.gif" + id="clazz.tool.interface_1416994043249" name="RTMessageSet" + refToolId="clazz.tool.interface"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::RTMessageSet" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an RTTrigger" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Operation.gif" + id="clazz.tool.operation_1416994043249" name="RTTrigger" + refToolId="clazz.tool.operation"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTimeStateMach::RTTrigger" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create a Realization" + iconpath="bundleentry://1075.fwk31149847/icons/full/obj16/Realization.gif" + id="clazz.tool.realization_1417455608460" name="Realization" + refToolId="clazz.tool.realization" /> + <aspectTool description="Create an Usage" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Usage.gif" + id="clazz.tool.usage_1417516786109" name="Usage" refToolId="clazz.tool.usage" /> + </drawer> + </content> +</paletteDefinition>
\ No newline at end of file diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.StateMachineDiagram.Palette.xml b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.StateMachineDiagram.Palette.xml new file mode 100644 index 00000000000..acd51b33f39 --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/palettes/UML-RT.StateMachineDiagram.Palette.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<paletteDefinition> + <content> + <drawer iconpath="/icons/drawer.gif" id="Drawer__1416993599969" + name="UML-RT"> + <aspectTool description="Create an element with a stereotype" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Class.gif" + id="createStateMachineCreationTool_1416993776146" name="RTStateMachine" + refToolId="createStateMachineCreationTool"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTimeStateMach::RTStateMachine" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an element with a stereotype" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Region.gif" + id="createRegionCreationTool_1416993785626" name="RTRegion" + refToolId="createRegionCreationTool"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTimeStateMach::RTRegion" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an element with a stereotype" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Package.gif" + id="createPseudostateCreationTool_1416993803624" name="RTPseudostate" + refToolId="createPseudostateCreationTool"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTimeStateMach::RTPseudostate" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an element with a stereotype" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/Collaboration.gif" + id="createTriggerCreationTool_1416993803625" name="RTTrigger" + refToolId="createTriggerCreationTool"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTimeStateMach::RTTrigger" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an element with a stereotype" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/State.gif" + id="createStateCreationTool_1416994043249" name="RTState (State)" + refToolId="createStateCreationTool"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::RTState" /> + </stereotypesToApply> + </postAction> + </aspectTool> + <aspectTool description="Create an element with a stereotype" + iconpath="platform:/plugin/org.eclipse.uml2.uml.edit/icons/full/obj16/State.gif" + id="createFinalStateCreationTool_1416994043249" name="RTState (Final State)" + refToolId="createFinalStateCreationTool"> + <postAction id="org.eclipse.papyrus.applystereotypeactionprovider"> + <stereotypesToApply> + <stereotype stereotypeName="UMLRealTime::RTState" /> + </stereotypesToApply> + </postAction> + </aspectTool> + </drawer> + </content> +</paletteDefinition>
\ No newline at end of file diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/plugin.xml b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/plugin.xml new file mode 100644 index 00000000000..ec840f8c7ee --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/plugin.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?><?eclipse version="3.4"?> +<plugin> + <extension + point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"> + <paletteDefinition + ID="UML-RT-Composite-PE" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + name="UML-RT-CompositeDiagramPaletteExtension" + path="palettes/UML-RT.CapsuleDiagram.Palette.xml"> + <Priority + name="Medium"> + </Priority> + <editor + id="org.eclipse.papyrus.uml.diagram.composite"> + </editor> + </paletteDefinition> + </extension> + <extension + point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"> + <paletteDefinition + ID="UML-RT-Class-PE" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + name="UML-RT-ClassDiagramPaletteExtension" + path="palettes/UML-RT.ProtocolDiagram.Palette.xml"> + <Priority + name="Medium"> + </Priority> + <editor + id="org.eclipse.papyrus.uml.diagram.clazz"> + </editor> + </paletteDefinition> + </extension> + <extension + point="org.eclipse.papyrus.uml.diagram.common.paletteDefinition"> + <paletteDefinition + ID="UML-RT-StateMachine-PE" + class="org.eclipse.papyrus.uml.diagram.common.service.PluginPaletteProvider" + icon="platform:/plugin/org.eclipse.gmf.runtime.diagram.ui/icons/group.gif" + name="UML-RT-StateMachineDiagramPaletteExtension" + path="palettes/UML-RT.StateMachineDiagram.Palette.xml"> + <Priority + name="Medium"> + </Priority> + <editor + id="org.eclipse.papyrus.uml.diagram.statemachine"> + </editor> + </paletteDefinition> + </extension> + <extension + point="org.eclipse.papyrus.infra.viewpoints.policy.custom"> + <configuration + file="configuration/UMLRT.configuration" + priority="100"> + </configuration> + </extension> + +</plugin> diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/pom.xml b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/pom.xml new file mode 100644 index 00000000000..0ac2455e8cb --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/pom.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <artifactId>org.eclipse.papyrus</artifactId> + <groupId>org.eclipse.papyrus</groupId> + <version>1.1.0-SNAPSHOT</version> + <relativePath>../../../releng/top-pom-extras.xml</relativePath> + </parent> + <artifactId>org.eclipse.papyrus.umlrt.ui</artifactId> + <groupId>org.eclipse.papyrus</groupId> + <version>1.1.0-SNAPSHOT</version> + <packaging>eclipse-plugin</packaging> +</project>
\ No newline at end of file diff --git a/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/src/org/eclipse/papyrus/umlrt/ui/Activator.java b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/src/org/eclipse/papyrus/umlrt/ui/Activator.java new file mode 100644 index 00000000000..b71c2b62c52 --- /dev/null +++ b/extraplugins/umlrt/org.eclipse.papyrus.umlrt.ui/src/org/eclipse/papyrus/umlrt/ui/Activator.java @@ -0,0 +1,50 @@ +package org.eclipse.papyrus.umlrt.ui; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + + // The plug-in ID + public static final String PLUGIN_ID = "org.eclipse.papyrus.umlrt.ui"; //$NON-NLS-1$ + + // The shared instance + private static Activator plugin; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} |