Skip to main content



      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 17:25 Go to next message
Eclipse UserFriend
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 18:01 Go to previous messageGo to next message
Eclipse UserFriend
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] Tue, 17 January 2006 23:09 Go to previous message
Eclipse UserFriend
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: Mon Mar 17 01:04:59 EDT 2025

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

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

Back to the top