Statistics
| Revision:

root / tmp / org.txm.practically.rcp / plugin.xml @ 486

History | View | Annotate | Download (7.4 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.2"?>
3
<plugin>
4
   <extension-point id="xmlCommandHandlers" name="XMLCommandHandlers" schema="schema/xmlCommandHandlers.exsd"/>
5
   <extension-point id="defineMacro" name="Define a macro" schema="schema/defineMacro.exsd"/>
6
   <extension-point id="scriptingSupport" name="Macro Scripting Support" schema="schema/scriptingSupport.exsd"/>
7
   <extension
8
         point="org.eclipse.core.runtime.preferences">
9
      <initializer
10
            class="practicallymacro.preferences.Initializer">
11
      </initializer>
12
   </extension>
13

    
14
   <extension
15
         point="org.eclipse.ui.actionSets">
16
      <actionSet
17
            id="com.none.playActionSet"
18
            label="EditorMacros.PlayActionSet"
19
            visible="true">
20
         <action
21
               class="practicallymacro.actions.PlayDropdownAction"
22
               definitionId="practicallymacro.actions.playLastMacro"
23
               icon="icons/play.gif"
24
               id="practicallymacro.actions.playMacroAction"
25
               label="&amp;Play Macro"
26
               style="pulldown"
27
               toolbarPath="Normal/additions"
28
               tooltip="Play Macro">
29
<!--            <enablement>
30
                    <or>
31
                               <objectClass name="org.eclipse.jface.text.ITextSelection"/>
32
                               <objectClass name="org.eclipse.core.resources.IFile"/>
33
                       </or>
34
            </enablement>
35
            -->
36
          </action>
37
         <action
38
               class="practicallymacro.actions.RecordCommandAction"
39
               definitionId="practicallymacro.actions.recordMacro"
40
               icon="icons/record.gif"
41
               id="practicallymacro.actions.recordMacroAction"
42
               label="&amp;Record Macro"
43
               retarget="false"
44
               state="false"
45
               style="push"
46
               toolbarPath="Normal/additions"
47
               tooltip="Record Macro">
48
            <!--<enablement>
49
                    <or>
50
                               <objectClass name="org.eclipse.jface.text.ITextSelection"/>
51
                       </or>
52
            </enablement>-->
53
         </action>
54
      </actionSet>
55
   </extension>
56
   
57
   <extension
58
         point="org.eclipse.ui.commands">
59
      <command
60
            categoryId="practicallymacro.category.utility.command"
61
            defaultHandler="practicallymacro.commands.PlayHandler"
62
            description="Play the last recorded macro"
63
            id="practicallymacro.actions.playLastMacro"
64
            name="Play last macro"/>
65
      <command
66
            categoryId="practicallymacro.category.utility.command"
67
            defaultHandler="practicallymacro.commands.QuickPlayHandler"
68
            description="Play a command"
69
            id="practicallymacro.actions.quickExecuteCommand"
70
            name="Quick Play Command"/>
71
      <command
72
            categoryId="practicallymacro.category.utility.command"
73
            defaultHandler="practicallymacro.commands.RecordHandler"
74
            description="Record a new macro"
75
            id="practicallymacro.actions.recordMacro"
76
            name="Record Macro"/>
77
      <command
78
            categoryId="practicallymacro.category.utility.command"
79
            defaultHandler="practicallymacro.commands.PlayCommand"
80
            description="Play any defined command"
81
            id="practicallymacro.actions.playCommand"
82
            name="Play command"/>
83
      <command
84
            categoryId="practicallymacro.category.utility.command"
85
            defaultHandler="practicallymacro.commands.MarkSelectionStart"
86
            description="Set the mark at the location of the current selection start."
87
            id="practicallymacro.actions.markSelectionStartCommand"
88
            name="Mark selection start"/>
89
      <command
90
            categoryId="practicallymacro.category.utility.command"
91
            defaultHandler="practicallymacro.commands.MarkSelectionEnd"
92
            description="Set the mark at the location of the current selection end"
93
            id="practicallymacro.actions.markSelectionEndCommand"
94
            name="Mark selection end"/>
95
      <command
96
            categoryId="practicallymacro.category.utility.command"
97
            defaultHandler="practicallymacro.commands.MoveCursorToMark"
98
            description="Set the cursor at the last mark location"
99
            id="practicallymacro.actions.setCursorAtMarkCommand"
100
            name="Set cursor at mark"/>
101
      <category
102
            description="Editor macros defined by the user"
103
            id="practicallymacro.category.usermacros"
104
            name="User defined editor macros">
105
      </category>
106
      <category
107
            description="Utiliity commands for recording editor macros"
108
            id="practicallymacro.category.utility.command"
109
            name="PracticallyMacro utility command">
110
      </category>
111
      <command
112
            categoryId="practicallymacro.category.utility.command"
113
            defaultHandler="practicallymacro.commands.ExtendSelectionToMark"
114
            description="Extend the current selection to the current mark position, or the current cursor position if there is no mark.  If there is no selection, use the current cursor position."
115
            id="practicallymacro.actions.extendSelectionToMarkCommand"
116
            name="Extend selection to mark">
117
      </command>
118
   </extension>
119
   <extension
120
         point="org.eclipse.ui.bindings">
121
      <key
122
            commandId="practicallymacro.actions.playLastMacro"
123
            contextId="org.eclipse.ui.textEditorScope"
124
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
125
            sequence="M1+M3+P"/>
126
      <key
127
            commandId="practicallymacro.actions.recordMacro"
128
            contextId="org.eclipse.ui.textEditorScope"
129
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
130
            sequence="M1+M3+R"/>
131
      <key
132
            commandId="practicallymacro.actions.quickExecuteCommand"
133
            contextId="org.eclipse.ui.textEditorScope"
134
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
135
            sequence="M1+M3+Q"/>
136
   </extension>
137
   <extension
138
         point="PracticallyMacro.xmlCommandHandlers">
139
      <XMLCommandHandler class="practicallymacro.commands.EclipseCommand" type="EclipseCommand"/>
140
      <XMLCommandHandler class="practicallymacro.commands.InsertStringCommand" type="InsertStringCommand"/>
141
      <XMLCommandHandler class="practicallymacro.commands.MacroScriptCommand" type="MacroScriptCommand"/>
142
      <XMLCommandHandler class="practicallymacro.commands.StyledTextCommand" type="styledTextCommand"/>
143
      <XMLCommandHandler class="practicallymacro.commands.FindCommand" type="MacroFindCommand"/>
144
      <XMLCommandHandler class="practicallymacro.commands.KeystrokeCommand" type="MacroKeystrokeCommand"/>
145
   </extension>
146
   <extension
147
         point="org.eclipse.ui.preferencePages">
148
      <page
149
            category="practicallymacro.editormacros.optionsPage"
150
            class="practicallymacro.dialogs.MacroDefinitionsPage"
151
            id="practicallymacro.editormacros.editingpage"
152
            name="Editor Macro Definitions">
153
      </page>
154
      <page
155
            class="practicallymacro.dialogs.OptionsPage"
156
            id="practicallymacro.editormacros.optionsPage"
157
            name="Practically Macro Options">
158
      </page>
159
   </extension>
160

    
161
        <extension point="org.eclipse.help.contexts">
162
            <contexts file="helpContexts.xml" />
163
        </extension>
164
 <extension
165
       point="org.eclipse.ui.startup">
166
    <startup
167
          class="practicallymacro.editormacros.MacroEarlyStatup">
168
    </startup>
169
 </extension>
170

    
171
</plugin>