blob: 349ff17793814eda556832c3b35c865602e1d5c6 [file] [log] [blame]
bchilds68f36fc2007-03-01 22:47:33 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
3<plugin>
bchilds9536b612008-03-06 20:12:21 +00004 <extension-point id="javascriptPreProcessor" name="%extension-point.name.0" schema="schema/javascriptPreProcessor.exsd"/>
5
bchildseba1d632008-03-07 22:03:03 +00006
7
8
9
10 <!-- Full blown JSDT FACET -->
11
12 <extension point="org.eclipse.wst.common.project.facet.core.facets">
13 <category id="jsdt.category">
14 <label>JavaScript Development Toolkit</label>
15 <description>Enables advanced JavaScript support.</description>
16 </category>
17
18 <project-facet id="wst.jsdt.web">
19 <label>JavaScript Toolkit</label>
20 <description>Adds advanced JavaScript editing support.</description>
bchildseba1d632008-03-07 22:03:03 +000021 <default-version version="1.0"/>
22 </project-facet>
23
24 <project-facet-version facet="wst.jsdt.web" version="1.0">
bchilds746eece2008-04-23 15:34:22 +000025
26 <constraint>
bchilds746eece2008-04-23 15:34:22 +000027 <or>
28 <requires facet="jst.web"/>
29 <requires facet="wst.web"/>
30 </or>
bchilds746eece2008-04-23 15:34:22 +000031 </constraint>
32
bchildseba1d632008-03-07 22:03:03 +000033 </project-facet-version>
34
35 <action facet="wst.jsdt.web" type="install" id="wst.jsdt.web.install" version="1.0">
36 <delegate class="org.eclipse.wst.jsdt.web.core.internal.project.JsNatureInstaller"/>
37 </action>
38
39 <action facet="wst.jsdt.web" type="uninstall" id="wst.jsdt.web.uninstall" version="1.0">
40 <delegate class="org.eclipse.wst.jsdt.web.core.internal.project.JsNatureUninstaller"/>
41 </action>
42
43 </extension>
44
bchildsc06e9a62008-04-01 19:42:50 +000045 <extension point="org.eclipse.wst.common.project.facet.core.runtimes">
46 <supported>
47 <facet id="wst.jsdt.web"/>
48 <runtime-component any="true"/>
49 </supported>
bchilds746eece2008-04-23 15:34:22 +000050
bchildsc06e9a62008-04-01 19:42:50 +000051 </extension>
bchildseba1d632008-03-07 22:03:03 +000052
53
54
55
56
57
bchilds9536b612008-03-06 20:12:21 +000058 <extension point="org.eclipse.wst.jsdt.web.core.javascriptPreProcessor">
59 <javascriptPreProcessor
bchildseba1d632008-03-07 22:03:03 +000060 class="org.eclipse.wst.jsdt.web.core.javascript.JsTranslation"
bchilds9536b612008-03-06 20:12:21 +000061 priority="1" />
62 </extension>
bchildscd99af62008-03-04 22:09:29 +000063
bchildsa1181702007-06-14 21:47:04 +000064 <!-- Install Handler for web JSDT.. Pigybacks on wst.web facet-->
bchildseba1d632008-03-07 22:03:03 +000065
bchildsb95206a2007-03-21 00:02:12 +000066 <extension point="org.eclipse.wst.common.project.facet.core.facets">
67
68 <event-handler facet="wst.web" type="POST_INSTALL" version="[1.0">
bchildsc3036f92007-03-13 22:54:57 +000069 <delegate class="org.eclipse.wst.jsdt.web.core.internal.project.JsNatureInstaller"/>
bchildsb95206a2007-03-21 00:02:12 +000070 </event-handler>
bchildsfdd99112007-03-13 03:06:54 +000071
bchildsb95206a2007-03-21 00:02:12 +000072 <event-handler facet="wst.web" type="POST_UNINSTALL" version="[1.0">
bchildsc3036f92007-03-13 22:54:57 +000073 <delegate class="org.eclipse.wst.jsdt.web.core.internal.project.JsNatureUninstaller"/>
bchildsb95206a2007-03-21 00:02:12 +000074 </event-handler>
bchilds68f36fc2007-03-01 22:47:33 +000075
bchilds539192f2008-03-04 16:12:47 +000076 <event-handler facet="jst.web" type="POST_INSTALL" version="[2.0">
bchildsb95206a2007-03-21 00:02:12 +000077 <delegate class="org.eclipse.wst.jsdt.web.core.internal.project.JsNatureInstaller"/>
78 </event-handler>
bchildsfdd99112007-03-13 03:06:54 +000079
bchilds539192f2008-03-04 16:12:47 +000080 <event-handler facet="jst.web" type="POST_UNINSTALL" version="[2.0">
bchildsb95206a2007-03-21 00:02:12 +000081 <delegate class="org.eclipse.wst.jsdt.web.core.internal.project.JsNatureUninstaller"/>
82 </event-handler>
83
bchildsc3036f92007-03-13 22:54:57 +000084
bchildsfdd99112007-03-13 03:06:54 +000085 </extension>
bchildsd5b9b822007-05-31 22:01:33 +000086
david_williams787e8cd2007-10-25 12:36:26 +000087 <!-- removed due to JUnit failures during initial WTP build
david_williams8f9dc242007-10-25 00:07:43 +000088 <extension id="embeded.jsNature" name="%extension.name.0" point="org.eclipse.core.resources.natures">
bchildsd5b9b822007-05-31 22:01:33 +000089 <runtime>
90 <run class="org.eclipse.wst.jsdt.web.core.internal.project.JsWebNature"/>
91 </runtime>
92 <builder id="org.eclipse.wst.jsdt.web.core.embeded.javascript"/>
93 </extension>
david_williams787e8cd2007-10-25 12:36:26 +000094 -->
bchilds423c5ef2007-07-05 22:56:35 +000095
bchildsd5b9b822007-05-31 22:01:33 +000096 <!--
97 Not using this at the moment, but everythings in place if we need in the future.
98 -->
99
david_williams8f9dc242007-10-25 00:07:43 +0000100 <extension id="embeded.javascript" name="%extension.name.1" point="org.eclipse.core.resources.builders">
bchildsd5b9b822007-05-31 22:01:33 +0000101 <builder hasNature="true" callOnEmptyDelta="true">
102
103 <run class="org.eclipse.wst.jsdt.web.core.internal.IncrementalBuilder"/>
104 </builder>
105 </extension>
106
107
108
bchildsfdd99112007-03-13 03:06:54 +0000109
bchilds906811e2008-05-14 19:59:18 +0000110 <!--
bchilds68f36fc2007-03-01 22:47:33 +0000111 <extension point="org.eclipse.wst.sse.core.taskscanner">
112 <scanner
bchildsa1181702007-06-14 21:47:04 +0000113 id="org.eclipse.wst.jsdt.web.core.internal.tasks.JsFileTaskScanner"
114 class="org.eclipse.wst.jsdt.web.core.internal.tasks.JsFileTaskScanner"
bchilds68f36fc2007-03-01 22:47:33 +0000115 contentTypeIds="org.eclipse.wst.html.core.htmlsource" />
116 </extension>
bchilds906811e2008-05-14 19:59:18 +0000117 -->
bchildsa1181702007-06-14 21:47:04 +0000118
bchilds68f36fc2007-03-01 22:47:33 +0000119 <extension point="org.eclipse.wst.sse.core.formatProcessors">
120 <processor
121 class="org.eclipse.wst.html.core.internal.format.HTMLFormatProcessorImpl"
122 contentTypeId="org.eclipse.wst.html.core.htmlsource">
123 </processor>
124 </extension>
bchildsa1181702007-06-14 21:47:04 +0000125
bchilds68f36fc2007-03-01 22:47:33 +0000126
127 <!--======================================================================================-->
128 <!-- JSP batch validation -->
129 <!--======================================================================================-->
130 <extension
bchildsa1181702007-06-14 21:47:04 +0000131 id="JsBatchValidator"
bchildsaffdab02008-05-22 15:51:41 +0000132 name="%javascript.validator"
bchilds68f36fc2007-03-01 22:47:33 +0000133 point="org.eclipse.wst.validation.validator">
134 <validator>
bchildsd01b1ea2007-03-02 16:52:19 +0000135 <projectNature id="org.eclipse.wst.jsdt.core.jsNature" />
bchilds68f36fc2007-03-01 22:47:33 +0000136
137 <filter
138 objectClass="org.eclipse.core.resources.IFile"
139 nameFilter="*.html">
140 </filter>
141 <filter
142 objectClass="org.eclipse.core.resources.IFile"
143 nameFilter="*.htm">
144 </filter>
bchilds181be782007-07-27 15:23:39 +0000145
bchilds68f36fc2007-03-01 22:47:33 +0000146 <filter
147 objectClass="org.eclipse.core.resources.IFile"
bchilds181be782007-07-27 15:23:39 +0000148 nameFilter="*.jsp">
bchilds68f36fc2007-03-01 22:47:33 +0000149 </filter>
bchilds181be782007-07-27 15:23:39 +0000150
bchilds68f36fc2007-03-01 22:47:33 +0000151
bchilds68f36fc2007-03-01 22:47:33 +0000152 <helper
153 class="org.eclipse.wst.validation.internal.operations.WorkbenchContext">
154 </helper>
155
156 <run
bchildsda4f3e12007-12-10 21:14:38 +0000157 enabled="false"
bchildsa1181702007-06-14 21:47:04 +0000158 class="org.eclipse.wst.jsdt.web.core.internal.validation.JsBatchValidator">
bchilds68f36fc2007-03-01 22:47:33 +0000159 </run>
160 </validator>
161 </extension>
bchilds0d8372e2008-03-28 19:21:31 +0000162
163 <extension point="org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer">
164 <JsGlobalScopeContainerInitializer
165 class="org.eclipse.wst.jsdt.web.core.internal.project.WebProjectJsGlobalScopeContainerInitializer"
166 id="org.eclipse.wst.jsdt.launching.WebProject">
167 </JsGlobalScopeContainerInitializer>
168 </extension>
bchilds68f36fc2007-03-01 22:47:33 +0000169
bchilds68f36fc2007-03-01 22:47:33 +0000170</plugin>