ac3d48aa5047da24c91cb36b0b4867c22c0fba4a
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.css.ui / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.0"?>
3 <plugin
4    id="net.sourceforge.phpeclipse.css.ui"
5    name="%pluginName"
6    version="1.1.1"
7    provider-name="%providerName"
8    class="net.sourceforge.phpeclipse.css.ui.CssUI">
9
10    <runtime>
11       <library name="cssui.jar"/>
12    </runtime>
13    <requires>
14       <import plugin="net.sourceforge.phpeclipse.core"/>
15       <import plugin="net.sourceforge.phpeclipse.css.core"/>
16       <import plugin="net.sourceforge.phpeclipse.ui"/>
17       <import plugin="org.eclipse.compare"/>
18       <import plugin="org.eclipse.core.runtime"/>
19       <import plugin="org.eclipse.core.filebuffers"/>
20       <import plugin="org.eclipse.core.resources"/>
21       <import plugin="org.eclipse.help"/>
22       <import plugin="org.eclipse.jface.text"/>
23       <import plugin="org.eclipse.osgi"/>
24       <import plugin="org.eclipse.ui"/>
25       <import plugin="org.eclipse.ui.editors"/>
26       <import plugin="org.eclipse.ui.ide"/>
27       <import plugin="org.eclipse.ui.views"/>
28       <import plugin="org.eclipse.ui.workbench.texteditor"/>
29    </requires>
30
31
32    <extension
33          point="org.eclipse.core.runtime.adapters">
34       <factory
35             class="net.sourceforge.phpeclipse.css.ui.internal.properties.CssPropertiesAdapterFactory"
36             adaptableType="net.sourceforge.phpeclipse.css.core.model.IRule">
37          <adapter type="org.eclipse.ui.views.properties.IPropertySource"/>
38       </factory>
39    </extension>
40    <extension
41          point="org.eclipse.ui.editors">
42       <editor
43             name="%editorName"
44             icon="icons/style_sheet_obj.gif"
45             extensions="css"
46             contributorClass="net.sourceforge.phpeclipse.css.ui.internal.editor.CssEditorActionContributor"
47             class="net.sourceforge.phpeclipse.css.ui.internal.editor.CssEditor"
48             id="net.sourceforge.phpeclipse.css.ui.editor">
49       </editor>
50    </extension>
51    <extension
52          point="org.eclipse.core.filebuffers.documentSetup">
53       <participant
54             extensions="css"
55             class="net.sourceforge.phpeclipse.css.ui.internal.CssDocumentSetupParticipant">
56       </participant>
57    </extension>
58    <extension
59          point="org.eclipse.ui.editors.documentProviders">
60       <provider
61             extensions="css"
62             class="net.sourceforge.phpeclipse.css.ui.internal.CssDocumentProvider"
63             id="net.sourceforge.phpeclipse.css.ui.documentProvider">
64       </provider>
65    </extension>
66    <extension
67          point="org.eclipse.ui.fontDefinitions">
68       <fontDefinition
69             label="%editorFontDefinition.label"
70             defaultsTo="org.eclipse.jface.textfont"
71             id="net.sourceforge.phpeclipse.css.ui.editorfont">
72          <description>
73             %editorFontDefinition.description
74          </description>
75       </fontDefinition>
76       <fontDefinition
77             label="%compareFontDefinition.label"
78             defaultsTo="org.eclipse.compare.contentmergeviewer.TextMergeViewer"
79             id="net.sourceforge.phpeclipse.css.ui.internal.compare.CssMergeViewer">
80          <description>
81             %compareFontDefinition.description
82          </description>
83       </fontDefinition>
84    </extension>
85    <extension
86          point="org.eclipse.ui.preferencePages">
87       <page
88             name="%preferencePage.name"
89             category="net.sourceforge.phpeclipse.ui.preferencePage"
90             class="net.sourceforge.phpeclipse.css.ui.internal.preferences.CssPreferencePage"
91             id="net.sourceforge.phpeclipse.css.ui.preferencePage">
92       </page>
93       <page
94             name="%editorPreferencePage.name"
95             category="net.sourceforge.phpeclipse.css.ui.preferencePage"
96             class="net.sourceforge.phpeclipse.css.ui.internal.preferences.CssEditorPreferencePage"
97             id="net.sourceforge.phpeclipse.css.ui.editor.preferencePage">
98       </page>
99    </extension>
100    <extension
101          point="org.eclipse.ui.propertyPages">
102 <!-- TODO: Only enable the following property page for projects with a
103            future "Web" nature -->
104       <page
105             objectClass="org.eclipse.core.resources.IProject"
106             name="%propertyPage.name"
107             class="net.sourceforge.phpeclipse.css.ui.internal.properties.CssPropertyPage"
108             id="net.sourceforge.phpeclipse.css.ui.propertyPage">
109       </page>
110       <page
111             objectClass="org.eclipse.core.resources.IResource"
112             name="%propertyPage.name"
113             nameFilter="*.css"
114             class="net.sourceforge.phpeclipse.css.ui.internal.properties.CssPropertyPage"
115             id="net.sourceforge.phpeclipse.css.ui.propertyPage">
116       </page>
117    </extension>
118    <extension
119          point="org.eclipse.ui.commands">
120       <category
121             name="%sourceCategory.label"
122             description="%sourceMenu.description"
123             id="net.sourceforge.phpeclipse.css.ui.sourceCategory">
124       </category>
125       <command
126             name="%commentAction.label"
127             description="%commentAction.description"
128             category="org.eclipse.jdt.ui.category.source"
129             id="net.sourceforge.phpeclipse.css.ui.commentAction">
130       </command>
131       <keyBinding
132             string="Ctrl+/"
133             command="net.sourceforge.phpeclipse.css.ui.commentAction"
134             configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
135       </keyBinding>
136       <keyBinding
137             platform="carbon"
138             string="Ctrl+/"
139             command="net.sourceforge.phpeclipse.css.ui.commentAction"
140             configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
141       </keyBinding>
142       <keyBinding
143             platform="carbon"
144             string="Command+/"
145             command="net.sourceforge.phpeclipse.css.ui.commentAction"
146             configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
147       </keyBinding>
148       <command
149             name="%uncommentAction.label"
150             description="%uncommentAction.description"
151             category="org.eclipse.jdt.ui.category.source"
152             id="net.sourceforge.phpeclipse.css.ui.uncommentAction">
153       </command>
154       <keyBinding
155             string="Ctrl+\"
156             command="net.sourceforge.phpeclipse.css.ui.uncommentAction"
157             configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
158       </keyBinding>
159       <keyBinding
160             platform="carbon"
161             string="Ctrl+\"
162             command="net.sourceforge.phpeclipse.css.ui.uncommentAction"
163             configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
164       </keyBinding>
165       <keyBinding
166             platform="carbon"
167             string="Command+\"
168             command="net.sourceforge.phpeclipse.css.ui.uncommentAction"
169             configuration="org.eclipse.ui.defaultAcceleratorConfiguration">
170       </keyBinding>
171    </extension>
172    <extension
173          point="org.eclipse.ui.actionSets">
174       <actionSet
175             label="%authoringActions.label"
176             id="net.sourceforge.phpeclipse.css.ui.authoringActions">
177          <menu
178                label="%sourceMenu.label"
179                path="edit"
180                id="net.sourceforge.phpeclipse.css.ui.sourceMenu">
181             <separator
182                   name="editGroup">
183             </separator>
184          </menu>
185          <action
186                label="%shiftLeftAction.label"
187                retarget="true"
188                menubarPath="net.sourceforge.phpeclipse.css.ui.sourceMenu/editGroup"
189                id="org.eclipse.ui.edit.text.shiftLeft">
190          </action>
191          <action
192                label="%shiftRightAction.label"
193                retarget="true"
194                menubarPath="net.sourceforge.phpeclipse.css.ui.sourceMenu/editGroup"
195                id="org.eclipse.ui.edit.text.shiftRight">
196          </action>
197          <action
198                definitionId="net.sourceforge.phpeclipse.css.ui.uncommentAction"
199                label="%uncommentAction.label"
200                retarget="true"
201                menubarPath="net.sourceforge.phpeclipse.css.ui.sourceMenu/editGroup"
202                id="net.sourceforge.phpeclipse.css.ui.uncommentAction">
203          </action>
204          <action
205                definitionId="net.sourceforge.phpeclipse.css.ui.commentAction"
206                label="%commentAction.label"
207                retarget="true"
208                menubarPath="net.sourceforge.phpeclipse.css.ui.sourceMenu/editGroup"
209                id="net.sourceforge.phpeclipse.css.ui.commentAction">
210          </action>
211       </actionSet>
212    </extension>
213    <extension
214          point="org.eclipse.ui.actionSetPartAssociations">
215       <actionSetPartAssociation
216             targetID="net.sourceforge.phpeclipse.css.ui.authoringActions">
217          <part
218                id="net.sourceforge.phpeclipse.css.ui.editor">
219          </part>
220       </actionSetPartAssociation>
221       <actionSetPartAssociation
222             targetID="org.eclipse.ui.edit.text.actionSet.presentation">
223          <part
224                id="net.sourceforge.phpeclipse.css.ui.editor">
225          </part>
226       </actionSetPartAssociation>
227    </extension>
228    <extension
229          point="org.eclipse.compare.contentMergeViewers">
230       <viewer
231             extensions="css"
232             class="net.sourceforge.phpeclipse.css.ui.internal.compare.CssMergeViewerCreator"
233             id="net.sourceforge.phpeclipse.css.ui.compare.contentMergeViewer">
234       </viewer>
235    </extension>
236    <extension
237          point="org.eclipse.compare.structureCreators">
238       <structureCreator
239             extensions="css"
240             class="net.sourceforge.phpeclipse.css.ui.internal.compare.CssStructureCreator"
241             id="net.sourceforge.phpeclipse.css.ui.compare.structureCreator">
242       </structureCreator>
243    </extension>
244
245 </plugin>