/
plugin.xml
95 lines (94 loc) · 3.2 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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="com.codeandme.custombuilder.myBuilder"
point="org.eclipse.core.resources.builders">
<builder>
<run
class="com.codeandme.custombuilder.builders.MyBuilder">
</run></builder>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
<command
commandId="com.codeandme.custombuilder.addBuilder"
style="push">
<visibleWhen
checkEnabled="false">
<and>
<count
value="1">
</count>
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.core.resources.IProject">
</adapt>
</iterate>
<iterate>
<not>
<test
forcePluginActivation="true"
property="com.codeandme.custombuilder.isEnabled">
</test>
</not>
</iterate>
</and>
</visibleWhen>
</command>
<command
commandId="com.codeandme.custombuilder.removeBuilder"
style="push">
<visibleWhen
checkEnabled="false">
<and>
<count
value="1">
</count>
<iterate
ifEmpty="false"
operator="and">
<adapt
type="org.eclipse.core.resources.IProject">
</adapt>
</iterate>
<iterate>
<test
forcePluginActivation="true"
property="com.codeandme.custombuilder.isEnabled">
</test>
</iterate>
</and>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
defaultHandler="com.codeandme.custombuilder.commands.AddBuilder"
id="com.codeandme.custombuilder.addBuilder"
name="Add Custom Builder">
</command>
<command
defaultHandler="com.codeandme.custombuilder.commands.RemoveBuilder"
id="com.codeandme.custombuilder.removeBuilder"
name="Remove Custom Builder">
</command>
</extension>
<extension
point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="com.codeandme.custombuilder.propertytester.TestBuilderEnabled"
id="com.codeandme.custombuilder.myBuilderTester"
namespace="com.codeandme.custombuilder"
properties="isEnabled"
type="java.lang.Object">
</propertyTester>
</extension>
</plugin>