-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplugin.xml
More file actions
185 lines (177 loc) · 6.26 KB
/
plugin.xml
File metadata and controls
185 lines (177 loc) · 6.26 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
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
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.editors">
<editor
name="Antlr v4 Editor"
extensions="g4"
icon="icons/g.png"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
class="org.github.antlr4ide.editor.ANTLRv4Editor"
id="org.github.antlr4ide.editor.ANTLRv4Editor">
</editor>
</extension>
<!--
# PREFERENCES
# -->
<extension point="org.eclipse.ui.preferencePages">
<page
class="org.github.antlr4ide.editor.preferences.AntlrPreferencePageTool"
id="org.github.antlr4ide.Antlr4.newprefs"
name="ANTLR 4 IDE TOOL">
<keywordReference id="org.github.antlr4ide.editor.keyword_Antlr4"/>
</page>
<page
class="org.github.antlr4ide.editor.preferences.AntlrPreferencePageFolding"
id="org.github.antlr4ide.Antlr4.newprefs.folding"
name="Folding"
category="org.github.antlr4ide.Antlr4.newprefs">
<keywordReference id="org.github.antlr4ide.editor.keyword_Antlr4"/>
</page>
<page
class="org.github.antlr4ide.editor.preferences.AntlrPreferenceSyntaxHighLighting"
id="org.github.antlr4ide.Antlr4.newprefs.syntaxcolor"
name="Syntax Color"
category="org.github.antlr4ide.Antlr4.newprefs">
<keywordReference id="org.github.antlr4ide.editor.keyword_Antlr4"/>
</page>
</extension>
<!--
# NATURE and BUILDER
# -->
<extension
id="antlrBuilder"
name="Antlr Project Builder"
point="org.eclipse.core.resources.builders">
<builder
hasNature="true">
<run
class="org.github.antlr4ide.builder.AntlrBuilder">
</run>
</builder>
</extension>
<extension
id="antlrNature"
name="Antlr Project Nature"
point="org.eclipse.core.resources.natures">
<runtime>
<run
class="org.github.antlr4ide.builder.AntlrNature">
</run>
</runtime>
<builder
id="antlr4ide-eclipse.antlrBuilder">
</builder>
</extension>
<extension
point="org.eclipse.ui.commands">
<category
name="Antlr Project Nature commands"
id="antlr4ide-eclipse.antlrNature.category">
</category>
<command
name="Add/Remove Antlre Project Nature"
defaultHandler="org.github.antlr4ide.builder.AddRemoveAntlrNatureHandler"
categoryId="antlr4ide-eclipse.antlrNature.category"
id="antlr4ide-eclipse.addRemoveAntlrNature">
</command>
</extension>
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
<command
commandId="antlr4ide-eclipse.addRemoveAntlrNature"
label="Disable Antlr Builder"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<count
value="1">
</count>
<iterate>
<adapt
type="org.eclipse.core.resources.IProject">
<test
value="antlr4ide-eclipse.antlrNature"
property="org.eclipse.core.resources.projectNature">
</test>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
<command
commandId="antlr4ide-eclipse.addRemoveAntlrNature"
label="Enable Antlr Builder"
style="push">
<visibleWhen
checkEnabled="false">
<with
variable="selection">
<count
value="1">
</count>
<iterate>
<adapt
type="org.eclipse.core.resources.IProject">
<not>
<test
value="antlr4ide-eclipse.antlrNature"
property="org.eclipse.core.resources.projectNature">
</test>
</not>
</adapt>
</iterate>
</with>
</visibleWhen>
</command>
</menuContribution>
</extension>
<!--
# CONSOLE
# -->
<extension
id="antlrProblem"
name="Antlr Problem"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.problemmarker">
</super>
<persistent
value="true">
</persistent>
</extension>
<extension
point="org.eclipse.ui.console.consoleFactories">
<consoleFactory
class="org.github.antlr4ide.console.AntlrConsoleFactory"
icon="icons/console.png"
label="Antlr Tool">
</consoleFactory>
</extension>
<!--
# LAUNCH
# -->
<extension point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
id="org.github.Antlr4.tool"
name="Antlr4"
delegate="org.github.antlr4ide.builder.tool.AntlrToolLauncher"
delegateName="Antlr4v Launcher"
delegateDescription="This is the Antlrv4 launcher. It invokes the antlr tool and generate the specified output."
category="org.eclipse.ui.externaltools"
modes= "run">
</launchConfigurationType>
</extension>
<extension point="org.eclipse.debug.ui.launchConfigurationTabGroups">
<launchConfigurationTabGroup
type="org.github.Antlr4.tool"
class="org.github.antlr4ide.builder.tool.AntlrToolLauncherTabGroup"
id="org.github.Antlr4.toolTabGroup">
</launchConfigurationTabGroup>
</extension>
</plugin>