-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
211 lines (207 loc) · 9.62 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
201
202
203
204
205
206
207
208
209
210
211
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension-point id="xmlCommandHandlers" name="XMLCommandHandlers" schema="schema/xmlCommandHandlers.exsd"/>
<extension-point id="defineMacro" name="Define a macro" schema="schema/defineMacro.exsd"/>
<extension-point id="scriptingSupport" name="Macro Scripting Support" schema="schema/scriptingSupport.exsd"/>
<extension
point="org.eclipse.core.runtime.preferences">
<initializer
class="practicallymacro.preferences.Initializer">
</initializer>
</extension>
<extension
point="org.eclipse.ui.actionSets">
<actionSet
id="com.none.playActionSet"
label="EditorMacros.PlayActionSet"
visible="true">
<action
class="practicallymacro.actions.PlayDropdownAction"
definitionId="practicallymacro.actions.playLastMacro"
icon="icons/play.gif"
id="practicallymacro.actions.playMacroAction"
label="&Play Macro"
style="pulldown"
toolbarPath="Normal/additions"
tooltip="Play Macro">
<!-- <enablement>
<or>
<objectClass name="org.eclipse.jface.text.ITextSelection"/>
<objectClass name="org.eclipse.core.resources.IFile"/>
</or>
</enablement>
-->
</action>
<action
class="practicallymacro.actions.QuickExecuteAction"
definitionId="practicallymacro.actions.quickExecuteCommand"
icon="icons/quickplay.gif"
id="practicallymacro.actions.quickExecuteCommandAction"
label="&Quick Play"
retarget="false"
state="false"
style="push"
toolbarPath="Normal/additions"
tooltip="Quick play a command">
<!--<enablement>
<or>
<objectClass name="org.eclipse.jface.text.ITextSelection"/>
</or>
</enablement>-->
</action>
<action
class="practicallymacro.actions.RecordCommandAction"
definitionId="practicallymacro.actions.recordMacro"
icon="icons/record.gif"
id="practicallymacro.actions.recordMacroAction"
label="&Record Macro"
retarget="false"
state="false"
style="push"
toolbarPath="Normal/additions"
tooltip="Record Macro">
<!--<enablement>
<or>
<objectClass name="org.eclipse.jface.text.ITextSelection"/>
</or>
</enablement>-->
</action>
</actionSet>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.PlayHandler"
description="Play the last recorded macro"
id="practicallymacro.actions.playLastMacro"
name="Play last macro"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.QuickPlayHandler"
description="Play a command"
id="practicallymacro.actions.quickExecuteCommand"
name="Quick Play Command"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.RecordHandler"
description="Record a new macro"
id="practicallymacro.actions.recordMacro"
name="Record Macro"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.PlayCommand"
description="Play any defined command"
id="practicallymacro.actions.playCommand"
name="Play command"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.MarkSelectionStart"
description="Set mark #1 at the location of the current selection start (earliest in document) or cursor position."
id="practicallymacro.actions.markSelectionStartCommand"
name="Set mark #1 at selection start"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.MarkSelectionStart2"
description="Set mark #2 at the location of the current selection start (earliest in document) or cursor position."
id="practicallymacro.actions.markSelectionStartCommand2"
name="Set mark #2 at selection start"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.MarkSelectionEnd"
description="Set mark #1 at the location of the current selection end (farthest in document) or cursor position."
id="practicallymacro.actions.markSelectionEndCommand"
name="Set mark #1 at selection end"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.MarkSelectionEnd2"
description="Set mark #2 at the location of the current selection end (farthest in document) or cursor position."
id="practicallymacro.actions.markSelectionEndCommand2"
name="Set mark #2 at selection end"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.MoveCursorToMark"
description="Move the cursor to the location of mark #1."
id="practicallymacro.actions.setCursorAtMarkCommand"
name="Move cursor to mark #1"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.MoveCursorToMark2"
description="Move the cursor to the location of mark #2."
id="practicallymacro.actions.setCursorAtMarkCommand2"
name="Move cursor to mark #2"/>
<category
description="Editor macros defined by the user"
id="practicallymacro.category.usermacros"
name="User defined editor macros">
</category>
<category
description="Utiliity commands for recording editor macros"
id="practicallymacro.category.utility.command"
name="PracticallyMacro utility command">
</category>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.ExtendSelectionToMark"
description="Select from the current selection anchor (or current cursor position) to the location of mark #1."
id="practicallymacro.actions.extendSelectionToMarkCommand"
name="Extend selection to mark #1"/>
<command
categoryId="practicallymacro.category.utility.command"
defaultHandler="practicallymacro.commands.ExtendSelectionToMark2"
description="Select from the current selection anchor (or current cursor position) to the location of mark #2."
id="practicallymacro.actions.extendSelectionToMarkCommand2"
name="Extend selection to mark #2"/>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="practicallymacro.actions.playLastMacro"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M3+P"/>
<key
commandId="practicallymacro.actions.recordMacro"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M3+R"/>
<key
commandId="practicallymacro.actions.quickExecuteCommand"
contextId="org.eclipse.ui.textEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+M3+Q"/>
</extension>
<extension
point="PracticallyMacro.xmlCommandHandlers">
<XMLCommandHandler class="practicallymacro.commands.EclipseCommand" type="EclipseCommand"/>
<XMLCommandHandler class="practicallymacro.commands.InsertStringCommand" type="InsertStringCommand"/>
<XMLCommandHandler class="practicallymacro.commands.MacroScriptCommand" type="MacroScriptCommand"/>
<XMLCommandHandler class="practicallymacro.commands.StyledTextCommand" type="styledTextCommand"/>
<XMLCommandHandler class="practicallymacro.commands.FindCommand" type="MacroFindCommand"/>
<XMLCommandHandler class="practicallymacro.commands.KeystrokeCommand" type="MacroKeystrokeCommand"/>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="practicallymacro.editormacros.optionsPage"
class="practicallymacro.dialogs.MacroDefinitionsPage"
id="practicallymacro.editormacros.editingpage"
name="Editor Macro Definitions">
</page>
<page
class="practicallymacro.dialogs.OptionsPage"
id="practicallymacro.editormacros.optionsPage"
name="Practically Macro Options">
</page>
</extension>
<extension point="org.eclipse.help.contexts">
<contexts file="helpContexts.xml" />
</extension>
<extension
point="org.eclipse.ui.startup">
<startup
class="practicallymacro.editormacros.MacroEarlyStatup">
</startup>
</extension>
</plugin>