Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b996bf535e873d2eedcafe65d3c8b824607da5e2 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.ui.popup.any?after=additions">
         <command
               commandId="org.eclipse.papyrus.uml.profile.newchildmenu.generator.ui.command"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="selection">
                  <and>
                     <count
                           value="1">
                     </count>
                     <iterate
                           ifEmpty="false"
                           operator="or">
                        <and>
                           <instanceof
                                 value="org.eclipse.core.resources.IFile">
                           </instanceof>
                           <test
                                 property="org.eclipse.core.resources.extension"
                                 value="elementtypesconfigurations">
                           </test>
                        </and>
                     </iterate></and>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            defaultHandler="org.eclipse.papyrus.uml.profile.newchildmenu.generator.ui.handlers.GenerateNewChildMenuHandler"
            id="org.eclipse.papyrus.uml.profile.newchildmenu.generator.ui.command"
            name="Generate NewChild Menu">
      </command>
   </extension>

</plugin>

Back to the top