-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugin.xml
109 lines (104 loc) · 4.54 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.propertyPages">
<page
name="OneSky Sync"
class="com.oneskyapp.eclipse.sync.properties.OneSkyPropertyPage"
id="com.oneskyapp.eclipse.sync.properties.OneSkyPropertyPage">
</page>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
id="com.oneskyapp.eclipse.sync.commands.category"
name="OneSky">
</category>
<command
categoryId="com.oneskyapp.eclipse.sync.commands.category"
id="com.oneskyapp.eclipse.sync.commands.PushAndroidStringsCommand"
name="Send to OneSky for Translation">
</command>
<command
categoryId="com.oneskyapp.eclipse.sync.commands.category"
id="com.oneskyapp.eclipse.sync.commands.PullAllAndroidStringsCommand"
name="Sync All Languages">
</command>
<command
categoryId="com.oneskyapp.eclipse.sync.commands.category"
id="com.oneskyapp.eclipse.sync.commands.PullSpecificAndroidStringsCommand"
name="Sync Specific Languages">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.oneskyapp.eclipse.sync.handlers.PushAndroidStringsHandler"
commandId="com.oneskyapp.eclipse.sync.commands.PushAndroidStringsCommand">
</handler>
<handler
class="com.oneskyapp.eclipse.sync.handlers.PullAllAndroidStringsHandler"
commandId="com.oneskyapp.eclipse.sync.commands.PullAllAndroidStringsCommand">
</handler>
<handler
class="com.oneskyapp.eclipse.sync.handlers.PullSpecificAndroidStringsHandler"
commandId="com.oneskyapp.eclipse.sync.commands.PullSpecificAndroidStringsCommand">
</handler>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
icon="icons/onesky.png"
label="OneSky"
mnemonic="O">
<command
commandId="com.oneskyapp.eclipse.sync.commands.PushAndroidStringsCommand"
id="com.oneskyapp.eclipse.sync.commands.PushAndroidStringsCommand">
<visibleWhen>
<with variable="activeMenuSelection">
<iterate operator="and" ifEmpty="false">
<adapt type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="com.android.ide.eclipse.adt.AndroidNature" />
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command
commandId="com.oneskyapp.eclipse.sync.commands.PullAllAndroidStringsCommand"
id="com.oneskyapp.eclipse.sync.commands.PullAllAndroidStringsCommand">
<visibleWhen>
<with variable="activeMenuSelection">
<iterate operator="and" ifEmpty="false">
<adapt type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="com.android.ide.eclipse.adt.AndroidNature" />
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command
commandId="com.oneskyapp.eclipse.sync.commands.PullSpecificAndroidStringsCommand"
id="com.oneskyapp.eclipse.sync.commands.PullSpecificAndroidStringsCommand">
<visibleWhen>
<with variable="activeMenuSelection">
<iterate operator="and" ifEmpty="false">
<adapt type="org.eclipse.core.resources.IProject">
<test
property="org.eclipse.core.resources.projectNature"
value="com.android.ide.eclipse.adt.AndroidNature" />
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menu>
</menuContribution>
</extension>
</plugin>