Skip to main content
summaryrefslogtreecommitdiffstats
blob: 04dc9992c535767c755fd2b589973be160d23425 (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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         id="org.eclipse.emf.refactor.papyrus.menu"
         point="org.eclipse.ui.menus">
      <menuContribution
            allPopups="true"
            locationURI="popup:org.eclipse.ui.popup.any?after=additions">
         <menu
               id="org.eclipse.emf.refactor.generator.menu"
               label="EMF Quality Assurance (define new techniques)">
            <command
                  commandId="org.eclipse.emf.refactor.refactoring.papyrus.generateNewRefactoringJavaCommand"
                  icon="icons/refactoring.png"
                  label="Generate New Refactoring (specified in Java)"
                  style="push">
               <visibleWhen
                     checkEnabled="true">
                  <iterate
                        ifEmpty="false">
                     <or>
                        <instanceof
                              value="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
                        </instanceof>
                        <instanceof
                              value="org.eclipse.emf.facet.infra.browser.uicore.internal.model.ModelElementItem">
                        </instanceof>
                     </or>
                  </iterate>
               </visibleWhen>
            </command>
         </menu>
      </menuContribution>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <command
            id="org.eclipse.emf.refactor.refactoring.papyrus.generateNewRefactoringJavaCommand"
            name="GenerateNewRefactoringJavaCommand">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.handlers">
      <handler
            class="org.eclipse.emf.refactor.refactoring.papyrus.handler.GenerateNewRefactoringJavaCommandHandler"
            commandId="org.eclipse.emf.refactor.refactoring.papyrus.generateNewRefactoringJavaCommand">
      </handler>
   </extension>
   
</plugin>

Back to the top