Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 467a5c5e2598842fbd40e0e3bb2677123f1f81d7 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.papyrus.infra.core.model">
      <model
            classname="org.eclipse.papyrus.infra.table.efacet.common.modelresource.PapyrusTableModelResource"
            description="Model Resource for Papyrus Table EFacet ">
      </model>
   </extension>
<extension id="papyrus.table.menuspapyrus.table.menu" name="Papyrus Table Menus" point="org.eclipse.ui.menus">
      <menuContribution allPopups="false" locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?after=org.eclipse.papyrus.views.modelexplorer.popupmenu.creatediagram">
         <menu icon="icons/table.gif" id="org.eclipse.papyrus.views.modelexplorer.popupmenu.table.efacet.creation" label="New EFacet Table" mnemonic="&amp;T" tooltip="The table menu">
         </menu>
      </menuContribution>
      <menuContribution allPopups="false" locationURI="menu:org.eclipse.papyrus.ui.menu?after=org.eclipse.papyrus.uml.diagram.ui.menu.diagrams">
         <menu icon="icons/table.gif" id="org.eclipse.papyrus.ui.menu.efacet.table.creation" label="EFacet Tables" mnemonic="&amp;T" tooltip="The table menu">
         </menu>
      </menuContribution>
      <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?endof=org.eclipse.papyrus.uml.diagram.ui.toolbar">
         <toolbar id="org.eclipse.papyrus.toolbar.table.efacet.creation" label="Papyrus EFacet Table Toolbar">
         </toolbar>
      </menuContribution>
   </extension>
 <extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.emf.facet.widgets.table.command.category"
            description="Move the line up"
            id="org.eclipse.papyrus.infra.table.efacet.common.command.moveuprow"
            name="Move Line Up">
      </command>
      <command
            categoryId="org.eclipse.emf.facet.widgets.table.command.category"
            description="Move the line down"
            id="org.eclipse.papyrus.infra.table.efacet.common.command.movedownrow"
            name="Move Line Down">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.popup.any">
         <command
               commandId="org.eclipse.papyrus.infra.table.efacet.common.command.moveuprow"
               icon="icons/up.gif"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
                  <with
                        variable="activePart">
                     <test
                           forcePluginActivation="true"
                           property="org.eclipse.papyrus.infra.table.efacet.common.propertyTester.isPapyrusTableEfacet"
                           value="true">
                     </test>
                  </with>
               </and>
            </visibleWhen>
         </command>
         <command
               commandId="org.eclipse.papyrus.infra.table.efacet.common.command.movedownrow"
               icon="icons/down.gif"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <and>
                  <with
                        variable="activeEditorId">
                     <equals
                           value="org.eclipse.papyrus.infra.core.papyrusEditor">
                     </equals>
                  </with>
                  <with
                        variable="activePart">
                     <test
                           forcePluginActivation="true"
                           property="org.eclipse.papyrus.infra.table.efacet.common.propertyTester.isPapyrusTableEfacet"
                           value="true">
                     </test>
                  </with>
               </and>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.papyrus.infra.table.efacet.common.handlers.DownRowHandler"
            commandId="org.eclipse.papyrus.infra.table.efacet.common.command.movedownrow">
      </handler>
      <handler
            class="org.eclipse.papyrus.infra.table.efacet.common.handlers.UpRowHandler"
            commandId="org.eclipse.papyrus.infra.table.efacet.common.command.moveuprow">
      </handler>
   </extension>
   <extension
         point="org.eclipse.ui.bindings">
      <key
            commandId="org.eclipse.papyrus.infra.table.efacet.common.command.moveuprow"
            contextId="org.eclipse.papyrus.infra.table.efacet.common.context"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="ALT+ARROW_UP">
      </key>
      <key
            commandId="org.eclipse.papyrus.infra.table.efacet.common.command.movedownrow"
            contextId="org.eclipse.papyrus.infra.table.efacet.common.context"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="ALT+ARROW_DOWN">
      </key>
   </extension>
   <extension
         point="org.eclipse.ui.contexts">
      <context
            description="Papyrus Table Context"
            id="org.eclipse.papyrus.infra.table.efacet.common.context"
            name="Papyrus Table Context"
            parentId="org.eclipse.ui.contexts.window">
      </context>
   </extension>
   <extension
         point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="org.eclipse.papyrus.infra.table.efacet.common.tester.TablePropertyTester"
            id="org.eclipse.papyrus.infra.table.efacet.common.propertyTester"
            namespace="org.eclipse.papyrus.infra.table.efacet.common.propertyTester"
            properties="isPapyrusTableEfacet"
            type="org.eclipse.ui.IWorkbenchPart">
      </propertyTester>
   </extension>
   <extension
         point="org.eclipse.emf.facet.widgets.celleditors.commandFactories">
      <commandFactory
            class="org.eclipse.papyrus.infra.table.efacet.common.factory.PapyrusCommandFactory">
      </commandFactory>
   </extension>
</plugin>

Back to the top