Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 876abb94a968e65eb4089a63b74846411befaaba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
 <extension
         point="org.eclipse.ui.commands">
      <command
            description="Create an UML 2 Tree (EMF Tree)"
            id="com.cea.papyrus.ui.emftree.createTree"
            name="Create Tree">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.papyrus.uml.diagram.emftree.CreateEMFTreeDiagramHandler"
            commandId="com.cea.papyrus.ui.emftree.createTree">
         <enabledWhen>
            <with
                  variable="activeEditorId">
               <equals
                     value="org.eclipse.papyrus.infra.core.papyrusEditor">
               </equals>
            </with>
         </enabledWhen>
      </handler>
   </extension>
  
   <extension
         point="org.eclipse.papyrus.infra.core.papyrusDiagram">
      <editorDiagram
            actionBarContributorId="org.eclipse.papyrus.uml.diagram.common.part.UMLDiagramActionBarContributor"
            contextId="defaultContext"
            factoryClass="org.eclipse.papyrus.uml.diagram.emftree.EmfTreeDiagramEditorFactory">
      </editorDiagram>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:org.eclipse.papyrus.ui.menu">
         <menu
               id="org.eclipse.papyrus.uml.diagram.ui.menu.diagrams"
               label="Diagrams">
            <command
                  commandId="com.cea.papyrus.ui.emftree.createTree"
                  icon="icons/EmfTree.gif"
                  label="Create a new EMF Tree"
                  style="push"
                  tooltip="Create a new EMF Tree">
            </command>
         </menu>
      </menuContribution>
      <menuContribution
            locationURI="toolbar:org.eclipse.ui.main.toolbar">
         <toolbar
               id="org.eclipse.papyrus.uml.diagram.ui.toolbar">
            <command
                  commandId="com.cea.papyrus.ui.emftree.createTree"
                  icon="icons/EmfTree.gif"
                  label="Create a new EMF Tree"
                  style="push"
                  tooltip="Create a new EMF Tree">
            </command>
         </toolbar>
      </menuContribution>
   </extension>
</plugin>

Back to the top