blob: 5167e4a6ee51b2f7a71345c1e4759347c07f87ef [file] [log] [blame]
tarendtd6909d02013-07-16 10:51:45 +02001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.4"?>
3<plugin>
4 <extension
5 point="org.eclipse.ui.menus">
6 <menuContribution
7 allPopups="true"
8 locationURI="popup:org.eclipse.ui.popup.any?after=additions">
9 <menu
10 id="org.eclipse.emf.refactor.runtime.menu"
11 label="EMF Quality Assurance (use existing techniques)">
12 <command
13 commandId="org.eclipse.emf.refactor.metrics.xtext.calculateMetricsOnElementCommand"
14 label="Calculate Configured Metrics (on element)"
15 style="push">
16 <visibleWhen
17 checkEnabled="true">
18 <iterate
19 ifEmpty="false">
20 <instanceof
21 value="org.eclipse.jface.text.TextSelection">
22 </instanceof>
23 </iterate>
24 </visibleWhen>
25 </command>
26 <command
27 commandId="org.eclipse.emf.refactor.metrics.xtext.calculateMetricsTransitivelyCommand"
28 label="Calculate Configured Metrics (on model)"
29 style="push">
30 <visibleWhen
31 checkEnabled="true">
32 <iterate
33 ifEmpty="false">
34 <instanceof
35 value="org.eclipse.jface.text.TextSelection">
36 </instanceof>
37 </iterate>
38 </visibleWhen>
39 </command>
40 </menu>
41 </menuContribution>
42 </extension>
43 <extension
44 point="org.eclipse.ui.commands">
45 <command
46 id="org.eclipse.emf.refactor.metrics.xtext.calculateMetricsOnElementCommand"
47 name="CalculateMetricsOnElementCommand">
48 </command>
49 <command
50 id="org.eclipse.emf.refactor.metrics.xtext.calculateMetricsTransitivelyCommand"
51 name="CalculateMetricsTransitivelyCommand">
52 </command>
53 </extension>
54 <extension
55 point="org.eclipse.ui.handlers">
56 <handler
57 class="org.eclipse.emf.refactor.metrics.xtext.handler.CalculateMetricsOnElementCommandHandler"
58 commandId="org.eclipse.emf.refactor.metrics.xtext.calculateMetricsOnElementCommand">
59 </handler>
60 <handler
61 class="org.eclipse.emf.refactor.metrics.xtext.handler.CalculateMetricsTransitivelyCommandHandler"
62 commandId="org.eclipse.emf.refactor.metrics.xtext.calculateMetricsTransitivelyCommand">
63 </handler>
64 </extension>
65 <extension
66 point="org.eclipse.ui.startup">
67 <startup
68 class="org.eclipse.emf.refactor.metrics.xtext.XtextStartup">
69 </startup>
70 </extension>
71
72</plugin>