Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e187ce1859b724a8ec22753b8d3c35fb79fa1ab1 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         point="org.eclipse.ui.commands">
      <command
            categoryId="org.eclipse.papyrus.editor.category"
            description="%command.description"
            id="org.eclipse.papyrus.toolsmiths.expressions.createExpressionsForUMLProfile"
            name="%command.name">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="false"
            locationURI="popup:org.eclipse.papyrus.uml.profile.types.generator.ui.generateMenu?after=additions">
         <command
               commandId="org.eclipse.papyrus.toolsmiths.expressions.createExpressionsForUMLProfile"
               icon="icons/ExpressionCatalog.gif"
               style="push">
            <visibleWhen
                  checkEnabled="true">
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.papyrus.toolsmiths.expressions.handlers.GenerateProfileCatalogHandler"
            commandId="org.eclipse.papyrus.toolsmiths.expressions.createExpressionsForUMLProfile">
         <activeWhen>
            <with
                  variable="selection">
               <and>
                  <count
                        value="1">
                  </count>
                  <iterate
                        ifEmpty="false"
                        operator="and">
                     <adapt
                           type="org.eclipse.emf.ecore.EObject">
                        <instanceof
                              value="org.eclipse.uml2.uml.Profile">
                        </instanceof>
                     </adapt>
                  </iterate>
               </and>
            </with>
         </activeWhen>
      </handler>
   </extension>

</plugin>

Back to the top