Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » Change IModelElement icons (in outline, explorer, completion)
|Re: Change IModelElement icons (in outline, explorer, completion) [message #501667 is a reply to message #501101]
||Thu, 03 December 2009 11:13
| David Largeteau
Registered: July 2009
Location: Bordeaux - France
Andrei Sobolev a écrit :|
> Hi David,
> Please look into org.eclipse.dltk.ui.modelLabelProvider extension point.
> It's allow any customization of outline, etc by providing custom label
> You could check example implementation in TCL in class
> If you need to add some additional elements you also could use following
> extension points ( for customization of outline, script explorer content
> and element ordering)
> Best regards,
Thank you for your answer.
I’ve tried to use org.eclipse.dltk.ui.modelLabelProvider extension
point, as in Tcl project. It works very well for all explorer part, but
I still have problems with icons size in Outline view : they are
displayed bigger than they are in explorer part.
In Tcl project, the only custom objects that are displayed are Tcl
Packages (tcl_packagefolder_obj.gif), and this kind of object is not
displayed in the Outline, so I can’t compare the behavior.
I also noticed that IModelElement objects displayed in completion
proposals do not react the same way : I mean that modelLabelProvider is
not used in this case (I need to override
CompletionProposalLabelProvider to do what I want). I think
modelLabelProvider extension point should also be used by completion.
Thanks in advance for your help,
Current Time: Wed May 25 03:43:42 GMT 2016
Powered by FUDForum
. Page generated in 0.02296 seconds