Create an editor who extend the HTML WTP editor [message #228286] |
Tue, 24 February 2009 09:47  |
Eclipse User |
|
|
|
Hi,
I want to create an editor for template programming. The templates are
composed of HTML and template operators. I want to use the existing HTML
editor from the WTP plugin and extend it to recognize this template
operators.
If I create a new Editor I don't understand how to couple him with the wtp
html editor. I tried to do this :
plugin.xml :
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
point="org.eclipse.core.runtime.contentTypes">
<content-type
file-extensions="tpl"
priority="high"
name="Template"
id="ch.wess.editors.template"
base-type="org.eclipse.wst.html.core.htmlsource"/>
</extension>
<extension
id="test.editors.XMLEditor"
point="org.eclipse.ui.editors">
<editor
name="TPL Editor"
extensions="tpl"
icon="icons/sample.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor "
class="ch.wess.editors.TPLEditor"
id="ch.wess.editors.TPLEditor">
</editor>
</extension>
<extension
id="ch.wess.empty.Configuration"
name="TPL Configuration"
point="org.eclipse.wst.sse.ui.editorConfiguration">
<sourceViewerConfiguration
class="ch.wess.editors.TPLViewerConfiguration"
target="ch.wess.editors.template">
</sourceViewerConfiguration>
</extension>
</plugin>
But my class TPLViewerConfiguration is never called.
My question is what is the right way to do this ?
Thanks for your help !
Alain
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06306 seconds