Problems using the org.eclipse.wst.xml.ui.StructuredTextEditorXML [message #60136] |
Tue, 04 January 2005 12:09  |
Eclipse User |
|
|
|
Hi everybody,
I am just trying to integrate the wst XML Editor into my project, but I
have some struggling problems.
As lamer solution I just added the class
org.eclipse.wst.xml.ui.StructuredTextEditorXML as contributor class to
the plugins.xml file of my plugin.
Normally this works (tried it with my other plugins), but the
org.eclipse.wst.xml.ui.StructuredTextEditorXML only displays a modal
error message box: "Problems opening Editor - Editor could not be
initialized".
Is this issue known to you? And how do I get clearer debug information
(on the console is nothing - and as well no errors).
Thanks a lot!
...and a happy new year,
Raphael
--snipp--
my tiny test plugins.xml:
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.jface.text"/>
<import plugin="org.eclipse.ui.editors"/>
<import plugin="org.eclipse.ui.workbench.texteditor"/>
<import plugin="org.eclipse.wst.xml.ui"/>
</requires>
<extension
point="org.eclipse.ui.editors">
<editor
name="Sample XML Editor"
extensions="grenouille"
icon="icons/sample.gif"
contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor "
class="ra.scs.texteditor_test.editors.XMLEditor"
id="ra.scs.texteditor_test.editors.XMLEditor">
</editor>
<editor
name="TestName"
icon="icons/sample.gif"
extensions="g_t"
contributorClass="org.eclipse.wst.xml.ui.actions.ActionContributorXML "
class="org.eclipse.wst.xml.ui.StructuredTextEditorXML"
id="org.eclipse.wst.xml.ui.StructuredTextEditorXML2">
</editor>
--snapp--
|
|
|
|
|
|
Re: Problems using the org.eclipse.wst.xml.ui.StructuredTextEditorXML [message #61035 is a reply to message #60285] |
Wed, 05 January 2005 05:46   |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
David Williams wrote:
> On Tue, 04 Jan 2005 18:09:21 +0100, Raphael A. Bauer
> <raphael.bauer@temis-group.com> wrote:
>
>> And how do I get clearer debug information (on the console is nothing
>> - and as well no errors).
>
>
>
> I've opened an enhancement request against the base, long long ago, to
> not swallow those exceptions,
> see (and vote on?) https://bugs.eclipse.org/bugs/show_bug.cgi?id=52081
I've tracked the problem down, updated the bug report and moved it to
the right component.
Dani
>
> I've found it useful to set up the debugger to stop on CoreException
> in such cases and usually can help provide a starting point ... to
> know where else to set breakpoints, etc.
>
> (Sorry, not sure what the underlying problem might be, off the top of
> my head).
|
|
|
Re: Problems using the org.eclipse.wst.xml.ui.StructuredTextEditorXML [message #61133 is a reply to message #60964] |
Wed, 05 January 2005 07:01  |
Eclipse User |
|
|
|
Raphael A. Bauer wrote:
> thanks Nitin, I just tried your workaround and it works perfectly.
> Hmm. Although I do not realise what the problem really is.
The symptom really is that the SSE editors *require* the SSE
IDocument implementation and that that implementation is not the
default for your filename extensions. SSE makes it's implementation
the default for common XML file extensions that we know about in
advance, but for unknown extensions like g_t and grenouille the
default remains the Eclipse platform's default.
Keep an eye on bug 78340,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=78340
---
- Nitin
|
|
|
Powered by
FUDForum. Page generated in 0.05375 seconds