-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathplugin.xml
200 lines (197 loc) · 7.31 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension-point id="sourceViewerConfigurationContribution" name="SourceViewerConfiguration Contribution" schema="schema/sourceViewerConfigurationContribution.exsd"/>
<extension
point="org.eclipse.ui.editors">
<editor
class="org.dadacoalition.yedit.editor.YEdit"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
default="false"
extensions="yml,yaml"
id="org.dadacoalition.yedit.editor.YEdit"
name="YEdit YAML Editor">
<contentTypeBinding contentTypeId="org.dadacoalition.yedit.yamlsource" />
</editor>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="org.dadacoalition.yedit.preferences.YEditPreferences"
class="org.dadacoalition.yedit.preferences.ColorPreferences"
id="org.dadacoalition.yedit.preferences.ColorPreferences"
name="Color Preferences">
</page>
<page
class="org.dadacoalition.yedit.preferences.YEditPreferences"
id="org.dadacoalition.yedit.preferences.YEditPreferences"
name="YEdit Preferences">
</page>
<page
category="org.dadacoalition.yedit.preferences.YEditPreferences"
class="org.dadacoalition.yedit.preferences.TemplatePreferences"
id="org.dadacoalition.yedit.preferences.TemplatePreferences"
name="Templates">
</page>
<page
category="org.dadacoalition.yedit.preferences.YEditPreferences"
class="org.dadacoalition.yedit.preferences.FormatterPreferencePage"
id="org.dadacoalition.yedit.preferences.FormatterPreferences"
name="Formatter preferences">
</page>
<page
category="org.dadacoalition.yedit.preferences.YEditPreferences"
class="org.dadacoalition.yedit.preferences.TaskTagPreferencePage"
id="org.dadacoalition.yedit.preferences.TaskTagPreferences"
name="Task Tag Preferences">
</page>
</extension>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="org.dadacoalition.yedit.preferences.PreferenceInitializer">
</initializer>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
description="Commands related to the YEdit plugin"
id="org.dadacoalition.yedit.commands.category"
name="YEdit">
</category>
<command
categoryId="org.dadacoalition.yedit.commands.category"
description="Turn comments on/off for a selection"
id="org.dadacoalition.yedit.commands.toggleComment"
name="Toggle Comment">
</command>
<command
description="Toggle if the outline should be collapse or not"
id="org.dadacoalition.yedit.commands.toggleCollapse"
name="Toggle Collapse">
</command>
<command
categoryId="org.dadacoalition.yedit.commands.category"
description="Format the document according to format preferences"
id="org.dadacoalition.yedit.command.formatDocument"
name="Format">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu
label="YEdit">
<command
commandId="org.dadacoalition.yedit.commands.toggleComment"
label="Toggle Comment"
style="push">
</command>
<command
commandId="org.dadacoalition.yedit.command.formatDocument"
label="Format"
style="push">
</command>
<visibleWhen
checkEnabled="false">
<with
variable="activePartId">
<equals
value="org.dadacoalition.yedit.editor.YEdit">
</equals>
</with>
</visibleWhen>
</menu>
</menuContribution>
<menuContribution
locationURI="menu:org.eclipse.ui.views.ContentOutline?after=additions">
<command
commandId="org.dadacoalition.yedit.commands.toggleCollapse"
label="Toggle collapse"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="activeEditorId">
<equals
value="org.dadacoalition.yedit.editor.YEdit">
</equals>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.dadacoalition.yedit.handlers.ToggleCommentHandler"
commandId="org.dadacoalition.yedit.commands.toggleComment">
</handler>
<handler
class="org.dadacoalition.yedit.handlers.ToggleCollapseHandler"
commandId="org.dadacoalition.yedit.commands.toggleCollapse">
</handler>
<handler
class="org.dadacoalition.yedit.handlers.FormatDocumentHandler"
commandId="org.dadacoalition.yedit.command.formatDocument">
</handler>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="org.dadacoalition.yedit.commands.toggleComment"
contextId="org.dadacoalition.yedit.yeditScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M2+C">
</key>
<key
commandId="org.dadacoalition.yedit.commands.toggleComment"
contextId="org.dadacoalition.yedit.yeditScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+/">
</key>
<key
commandId="org.dadacoalition.yedit.command.formatDocument"
contextId="org.dadacoalition.yedit.yeditScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M2+F">
</key>
</extension>
<extension
point="org.eclipse.ui.contexts">
<context
id="org.dadacoalition.yedit.yeditScope"
name="YEdit editor context"
parentId="org.eclipse.ui.textEditorScope">
</context>
</extension>
<extension
point="org.eclipse.ui.editors.templates">
<contextType
class="org.dadacoalition.yedit.template.YAMLContentType"
id="org.dadacoalition.yedit.template.yaml"
name="YAML Context">
</contextType>
</extension>
<extension
point="org.eclipse.core.contenttype.contentTypes">
<content-type
base-type="org.eclipse.core.runtime.text"
file-extensions="yml,yaml"
id="yamlsource"
name="Yaml Content Type"
priority="high">
</content-type>
</extension>
<extension
point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets">
<target
id="org.dadacoalition.yedit.yamlsource"
name="Yaml Editor">
<context
type="org.eclipse.ui.texteditor.ITextEditor">
</context>
</target>
</extension>
</plugin>