| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.0"?> |
| <plugin> |
| |
| <extension point="org.eclipse.ui.editors"> |
| <editor |
| name="%DTD_Source_Page_Editor.name" |
| icon="icons/full/obj16/DTDFile.gif" |
| contributorClass="org.eclipse.wst.dtd.ui.internal.editor.ActionContributorDTD" |
| class="org.eclipse.wst.sse.ui.StructuredTextEditor" |
| symbolicFontName="org.eclipse.wst.sse.ui.textfont" |
| id="org.eclipse.wst.dtd.core.dtdsource.source"> |
| <contentTypeBinding |
| contentTypeId="org.eclipse.wst.dtd.core.dtdsource" /> |
| </editor> |
| </extension> |
| |
| <extension point="org.eclipse.wst.sse.ui.editorConfiguration"> |
| <contentOutlineConfiguration |
| class="org.eclipse.wst.dtd.ui.views.contentoutline.DTDContentOutlineConfiguration" |
| target="org.eclipse.wst.dtd.core.dtdsource" /> |
| <sourceViewerConfiguration |
| class="org.eclipse.wst.dtd.ui.StructuredTextViewerConfigurationDTD" |
| target="org.eclipse.wst.dtd.core.dtdsource" /> |
| <provisionalConfiguration |
| type="characterpairmatcher" |
| class="org.eclipse.wst.dtd.ui.internal.text.DTDDocumentRegionEdgeMatcher" |
| target="org.eclipse.wst.dtd.core.dtdsource" /> |
| <provisionalConfiguration |
| type="structuredtextfoldingprovider" |
| class="org.eclipse.wst.dtd.ui.internal.projection.StructuredTextFoldingProviderDTD" |
| target="org.eclipse.wst.dtd.core.dtdsource" /> |
| <provisionalDefinition |
| type="preferencepages" |
| value="org.eclipse.wst.sse.ui.preferences.dtd, org.eclipse.wst.sse.ui.preferences.dtd.templates, org.eclipse.wst.sse.ui.preferences.dtd.styles" |
| target="org.eclipse.wst.dtd.core.dtdsource" /> |
| <!-- provide syntax highlighting for DTD subset within XML --> |
| <provisionalConfiguration |
| type="linestyleprovider" |
| class="org.eclipse.wst.dtd.ui.internal.style.LineStyleProviderForDTDSubSet" |
| target="org.eclipse.wst.xml.dtd.internal_subset" /> |
| </extension> |
| |
| <extension point="org.eclipse.ui.editorActions"> |
| <editorContribution |
| targetID="org.eclipse.wst.dtd.core.dtdsource.source" |
| id="org.eclipse.wst.dtd.core.dtdsource.ruler.actions"> |
| <action |
| label="%AddBookmark.label" |
| helpContextId="org.eclipse.ui.bookmark_action_context" |
| class="org.eclipse.ui.texteditor.BookmarkRulerAction" |
| actionID="RulerDoubleClick" |
| id="org.eclipse.ui.texteditor.BookmarkRulerAction"/> |
| <action |
| label="%SelectRuler.label" |
| class="org.eclipse.ui.texteditor.SelectRulerAction" |
| actionID="RulerClick" |
| id="org.eclipse.ui.texteditor.SelectRulerAction"/> |
| </editorContribution> |
| </extension> |
| |
| <!-- use a specific annotation model with FileBuffers --> |
| <extension |
| point="org.eclipse.core.filebuffers.annotationModelCreation"> |
| <factory |
| contentTypeId="org.eclipse.wst.dtd.core.dtdsource" |
| class="org.eclipse.wst.sse.ui.internal.StructuredResourceMarkerAnnotationModelFactory" /> |
| </extension> |
| |
| <!-- Register the UI adapter factory provider --> |
| <extension |
| point="org.eclipse.wst.sse.ui.adapterFactoryDescription"> |
| <adapterFactoryDescription |
| class="org.eclipse.wst.dtd.ui.internal.registry.AdapterFactoryProviderForDTD"> |
| <contentType id="org.eclipse.wst.dtd.core.dtdsource" /> |
| </adapterFactoryDescription> |
| </extension> |
| |
| <!-- Editor actionsets --> |
| <extension point="org.eclipse.ui.actionSetPartAssociations"> |
| <actionSetPartAssociation |
| targetID="org.eclipse.ui.edit.text.actionSet.annotationNavigation"> |
| <part id="org.eclipse.wst.dtd.core.dtdsource.source" /> |
| </actionSetPartAssociation> |
| <actionSetPartAssociation |
| targetID="org.eclipse.ui.NavigateActionSet"> |
| <part id="org.eclipse.wst.dtd.core.dtdsource.source" /> |
| </actionSetPartAssociation> |
| </extension> |
| |
| <extension point="org.eclipse.ui.preferencePages"> |
| <page |
| name="%_UI_LABEL_DTD_FILES" |
| category="org.eclipse.wst.sse.ui.internal.provisional.preferences" |
| class="org.eclipse.wst.dtd.ui.internal.preferences.DTDFilesPreferencePage" |
| id="org.eclipse.wst.sse.ui.preferences.dtd"> |
| </page> |
| <page |
| name="%DTD_Templates.name" |
| category="org.eclipse.wst.sse.ui.preferences.dtd" |
| class="org.eclipse.wst.dtd.ui.internal.preferences.DTDTemplatePreferencePage" |
| id="org.eclipse.wst.sse.ui.preferences.dtd.templates"> |
| </page> |
| <page |
| name="%_UI_LABEL_DTD_STYLES" |
| category="org.eclipse.wst.sse.ui.preferences.dtd" |
| class="org.eclipse.wst.dtd.ui.internal.preferences.DTDColorPage" |
| id="org.eclipse.wst.sse.ui.preferences.dtd.styles"> |
| </page> |
| </extension> |
| |
| <!-- New DTD wizard --> |
| <extension point="org.eclipse.ui.newWizards"> |
| <wizard |
| id="org.eclipse.wst.dtd.ui.internal.wizard.NewDTDWizard" |
| name="%_UI_WIZARD_NEW_DTD" |
| class="org.eclipse.wst.dtd.ui.internal.wizard.NewDTDWizard" |
| category="org.eclipse.wst.XMLCategory" |
| icon="icons/full/etool16/newdtd_wiz.gif"> |
| <description>%_UI_CREATE_NEW_DTD_FILE</description> |
| <selection class="org.eclipse.core.resources.IResource" /> |
| </wizard> |
| </extension> |
| |
| <!-- initialize DTD ui preferences --> |
| <extension point="org.eclipse.core.runtime.preferences"> |
| <initializer |
| class="org.eclipse.wst.dtd.ui.internal.preferences.DTDUIPreferenceInitializer" /> |
| </extension> |
| |
| <extension point="org.eclipse.ui.popupMenus"> |
| <viewerContribution |
| targetID="org.eclipse.wst.dtd.core.dtdsource.source.RulerContext" |
| id="org.eclipse.ui.texteditor.ruler.context.actions"> |
| <action |
| label="%AddTask.label" |
| helpContextId="org.eclipse.ui.AddTask_action_context" |
| class="org.eclipse.ui.texteditor.TaskRulerAction" |
| tooltip="%AddTask.tooltip" |
| menubarPath="additions" |
| id="org.eclipse.ui.texteditor.TaskRulerAction"> |
| </action> |
| <action |
| label="%AddBookmark.label" |
| helpContextId="org.eclipse.ui.bookmark_action_context" |
| class="org.eclipse.ui.texteditor.BookmarkRulerAction" |
| tooltip="%AddBookmark.tooltip" |
| menubarPath="additions" |
| id="org.eclipse.ui.texteditor.BookmarkRulerAction"> |
| </action> |
| </viewerContribution> |
| </extension> |
| |
| <!-- ====================================================== --> |
| <!-- Define Assign Validate action on .dtd file --> |
| <!-- ====================================================== --> |
| <extension point="org.eclipse.ui.popupMenus"> |
| <objectContribution |
| objectClass="org.eclipse.core.resources.IFile" |
| nameFilter="*.dtd" |
| id="org.eclipse.wst.dtd.validation.dtdaction"> |
| <action |
| label="%_UI_MENU_VALIDATE_DTD" |
| class="org.eclipse.wst.dtd.ui.internal.validation.ValidateDTDActionDelegate" |
| enablesFor="1" |
| id="org.eclipse.wst.dtd.ui.internal.validation.ValidateDTDActionDelegate"> |
| </action> |
| </objectContribution> |
| </extension> |
| |
| <!-- ====================================================== --> |
| <!-- Register the DTD validator with the validation --> |
| <!-- framework. --> |
| <!-- ====================================================== --> |
| <extension |
| id="dtdDTDValidator" |
| name="%_UI_XML_DTD_VALIDATOR" |
| point="org.eclipse.wst.validation.validator"> |
| <validator> |
| <filter |
| objectClass="org.eclipse.core.resources.IFile" |
| caseSensitive="false" |
| nameFilter="*.dtd"> |
| </filter> |
| <helper |
| class="org.eclipse.wst.xml.core.internal.validation.core.Helper"> |
| </helper> |
| <run |
| class="org.eclipse.wst.dtd.ui.internal.validation.DTDValidator"> |
| </run> |
| </validator> |
| </extension> |
| |
| <!-- ====================================================== --> |
| <!-- DTD as you type validation --> |
| <!-- ====================================================== --> |
| <extension point="org.eclipse.wst.sse.ui.sourcevalidation"> |
| <validator |
| scope="total" |
| class="org.eclipse.wst.dtd.ui.internal.validation.DTDValidator" |
| id="org.eclipse.wst.dtd.dtdsourcevalidator"> |
| <contentTypeIdentifier |
| id="org.eclipse.wst.dtd.core.dtdsource"> |
| <partitionType id="org.eclipse.wst.dtd.DEFAULT"> |
| </partitionType> |
| </contentTypeIdentifier> |
| </validator> |
| </extension> |
| |
| <!-- Templates --> |
| <extension point="org.eclipse.ui.editors.templates"> |
| <contextType |
| name="%DTD_New_context_type_Extension_Element.name" |
| class="org.eclipse.wst.dtd.ui.internal.templates.TemplateContextTypeDTD" |
| id="dtd_new"> |
| </contextType> |
| </extension> |
| |
| </plugin> |