blob: 4593910b56b6f1c4138e3bdc136c9a73690b525e [file] [log] [blame]
nitind958d79a2004-11-23 19:23:00 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
jeffliu38477e82005-05-30 00:52:19 +00003<plugin>
nitind958d79a2004-11-23 19:23:00 +00004
david_williamsad0e4cc2005-06-04 01:49:19 +00005 <extension point="org.eclipse.ui.editors">
6 <editor
7 name="%CSS_Source_Page_Editor.name"
david_williamsb5d05632006-02-27 09:24:00 +00008 icon="$nl$/icons/full/obj16/sourceEditor.gif"
david_williamsad0e4cc2005-06-04 01:49:19 +00009 contributorClass="org.eclipse.wst.css.ui.internal.ActionContributorCSS"
nitind102e60a2005-09-15 12:42:42 +000010 class="org.eclipse.wst.sse.ui.StructuredTextEditor"
david_williamsad0e4cc2005-06-04 01:49:19 +000011 symbolicFontName="org.eclipse.wst.sse.ui.textfont"
12 id="org.eclipse.wst.css.core.csssource.source">
13 <contentTypeBinding
14 contentTypeId="org.eclipse.wst.css.core.csssource" />
15 </editor>
16 </extension>
17
nitindf8e77632005-09-07 23:49:25 +000018 <extension point="org.eclipse.wst.sse.ui.editorConfiguration">
19 <contentOutlineConfiguration
nitind1bf20a12005-09-15 11:48:15 +000020 class="org.eclipse.wst.css.ui.views.contentoutline.CSSContentOutlineConfiguration"
david_williamsad0e4cc2005-06-04 01:49:19 +000021 target="org.eclipse.wst.css.core.csssource" />
nitindf8e77632005-09-07 23:49:25 +000022 <sourceViewerConfiguration
nitind1bf20a12005-09-15 11:48:15 +000023 class="org.eclipse.wst.css.ui.StructuredTextViewerConfigurationCSS"
david_williamsad0e4cc2005-06-04 01:49:19 +000024 target="org.eclipse.wst.css.core.csssource" />
nitindf8e77632005-09-07 23:49:25 +000025 <propertySheetConfiguration
nitind1bf20a12005-09-15 11:48:15 +000026 class="org.eclipse.wst.css.ui.views.properties.CSSPropertySheetConfiguration"
david_williamsad0e4cc2005-06-04 01:49:19 +000027 target="org.eclipse.wst.css.core.csssource" />
nitindf8e77632005-09-07 23:49:25 +000028 <provisionalConfiguration
david_williamsad0e4cc2005-06-04 01:49:19 +000029 type="characterpairmatcher"
30 class="org.eclipse.wst.css.ui.internal.text.CSSDocumentRegionEdgeMatcher"
31 target="org.eclipse.wst.css.core.csssource" />
nitindf8e77632005-09-07 23:49:25 +000032 <provisionalConfiguration
david_williamsad0e4cc2005-06-04 01:49:19 +000033 type="structuredtextfoldingprovider"
34 class="org.eclipse.wst.css.ui.internal.projection.StructuredTextFoldingProviderCSS"
35 target="org.eclipse.wst.css.core.csssource" />
nitindf8e77632005-09-07 23:49:25 +000036 <provisionalDefinition
david_williamsad0e4cc2005-06-04 01:49:19 +000037 type="preferencepages"
nitindf8e77632005-09-07 23:49:25 +000038 value="org.eclipse.wst.sse.ui.preferences.css, org.eclipse.wst.sse.ui.preferences.css.source, org.eclipse.wst.css.ui.preferences.templates, org.eclipse.wst.sse.ui.preferences.css.styles"
david_williamsad0e4cc2005-06-04 01:49:19 +000039 target="org.eclipse.wst.css.core.csssource" />
40 </extension>
david_williamse6088952006-04-17 01:10:40 +000041
david_williamsad0e4cc2005-06-04 01:49:19 +000042 <extension
43 point="org.eclipse.wst.sse.ui.adapterFactoryDescription">
44 <adapterFactoryDescription
45 class="org.eclipse.wst.css.ui.internal.registry.AdapterFactoryProviderCSS">
46 <contentType id="org.eclipse.wst.css.core.csssource" />
47 </adapterFactoryDescription>
48 </extension>
49
50 <extension
51 point="org.eclipse.core.filebuffers.annotationModelCreation">
52 <factory
53 contentTypeId="org.eclipse.wst.css.core.csssource"
54 class="org.eclipse.wst.sse.ui.internal.StructuredResourceMarkerAnnotationModelFactory" />
55 </extension>
56
57 <extension point="org.eclipse.ui.preferencePages">
58 <page
59 name="%CSS_Files.name"
60 category="org.eclipse.wst.sse.ui.internal.provisional.preferences"
61 class="org.eclipse.wst.css.ui.internal.preferences.ui.CSSFilesPreferencePage"
62 id="org.eclipse.wst.sse.ui.preferences.css">
amywu73701a02006-12-06 00:16:27 +000063 <keywordReference id="org.eclipse.wst.css.ui.files"/>
david_williamsad0e4cc2005-06-04 01:49:19 +000064 </page>
65 <page
66 name="%CSS_Source.name"
67 category="org.eclipse.wst.sse.ui.preferences.css"
68 class="org.eclipse.wst.css.ui.internal.preferences.ui.CSSSourcePreferencePage"
69 id="org.eclipse.wst.sse.ui.preferences.css.source">
amywu73701a02006-12-06 00:16:27 +000070 <keywordReference id="org.eclipse.wst.css.ui.source"/>
david_williamsad0e4cc2005-06-04 01:49:19 +000071 </page>
72 <page
nitind057e5c82005-06-16 04:12:26 +000073 name="%CSS_Templates.name"
74 category="org.eclipse.wst.sse.ui.preferences.css"
75 class="org.eclipse.wst.css.ui.internal.preferences.ui.CSSTemplatePreferencePage"
76 id="org.eclipse.wst.css.ui.preferences.templates">
amywu73701a02006-12-06 00:16:27 +000077 <keywordReference id="org.eclipse.wst.css.ui.templates"/>
nitind057e5c82005-06-16 04:12:26 +000078 </page>
79 <page
nitind83148392007-01-31 00:49:07 +000080 name="%CSS_Syntax_Coloring"
david_williamsad0e4cc2005-06-04 01:49:19 +000081 category="org.eclipse.wst.sse.ui.preferences.css"
nitind83148392007-01-31 00:49:07 +000082 class="org.eclipse.wst.css.ui.internal.preferences.ui.CSSSyntaxColoringPage"
david_williamsad0e4cc2005-06-04 01:49:19 +000083 id="org.eclipse.wst.sse.ui.preferences.css.styles">
amywu73701a02006-12-06 00:16:27 +000084 <keywordReference id="org.eclipse.wst.css.ui.styles"/>
david_williamsad0e4cc2005-06-04 01:49:19 +000085 </page>
86 </extension>
87
amywu3a205672006-02-23 05:05:23 +000088 <!-- CSS Content Settings Property Page -->
david_williamsad0e4cc2005-06-04 01:49:19 +000089 <extension point="org.eclipse.ui.propertyPages">
90 <page
david_williamsad0e4cc2005-06-04 01:49:19 +000091 name="%WebContentSettings.name"
amywu3a205672006-02-23 05:05:23 +000092 class="org.eclipse.wst.css.ui.internal.contentproperties.ui.CSSWebContentSettingsPropertyPage"
93 id="org.eclipse.wst.css.ui.internal.contentproperties.CSSWebContentSettingsPropertyPage.css">
amywu60df3242006-11-03 23:45:29 +000094 <enabledWhen>
95 <and>
96 <adapt type="org.eclipse.core.resources.IFile">
97 <or>
98 <test
99 forcePluginActivation="true"
100 property="org.eclipse.core.resources.contentTypeId"
101 value="org.eclipse.wst.css.core.csssource" />
102 </or>
103 </adapt>
104 </and>
105 </enabledWhen>
amywu73701a02006-12-06 00:16:27 +0000106 <keywordReference id="org.eclipse.wst.css.ui.webcontent"/>
david_williamsad0e4cc2005-06-04 01:49:19 +0000107 </page>
108 </extension>
109
amywu73701a02006-12-06 00:16:27 +0000110 <!-- Keywords for preference and properties pages -->
111 <extension point="org.eclipse.ui.keywords">
112 <keyword
113 label="%preferenceKeywords.files"
114 id="org.eclipse.wst.css.ui.files"/>
115 <keyword
116 label="%preferenceKeywords.source"
117 id="org.eclipse.wst.css.ui.source"/>
118 <keyword
119 label="%preferenceKeywords.templates"
120 id="org.eclipse.wst.css.ui.templates"/>
121 <keyword
122 label="%preferenceKeywords.styles"
123 id="org.eclipse.wst.css.ui.styles"/>
124 <keyword
125 label="%preferenceKeywords.webcontent"
126 id="org.eclipse.wst.css.ui.webcontent"/>
127 </extension>
128
david_williamsad0e4cc2005-06-04 01:49:19 +0000129 <!-- Editor actionsets -->
130 <extension point="org.eclipse.ui.actionSetPartAssociations">
131 <actionSetPartAssociation
132 targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation">
133 <part id="org.eclipse.wst.css.core.csssource.source"></part>
134 </actionSetPartAssociation>
135 <actionSetPartAssociation
136 targetID="org.eclipse.ui.NavigateActionSet">
137 <part id="org.eclipse.wst.css.core.csssource.source"></part>
138 </actionSetPartAssociation>
139 </extension>
140
nitind410b6c22005-01-25 15:57:22 +0000141 <!-- initialize css ui preferences -->
142 <extension point="org.eclipse.core.runtime.preferences">
david_williamsad0e4cc2005-06-04 01:49:19 +0000143 <initializer
144 class="org.eclipse.wst.css.ui.internal.preferences.CSSUIPreferenceInitializer" />
nitind410b6c22005-01-25 15:57:22 +0000145 </extension>
david_williamsad0e4cc2005-06-04 01:49:19 +0000146
nitindcea15782005-02-17 04:54:36 +0000147 <!-- New CSS wizard -->
148 <extension point="org.eclipse.ui.newWizards">
david_williamsad0e4cc2005-06-04 01:49:19 +0000149 <wizard
150 id="org.eclipse.wst.css.ui.internal.wizard.NewCSSWizard"
nitindcea15782005-02-17 04:54:36 +0000151 name="%_UI_WIZARD_NAME"
152 class="org.eclipse.wst.css.ui.internal.wizard.NewCSSWizard"
153 category="org.eclipse.wst.web.ui"
david_williamsb5d05632006-02-27 09:24:00 +0000154 icon="$nl$/icons/full/etool16/newcss_wiz.gif">
nitindcea15782005-02-17 04:54:36 +0000155 <description>%_UI_WIZARD_CREATE_NEW_FILE</description>
156 <selection class="org.eclipse.core.resources.IResource" />
157 </wizard>
158 </extension>
159
david_williamsad0e4cc2005-06-04 01:49:19 +0000160 <extension point="org.eclipse.ui.popupMenus">
david_williamsa4dd7662005-04-14 00:33:20 +0000161 <viewerContribution
162 targetID="org.eclipse.wst.css.core.csssource.source.RulerContext"
david_williamsad0e4cc2005-06-04 01:49:19 +0000163 id="org.eclipse.ui.texteditor.ruler.context.actions">
david_williamsa4dd7662005-04-14 00:33:20 +0000164 <action
165 label="%AddTask.label"
166 helpContextId="org.eclipse.ui.AddTask_action_context"
167 class="org.eclipse.ui.texteditor.TaskRulerAction"
168 tooltip="%AddTask.tooltip"
169 menubarPath="additions"
170 id="org.eclipse.ui.texteditor.TaskRulerAction">
171 </action>
172 <action
173 label="%AddBookmark.label"
174 helpContextId="org.eclipse.ui.bookmark_action_context"
175 class="org.eclipse.ui.texteditor.BookmarkRulerAction"
176 tooltip="%AddBookmark.tooltip"
177 menubarPath="additions"
178 id="org.eclipse.ui.texteditor.BookmarkRulerAction">
179 </action>
180 </viewerContribution>
181 </extension>
david_williamsad0e4cc2005-06-04 01:49:19 +0000182
nitind057e5c82005-06-16 04:12:26 +0000183 <!-- Templates -->
184 <extension point="org.eclipse.ui.editors.templates">
185 <contextType
186 name="%All_CSS_context_type_Extension_Element.name"
187 class="org.eclipse.wst.css.ui.internal.templates.TemplateContextTypeCSS"
188 id="css_all">
189 </contextType>
190 <contextType
191 name="%CSS_New_context_type_Extension_Element.name"
192 class="org.eclipse.wst.css.ui.internal.templates.TemplateContextTypeCSS"
193 id="css_new">
194 </contextType>
195 <include
196 file="templates/cssdefault-templates.xml"
david_williams73c174f2005-07-08 20:26:14 +0000197 translations="$nl$/templates/cssdefault-templates.properties">
nitind057e5c82005-06-16 04:12:26 +0000198 </include>
199 </extension>
nitind102e60a2005-09-15 12:42:42 +0000200
201 <!-- CSS editor actions -->
202 <extension point="org.eclipse.ui.editorActions">
203 <editorContribution
204 id="org.eclipse.wst.css.core.csssource.source.editorActions"
205 targetID="org.eclipse.wst.css.core.csssource.source">
206 <action
207 id="CleanupDocument"
208 label="%CleanupDocument_label"
209 definitionId="org.eclipse.wst.sse.ui.cleanup.document"
210 tooltip="%CleanupDocument_tooltip"
211 class="org.eclipse.wst.css.ui.internal.edit.ui.CleanupActionCSSDelegate"
212 actionID="CleanupDocument">
213 </action>
214 <action
215 id="StructureSelectEnclosing"
216 label="%StructureSelectEnclosing_label"
217 definitionId="org.eclipse.wst.sse.ui.structure.select.enclosing"
218 tooltip="%StructureSelectEnclosing_tooltip"
219 class="org.eclipse.wst.css.ui.internal.selection.StructuredSelectEnclosingCSSActionDelegate"
220 actionID="StructureSelectEnclosing">
221 </action>
222 <action
223 id="StructureSelectNext"
224 label="%StructureSelectNext_label"
225 definitionId="org.eclipse.wst.sse.ui.structure.select.next"
226 tooltip="%StructureSelectNext_tooltip"
227 class="org.eclipse.wst.css.ui.internal.selection.StructuredSelectNextCSSActionDelegate"
228 actionID="StructureSelectNext">
229 </action>
230 <action
231 id="StructureSelectPrevious"
232 label="%StructureSelectPrevious_label"
233 definitionId="org.eclipse.wst.sse.ui.structure.select.previous"
234 tooltip="%StructureSelectPrevious_tooltip"
235 class="org.eclipse.wst.css.ui.internal.selection.StructuredSelectPreviousCSSActionDelegate"
236 actionID="StructureSelectPrevious">
237 </action>
238 <action
239 id="StructureSelectHistory"
240 label="%StructureSelectHistory_label"
241 definitionId="org.eclipse.wst.sse.ui.structure.select.last"
242 tooltip="%StructureSelectHistory_tooltip"
243 class="org.eclipse.wst.sse.ui.internal.selection.StructuredSelectHistoryActionDelegate"
244 actionID="StructureSelectHistory">
245 </action>
246 </editorContribution>
nitind6d98c7b2005-10-07 21:17:31 +0000247 <editorContribution
248 targetID="org.eclipse.wst.css.core.csssource.source"
249 id="org.eclipse.wst.css.core.csssource.ruler.actions">
250 <action
amywu34aa9802005-12-06 23:33:16 +0000251 label="%AddBookmark.label"
nitind6d98c7b2005-10-07 21:17:31 +0000252 helpContextId="org.eclipse.ui.bookmark_action_context"
253 class="org.eclipse.ui.texteditor.BookmarkRulerAction"
254 actionID="RulerDoubleClick"
255 id="org.eclipse.ui.texteditor.BookmarkRulerAction"/>
256 <action
amywu34aa9802005-12-06 23:33:16 +0000257 label="%SelectRuler.label"
nitind6d98c7b2005-10-07 21:17:31 +0000258 class="org.eclipse.ui.texteditor.SelectRulerAction"
259 actionID="RulerClick"
260 id="org.eclipse.ui.texteditor.SelectRulerAction"/>
261 </editorContribution>
nitind102e60a2005-09-15 12:42:42 +0000262 </extension>
nitind958d79a2004-11-23 19:23:00 +0000263</plugin>