-
Notifications
You must be signed in to change notification settings - Fork 2
/
plugin.xml
41 lines (41 loc) · 2.18 KB
/
plugin.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.ui.commands">
<category name="JCE" id="JCE.commands.category" />
<command name="Ecorify From..." categoryId="JCE.commands.category" id="JCE.commands.ecorifyCommand" />
<command categoryId="JCE.commands.category" id="JCE.commands.extractCommand" name="Extract From..." />
</extension>
<extension point="org.eclipse.ui.handlers">
<handler commandId="JCE.commands.ecorifyCommand" class="jce.handlers.EcorificationHandler" />
<handler class="jce.handlers.ExtractionHandler" commandId="JCE.commands.extractCommand" />
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.ui.popup.any">
<menu icon="src/main/resources/jce.gif" label="JCE" tooltip="Java Code Ecorification">
<command commandId="JCE.commands.ecorifyCommand" id="JCE.menus.extractCommand" label="Ecorify Java Project..." mnemonic="S" tooltip="Start the Ecorification of Java code.">
<visibleWhen>
<with variable="activeMenuSelection">
<iterate ifEmpty="false">
<adapt type="org.eclipse.core.resources.IProject">
<test property="org.eclipse.core.resources.open" value="open" />
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command commandId="JCE.commands.extractCommand" id="JCE.menus.extractCommand" label="Extract Ecore Metamodel..." tooltip="Start only the Ecore metamodel extraction of the Ecorification of Java code.">
<visibleWhen>
<with variable="activeMenuSelection">
<iterate ifEmpty="false">
<adapt type="org.eclipse.core.resources.IProject">
<test property="org.eclipse.core.resources.open" value="open" />
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menu>
</menuContribution>
</extension>
</plugin>