| How to associate a custom icon to the XML editor? [message #156832] | 
Mon, 16 January 2006 17:25   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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.
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.06052 seconds