-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathplugin.xml
147 lines (135 loc) · 6.4 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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
###############################################################################
# Copyright (c) 2015-2017 Angelo Zerr and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Angelo Zerr <[email protected]> - Initial API and implementation
###############################################################################
-->
<plugin>
<extension-point id="themes"
name="%Themes.extension.name"
schema="schema/themes.exsd" />
<extension-point id="snippets"
name="%Snippets.extension.name"
schema="schema/snippets.exsd" />
<!-- Register default TextMate Themes -->
<extension point="org.eclipse.tm4e.ui.themes">
<!-- "Light" themes -->
<theme id="org.eclipse.tm4e.ui.themes.SolarizedLight"
name="%Theme.SolarizedLight.name"
path="./themes/Solarized-light.css"
default="true" />
<theme id="org.eclipse.tm4e.ui.themes.Light"
name="%Theme.Light.name"
path="./themes/Light.css" />
<theme id="org.eclipse.tm4e.ui.themes.EclipseLight"
name="%Theme.EclipseLight.name"
path="./themes/Eclipse-light.css" />
<theme id="org.eclipse.tm4e.ui.themes.WtpXmlClassic"
name="%Theme.WtpXmlClassic.name"
path="./themes/WTP-XML-Classic.css" />
<!-- "Dark" themes -->
<theme id="org.eclipse.tm4e.ui.themes.Dark"
name="%Theme.Dark.name"
path="./themes/Dark.css"
dark="true"
default="true" />
<theme id="org.eclipse.tm4e.ui.themes.Monokai"
name="%Theme.Monokai.name"
path="./themes/Monokai.css"
dark="true" />
</extension>
<!-- Preference Pages -->
<extension point="org.eclipse.ui.preferencePages">
<page name="%TextMatePreferencePage.name"
class="org.eclipse.tm4e.ui.internal.preferences.TextMatePreferencePage"
id="org.eclipse.tm4e.ui.preferences.TextMatePreferencePage" />
<page name="%GrammarPreferencePage.name"
class="org.eclipse.tm4e.ui.internal.preferences.GrammarPreferencePage"
id="org.eclipse.tm4e.ui.preferences.GrammarPreferencePage"
category="org.eclipse.tm4e.ui.preferences.TextMatePreferencePage" />
<page name="%TaskTagsPreferencePage.name"
class="org.eclipse.tm4e.ui.internal.preferences.TaskTagsPreferencePage"
id="org.eclipse.tm4e.ui.preferences.TaskTagsPreferencePage"
category="org.eclipse.tm4e.ui.preferences.TextMatePreferencePage" />
<page name="%ThemePreferencePage.name"
class="org.eclipse.tm4e.ui.internal.preferences.ThemePreferencePage"
id="org.eclipse.tm4e.ui.preferences.ThemePreferencePage"
category="org.eclipse.tm4e.ui.preferences.TextMatePreferencePage" />
</extension>
<!-- Wizards -->
<extension point="org.eclipse.ui.importWizards">
<category id="org.eclipse.tm4e.ui.wizards"
name="%TextMateWizard.category" />
<wizard id="org.eclipse.tm4e.ui.wizards.TextMateGrammarWizard"
name="%TextMateGrammarImportWizard.name"
class="org.eclipse.tm4e.ui.internal.wizards.TextMateGrammarImportWizard"
category="org.eclipse.tm4e.ui.wizards">
<description>%TextMateGrammarImportWizard.desc</description>
</wizard>
</extension>
<!-- Property tester contributions -->
<extension point="org.eclipse.core.expressions.propertyTesters">
<propertyTester
class="org.eclipse.tm4e.ui.internal.TMPropertyTester"
id="org.eclipse.tm4e.ui.TMPropertyTester"
namespace="org.eclipse.tm4e.ui"
properties="canSupportTextMate"
type="org.eclipse.ui.IEditorPart" />
</extension>
<!-- Contextual Menu -->
<extension point="org.eclipse.ui.menus">
<!-- Editor "TextMate" contribution -->
<menuContribution allPopups="true" locationURI="popup:org.eclipse.ui.popup.any?after=additions">
<menu id="org.eclipse.tm4e.ui.internal.menus.Theme" label="%menu.textmate.theme.label" >
<separator name="additions" visible="false"/>
<dynamic id="org.eclipse.tm4e.ui.menus.ThemeContribution"
class="org.eclipse.tm4e.ui.internal.menus.ThemeContribution">
<visibleWhen checkEnabled="false">
<and>
<with variable="activePart">
<instanceof value="org.eclipse.ui.IEditorPart" />
</with>
<with variable="activePart">
<adapt type="org.eclipse.ui.IEditorPart">
<test property="org.eclipse.tm4e.ui.canSupportTextMate" />
</adapt>
</with>
</and>
</visibleWhen>
</dynamic>
</menu>
</menuContribution>
</extension>
<!-- By default GenericEditor uses TextMate presentation reconciler -->
<extension point="org.eclipse.ui.genericeditor.presentationReconcilers">
<presentationReconciler
class="org.eclipse.tm4e.ui.text.TMPresentationReconciler"
contentType="org.eclipse.core.runtime.text" />
</extension>
<extension id="textmarker" point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.textmarker"/>
</extension>
<extension id="problemmarker" name="%problemmarkerName" point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.problemmarker"/>
<super type="org.eclipse.tm4e.ui.textmarker"/>
<persistent value="true"/>
</extension>
<extension id="taskmarker" name="%taskmarkerName" point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.taskmarker"/>
<super type="org.eclipse.tm4e.ui.textmarker"/>
<persistent value="true"/>
</extension>
<extension point="org.eclipse.ui.genericeditor.hoverProviders">
<hoverProvider
class="org.eclipse.tm4e.ui.internal.hover.TMTokenTextHover"
contentType="org.eclipse.core.runtime.text" />
</extension>
</plugin>