Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to associate a custom icon to the XML editor?
How to associate a custom icon to the XML editor? [message #156832] Mon, 16 January 2006 22:25 Go to next message
Torsten Juergeleit is currently offline Torsten JuergeleitFriend
Messages: 1
Registered: July 2009
Junior Member
We implemented a custom version of wst.xml editor
(http://springide.org/project/wiki/BeansXmlEditor) by just using the
standard set of extension points
"org.eclipse.core.runtime.contentTypes",
"org.eclipse.wst.sse.core.modelHandler" and
"org.eclipse.wst.sse.core.modelHandler".

Now we are wondering how to provide a custom icon for our XML editor.
While creating an editor from scratch we would provided it via the
extension point "org.eclipse.ui.editors". But how can this be achieved
with wst.xml?

Torsten
Re: How to associate a custom icon to the XML editor? [message #156842 is a reply to message #156832] Mon, 16 January 2006 23:01 Go to previous messageGo to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
One way would be to do it like you said, create your own editor and use the
web tools editor (XMLMultiPageEditorPart) as your class. That should work,
unless someone else knows another way.

Cheers


"Torsten Juergeleit" <torsten@springide.org> wrote in message
news:dqh6gd$k9f$1@utils.eclipse.org...
> We implemented a custom version of wst.xml editor
> (http://springide.org/project/wiki/BeansXmlEditor) by just using the
> standard set of extension points "org.eclipse.core.runtime.contentTypes",
> "org.eclipse.wst.sse.core.modelHandler" and
> "org.eclipse.wst.sse.core.modelHandler".
>
> Now we are wondering how to provide a custom icon for our XML editor.
> While creating an editor from scratch we would provided it via the
> extension point "org.eclipse.ui.editors". But how can this be achieved
> with wst.xml?
>
> Torsten
>
Re: How to associate a custom icon to the XML editor? [message #157077 is a reply to message #156842] Wed, 18 January 2006 04:09 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
On Mon, 16 Jan 2006 18:01:54 -0500, Brian Jakubik <brian.jakubik@intervo=
ice.com> wrote:

> One way would be to do it like you said, create your own editor and us=
e the
> web tools editor (XMLMultiPageEditorPart) as your class. That should =
work,
> unless someone else knows another way.
>

As far as I know, this is the only way, though we hadn't really intended=
for
XMLMultiPageEditorPart to be a public usable class. Just off the top of =
my head,
it seems like a reasonable feature request, though, in this type of rest=
ricted use.
(just never use the same editor id,
which I only mention because its happended before repeatedly ... by peop=
le who should have
known better :)

And, to be clear in the hopes of avoiding future problems, some of the
other "standard API's" Torstan originally mentioned,
such as org.eclipse.wst.sse.core.modelHandler are not really standard ye=
t.
They are (nearly) provisional and something similar will always be provi=
ded,
but ... likely to change some as it becomes API ... so, be sure to plan =
for that.
Previous Topic:Facet Preset question
Next Topic:usinga project
Goto Forum:
  


Current Time: Fri Apr 19 11:56:26 GMT 2024

Powered by FUDForum. Page generated in 0.01863 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top