-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.xml
More file actions
68 lines (67 loc) · 2.25 KB
/
plugin.xml
File metadata and controls
68 lines (67 loc) · 2.25 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ltk.core.refactoring.refactoringContributions">
<contribution
class="reverse.conditional.java.ReverseConditional"
id="refactorings.reverse.conditional">
</contribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
description="Reverse Conditional"
id="reverse.conditional.category"
name="Reverse Conditional"/>
<command
categoryId="reverse.conditional.category"
description="Reverses a conditional."
id="reverse.conditional"
name="Reverse Conditional">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="reverse.conditional.java.ReverseConditionalJavaHandler"
commandId="reverse.conditional">
<activeWhen>
<and>
<with variable="selection">
<instanceof value="org.eclipse.jface.text.ITextSelection" />
</with>
<with variable="activeEditorId">
<equals value="org.eclipse.jdt.ui.CompilationUnitEditor"/>
</with>
</and>
</activeWhen>
</handler>
<handler
class="reverse.conditional.c.ReverseConditionalCHandler"
commandId="reverse.conditional">
<activeWhen>
<and>
<with variable="selection">
<instanceof value="org.eclipse.jface.text.ITextSelection" />
</with>
<with variable="activeEditorId">
<equals value="org.eclipse.cdt.ui.editor.CEditor"/>
</with>
</and>
</activeWhen>
</handler>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="menu:org.eclipse.jdt.ui.refactoring.menu?after=additions">
<command
commandId="reverse.conditional"
label="Reverse Conditional"
style="push">
</command>
</menuContribution>
</extension>
</plugin>