Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteicher2004-03-19 10:49:08 +0000
committerteicher2004-03-19 10:49:08 +0000
commitfa2f7a70c657eb42555ba5521c90ec930b9543de (patch)
tree3d58baee80cdaba94b1a074f7579b48bdfd886d7 /org.eclipse.ui.examples.javaeditor/plugin.xml
parentb85ebfebd841a945be7ffa33a718394da2f517b2 (diff)
downloadeclipse.platform.text-fa2f7a70c657eb42555ba5521c90ec930b9543de.tar.gz
eclipse.platform.text-fa2f7a70c657eb42555ba5521c90ec930b9543de.tar.xz
eclipse.platform.text-fa2f7a70c657eb42555ba5521c90ec930b9543de.zip
added template editor example to javaeditor example plug-in
Diffstat (limited to 'org.eclipse.ui.examples.javaeditor/plugin.xml')
-rw-r--r--org.eclipse.ui.examples.javaeditor/plugin.xml72
1 files changed, 72 insertions, 0 deletions
diff --git a/org.eclipse.ui.examples.javaeditor/plugin.xml b/org.eclipse.ui.examples.javaeditor/plugin.xml
index 1fd36f73c..52a7ca1b6 100644
--- a/org.eclipse.ui.examples.javaeditor/plugin.xml
+++ b/org.eclipse.ui.examples.javaeditor/plugin.xml
@@ -11,6 +11,9 @@
<library name="javaeditorexample.jar">
<export name="*"/>
</library>
+ <library name="templateeditorexample.jar">
+ <export name="*"/>
+ </library>
</runtime>
<requires>
<import plugin="org.eclipse.core.runtime.compatibility"/>
@@ -23,6 +26,10 @@
</requires>
+<!-- =========================================================================== -->
+<!-- Java Editor Example -->
+<!-- =========================================================================== -->
+
<extension
point="org.eclipse.ui.editors">
<editor
@@ -34,6 +41,7 @@
id="org.eclipse.ui.JavaEditor">
</editor>
</extension>
+
<extension
id="ExampleJavaDocumentSetupParticipant"
name="%documentSetupParticipantName"
@@ -43,5 +51,69 @@
class="org.eclipse.ui.examples.javaeditor.JavaDocumentSetupParticipant">
</participant>
</extension>
+
+<!-- =========================================================================== -->
+<!-- Template Editor Example -->
+<!-- =========================================================================== -->
+
+ <extension
+ point="org.eclipse.ui.editors">
+ <editor
+ name="%xml.editor.name"
+ icon="icons/sample.gif"
+ extensions="%xml.editor.extensions"
+ contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
+ class="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor"
+ id="org.eclipse.ui.examples.templateeditor.editors.TemplateEditor">
+ </editor>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ name="Template Editor"
+ class="org.eclipse.ui.examples.templateeditor.preferences.TemplatesPreferencePage"
+ id="org.eclipse.ui.examples.templateeditor.preferencepage">
+ </page>
+ </extension>
+
+ <extension
+ point="org.eclipse.ui.editors.templates">
+ <contextType
+ name="%xml.contextType.name"
+ class="org.eclipse.ui.examples.templateeditor.template.XMLContextType"
+ id="org.eclipse.ui.examples.templateeditor.xml">
+ </contextType>
+ <template
+ name="%ant.tasks.javac.name"
+ icon="icons/template.gif"
+ description="%ant.tasks.javac.description"
+ contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
+ id="org.eclipse.ui.examples.templateeditor.ant.javac">
+ <pattern>
+ &lt;javac srcdir=&quot;${src}&quot;
+ destdir=&quot;${dst}&quot;
+ classpath=&quot;${classpath}&quot;
+ debug=&quot;${debug}&quot;
+/&gt;
+ </pattern>
+ </template>
+ <resolver
+ name="%ant.resolvers.src"
+ type="src"
+ icon="icons/resolver.gif"
+ description="%ant.resolvers.src.description"
+ contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
+ class="org.eclipse.ui.examples.templateeditor.template.AntVariableResolver">
+ </resolver>
+ <resolver
+ name="%ant.resolvers.dst"
+ type="dst"
+ icon="icons/resolver.gif"
+ description="%ant.resolvers.dst.description"
+ contextTypeId="org.eclipse.ui.examples.templateeditor.xml"
+ class="org.eclipse.ui.examples.templateeditor.template.AntVariableResolver">
+ </resolver>
+ </extension>
</plugin>

Back to the top