Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8ec17253a83f08d8a5b372ac34b2883234ba47d5 (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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <!--extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.emf.facet.widgets.nattable.command.category"
            defaultHandler="org.eclipse.papyrus.infra.table.menu.handler.CommonColumnHandler"
            description="Show only the common columns"
            id="org.eclipse.emf.facet.widget.nattable.common.columns.command"
            name="Common Columns Command">
         <state
               class="org.eclipse.jface.commands.ToggleState"
               id="org.eclipse.ui.commands.toggleState">
         </state>
      </command>
      <command
            categoryId="org.eclipse.emf.facet.widgets.nattable.command.category"
            defaultHandler="org.eclipse.papyrus.infra.table.menu.handler.HideEmptyColumnsHandler"
            description="This command hides the empty columns"
            id="org.eclipse.emf.facet.widget.nattable.empty.columns.command"
            name="Hide Empty Columns Command">
         <state
               class="org.eclipse.jface.commands.ToggleState"
               id="org.eclipse.ui.commands.toggleState">
         </state>
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="menu:org.eclipse.ui.main.menu?before=navigate">
         <menu
               icon="icons/table.gif"
               id="org.eclipse.papyrus.table.menu"
               label="&amp;Table"
               tooltip="The table Menu">
            <command
                  commandId="org.eclipse.emf.facet.widgets.nattable.loadCustomizationCommand"
                  icon="platform:/plugin/org.eclipse.emf.facet.widgets.nattable.workbench/icons/uiCustom.gif"
                  id="org.eclipse.papyrus.table.menu.load.customization"
                  style="push"
                  tooltip="%load.customization">
               <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="selection">
                     <test
                           forcePluginActivation="true"
                           property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                           value="true">
                     </test>
                  </with>
               </visibleWhen>
            </command>
            <command
                  commandId="org.eclipse.emf.facet.widgets.nattable.loadFacetCommand"
                  icon="platform:/plugin/org.eclipse.emf.facet.widgets.nattable.workbench/icons/facet.gif"
                  id="org.eclipse.papyrus.table.menu.load.emf.facet"
                  style="push"
                  tooltip="%load.emf.facet">
               <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="selection">
                     <test
                           forcePluginActivation="true"
                           property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                           value="true">
                     </test>
                  </with>
               </visibleWhen>
            </command>
            <command
                  commandId="org.eclipse.emf.facet.widgets.nattable.hideColumnCommand"
                  icon="icons/select_column_to_hide_2.gif"
                  id="org.eclipse.papyrus.table.menu.hide.empty.column"
                  style="push"
                  tooltip="%select.column.to.hide">
               <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="selection">
                     <test
                           forcePluginActivation="true"
                           property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                           value="true">
                     </test>
                  </with>
               </visibleWhen>
            </command>
            <command
                  commandId="org.eclipse.emf.facet.widgets.nattable.sortColumnByTypeCommand"
                  icon="platform:/plugin/org.eclipse.emf.facet.widgets.nattable.workbench/icons/sort_links_by_type.gif"
                  id="org.eclipse.papyrus.table.menu.sort.column"
                  style="push"
                  tooltip="%sort.column.by.type">
               <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="selection">
                     <test
                           forcePluginActivation="true"
                           property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                           value="true">
                     </test>
                  </with>
               </visibleWhen>
            </command>
                        <command
                  commandId="org.eclipse.emf.facet.widgets.nattable.sortColumnByNameAToZCommand"
                  icon="platform:/plugin/org.eclipse.emf.facet.widgets.nattable.workbench/icons/sort_columns_by_name_A_to_Z.gif"
                  style="push"
                  tooltip="Sort Column By Name (From A to Z)">
                           <visibleWhen
                                 checkEnabled="false">
                              <with
                                    variable="selection">
                                 <test
                                       forcePluginActivation="true"
                                       property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                                       value="true">
                                 </test>
                              </with>
                           </visibleWhen> //TODO should be externalized
            </command>
            <command
                  commandId="org.eclipse.emf.facet.widgets.nattable.sortColumnByNameZToACommand"
                  icon="platform:/plugin/org.eclipse.emf.facet.widgets.nattable.workbench/icons/sort_columns_by_name_Z_to_A.gif"
                  style="push"
                  tooltip="Sort Column By Name (From Z to A)">
               <visibleWhen
                     checkEnabled="false">
                  <with
                        variable="selection">
                     <test
                           forcePluginActivation="true"
                           property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                           value="true">
                     </test>
                  </with>
               </visibleWhen> 
            </command>
            <separator
                  name="org.eclipse.papyrus.table.menu.separator"
                  visible="true">
            </separator>
            <command
                  commandId="org.eclipse.emf.facet.widget.nattable.empty.columns.command"
                  icon="icons/empty.gif"
                  id="org.eclipse.papyrus.table.menu.hide.empty.column"
                  label="&amp;Hide the empty columns"
                  style="toggle"
                  tooltip="Hide the empty columns">
               <visibleWhen
                     checkEnabled="false">
                  <and>
                     <with
                           variable="selection">
                        <test
                              forcePluginActivation="true"
                              property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                              value="true">
                        </test>
                     </with>
                     <with
                           variable="activeEditor">
                        <instanceof
                              value="org.eclipse.papyrus.infra.core.editor.CoreMultiDiagramEditor">
                        </instanceof>
                     </with>
                  </and>
               </visibleWhen>
            </command>
            <command
                  commandId="org.eclipse.emf.facet.widget.nattable.common.columns.command"
                  icon="icons/not_NA.gif"
                  id="org.eclipse.papyrus.table.menu.common.column"
                  label="&amp;Show only the common columns"
                  style="toggle"
                  tooltip="Show only the common columns">
               <visibleWhen
                     checkEnabled="false">
                  <and>
                     <with
                           variable="selection">
                        <test
                              forcePluginActivation="true"
                              property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                              value="true">
                        </test>
                     </with>
                     <with
                           variable="activeEditor">
                        <instanceof
                              value="org.eclipse.papyrus.infra.core.editor.CoreMultiDiagramEditor">
                        </instanceof>
                     </with>
                  </and>
               </visibleWhen>
            </command>
            <visibleWhen>
               <with
                     variable="activeEditorId">
                  <equals
                        value="org.eclipse.papyrus.infra.core.papyrusEditor">
                  </equals>
               </with>
            </visibleWhen>
         </menu>
      </menuContribution>
      <menuContribution
            allPopups="false"
            locationURI="toolbar:org.eclipse.emf.facet.widgets.nattable.workbench.editor.NatTableEditor.toolbar">
         <separator
               name="org.eclipse.papyrus.table.menu.separator1"
               visible="true">
         </separator>
         <command
                  commandId="org.eclipse.emf.facet.widget.nattable.empty.columns.command"
                  icon="icons/empty.gif"
                  id="org.eclipse.emf.facet.papyrus.table.toolbar.hide.empty.column"
                  label="&amp;Hide the empty columns"
                  style="toggle"
                  tooltip="Hide the empty columns">
               <visibleWhen
                     checkEnabled="false">
                  <and>
                     <with
                           variable="selection">
                        <test
                              forcePluginActivation="true"
                              property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                              value="true">
                        </test>
                     </with>
                     <with
                           variable="activeEditor">
                        <instanceof
                              value="org.eclipse.papyrus.infra.core.editor.CoreMultiDiagramEditor">
                        </instanceof>
                     </with>
                     <with
                           variable="activePart">
                        <test
                              forcePluginActivation="true"
                              property="org.eclipse.emf.facet.widgets.nattable.workbench.tablePartTester.isTableEditor"
                              value="true">
                        </test>
                     </with>
                  </and>
               </visibleWhen>
            </command>
            <command
                  commandId="org.eclipse.emf.facet.widget.nattable.common.columns.command"
                  icon="icons/not_NA.gif"
                  id="org.eclipse.emf.facet.papyrus.table.toolbartab.common.column"
                  label="&amp;Show only the common columns"
                  style="toggle"
                  tooltip="Show only the common columns">
               <visibleWhen
                     checkEnabled="false">
                  <and>
                     <with
                           variable="selection">
                        <test
                              forcePluginActivation="true"
                              property="org.eclipse.papyrus.table.menu.providers.TableTester.isTable"
                              value="true">
                        </test>
                     </with>
                     <with
                           variable="activeEditor">
                        <instanceof
                              value="org.eclipse.papyrus.infra.core.editor.CoreMultiDiagramEditor">
                        </instanceof>
                     </with>
                     <with
                           variable="activePart">
                        <test
                              forcePluginActivation="true"
                              property="org.eclipse.emf.facet.widgets.nattable.workbench.tablePartTester.isTableEditor"
                              value="true">
                        </test>
                     </with>
                  </and>
               </visibleWhen>
                </command>
      </menuContribution>
      <menuContribution
            allPopups="true"
            class="org.eclipse.papyrus.infra.table.menu.handler.CreateNewElementInPopupContributionItem"
            locationURI="popup:org.eclipse.ui.popup.any">
      </menuContribution>
      <menuContribution
            allPopups="false"
            class="org.eclipse.papyrus.infra.table.menu.handler.CreateNewElementInTableMenuContributionItem"
            locationURI="menu:org.eclipse.papyrus.table.menu?before=org.eclipse.papyrus.table.menu.load.customization">
      </menuContribution>
   </extension-->
   <extension
         point="org.eclipse.core.expressions.propertyTesters">
      <propertyTester
            class="org.eclipse.papyrus.infra.table.menu.providers.TableTester"
            id="org.eclipse.papyrus.table.menu.providers.TableTester"
            namespace="org.eclipse.papyrus.table.menu.providers.TableTester"
            properties="isTable"
            type="org.eclipse.jface.viewers.IStructuredSelection">
      </propertyTester>
   </extension>
   


   
   
   
   
</plugin>

Back to the top