blob: beb460f546c0f7af7f0db2fe735a0b626072bbb9 [file] [log] [blame]
david_williamscfdb2cd2004-11-11 08:37:49 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
jeffliu38477e82005-05-30 00:52:19 +00003<plugin>
david_williamscfdb2cd2004-11-11 08:37:49 +00004
david_williamsad0e4cc2005-06-04 01:49:19 +00005 <extension point="org.eclipse.wst.sse.core.modelHandler">
david_williamscfdb2cd2004-11-11 08:37:49 +00006 <modelHandler
nitindd6e591d2005-03-14 22:21:57 +00007 class="org.eclipse.wst.dtd.core.internal.modelhandler.ModelHandlerForDTD"
david_williamscfdb2cd2004-11-11 08:37:49 +00008 associatedContentTypeId="org.eclipse.wst.dtd.core.dtdsource"
nitindd6e591d2005-03-14 22:21:57 +00009 id="org.eclipse.wst.dtd.core.internal.modelhandler">
david_williamscfdb2cd2004-11-11 08:37:49 +000010 </modelHandler>
11 </extension>
nitindf75b5192005-06-03 20:19:12 +000012
david_williamsad0e4cc2005-06-04 01:49:19 +000013 <extension point="org.eclipse.wst.sse.core.taskscanner">
14 <scanner
15 id="org.eclipse.wst.dtd.core.internal.tasks.DTDFileTaskScanner"
nitind187c1652008-01-17 05:05:10 +000016 class="org.eclipse.wst.dtd.core.internal.tasks.DTDFileTaskScanner:org.eclipse.wst.dtd.core.taskMarker"
david_williamsad0e4cc2005-06-04 01:49:19 +000017 contentTypeIds="org.eclipse.wst.dtd.core.dtdsource" />
18 </extension>
nitind187c1652008-01-17 05:05:10 +000019 <extension
20 id="taskMarker"
21 name="%_taskMarker.name"
22 point="org.eclipse.core.resources.markers">
nitinddec17782008-04-02 04:48:00 +000023 <super type="org.eclipse.core.resources.taskmarker"/>
nitind187c1652008-01-17 05:05:10 +000024 <persistent value="true"/>
25 </extension>
nitinddec17782008-04-02 04:48:00 +000026 <extension
27 id="validationMarker"
28 name="%_validationMarker.name"
29 point="org.eclipse.core.resources.markers">
30 <super type="org.eclipse.wst.validation.problemmarker"/>
31 <persistent value="true"/>
32 </extension>
david_williamscfdb2cd2004-11-11 08:37:49 +000033
david_williamsad0e4cc2005-06-04 01:49:19 +000034 <extension
35 point="org.eclipse.core.filebuffers.documentCreation"
36 id="org.eclipse.wst.dtd.core.documentfactories"
37 name="%Structured_DTD_Document_Factory_Extension.name">
38 <factory
39 contentTypeId="org.eclipse.wst.dtd.core.dtdsource"
40 class="org.eclipse.wst.sse.core.internal.filebuffers.BasicStructuredDocumentFactory" />
41 </extension>
david_williamscfdb2cd2004-11-11 08:37:49 +000042
43 <extension point="org.eclipse.team.core.fileTypes">
44 <fileTypes
45 type="text"
46 extension="dtd" />
47 <fileTypes
48 type="text"
49 extension="mod" />
50 <fileTypes
51 type="text"
52 extension="ent" />
53 </extension>
nitindd6e591d2005-03-14 22:21:57 +000054
david_williamsad0e4cc2005-06-04 01:49:19 +000055 <extension point="org.eclipse.core.runtime.contentTypes">
56 <content-type
57 file-extensions="dtd,mod,ent"
58 priority="normal"
59 name="%DTD_Content_Type_Extension_Element.name"
60 id="dtdsource"
61 base-type="org.eclipse.core.runtime.text"
62 default-charset="UTF-8">
63 <describer
64 class="org.eclipse.wst.dtd.core.internal.content.ContentDescriberForDTD" />
65 </content-type>
66 </extension>
67
68 <extension point="org.eclipse.emf.ecore.extension_parser">
69 <parser
70 type="dtd"
71 class="org.eclipse.wst.dtd.core.internal.emf.util.DTDResourceFactoryImpl">
72 </parser>
73 </extension>
74
75 <extension point="org.eclipse.emf.ecore.extension_parser">
76 <parser
77 type="ent"
78 class="org.eclipse.wst.dtd.core.internal.emf.util.DTDResourceFactoryImpl">
79 </parser>
80 </extension>
81
82 <extension point="org.eclipse.emf.ecore.generated_package">
83 <package
84 uri="DTD.xmi"
85 class="org.eclipse.wst.dtd.core.internal.emf.impl.DTDPackageImpl">
86 </package>
87 </extension>
88
89 <extension point="org.eclipse.wst.xml.core.documentFactories">
90 <factory
91 type="dtd, ent, mod, xml"
92 class="org.eclipse.wst.dtd.core.internal.contentmodel.CMDocumentFactoryDTD">
93 </factory>
94 </extension>
95
amywufe0f3612006-01-25 03:48:57 +000096 <!-- initialize dtd core preferences -->
97 <extension point="org.eclipse.core.runtime.preferences">
98 <initializer
99 class="org.eclipse.wst.dtd.core.internal.preferences.DTDCorePreferenceInitializer" />
100 </extension>
lmandelb7154c92006-03-29 09:58:55 +0000101
102 <!-- ====================================================== -->
nitind857fc432008-05-13 06:28:12 +0000103 <!-- Register the DTD validator with the (new) validation -->
lmandelb7154c92006-03-29 09:58:55 +0000104 <!-- framework. -->
105 <!-- ====================================================== -->
nitind857fc432008-05-13 06:28:12 +0000106 <extension id="dtdDTDValidator" name="%_DTD_VALIDATOR_NAME" point="org.eclipse.wst.validation.validatorV2">
107 <validator
108 build="true"
109 class="org.eclipse.wst.dtd.core.internal.validation.eclipse.Validator"
110 manual="true"
111 sourceid="org.eclipse.wst.dtd.dtdsourcevalidator"
112 version="1"
113 markerId="org.eclipse.wst.dtd.core.validationMarker">
114 <include>
115 <rules>
116 <contentType id="org.eclipse.wst.dtd.core.dtdsource"/>
117 <fileext caseSensitive="false" ext="dtd"/>
118 <fileext caseSensitive="false" ext="ent"/>
119 <fileext caseSensitive="false" ext="mod"/>
120 </rules>
121 </include>
nitind50477b42008-01-17 03:29:48 +0000122 </validator>
nitind857fc432008-05-13 06:28:12 +0000123 </extension>
lmandelb7154c92006-03-29 09:58:55 +0000124
125 <!-- ====================================================== -->
126 <!-- DTD as you type validation -->
127 <!-- ====================================================== -->
128 <extension point="org.eclipse.wst.sse.ui.sourcevalidation">
129 <validator
130 scope="total"
131 class="org.eclipse.wst.dtd.core.internal.validation.eclipse.Validator"
132 id="org.eclipse.wst.dtd.dtdsourcevalidator">
133 <contentTypeIdentifier
134 id="org.eclipse.wst.dtd.core.dtdsource">
135 <partitionType id="org.eclipse.wst.dtd.DEFAULT">
136 </partitionType>
137 </contentTypeIdentifier>
138 </validator>
139 </extension>
140
david_williamscfdb2cd2004-11-11 08:37:49 +0000141</plugin>