LTK rename refactoring - overriding the icons [message #334179] |
Fri, 23 January 2009 10:25  |
Eclipse User |
|
|
|
Hi,
Does anyone know if its possible (and how :)) to override the icons of the
LTK refactoring tree viewer in a public way? i.e. how to provide my own
lable provider for my found changes.
Thanks in advance.
Adam
|
|
|
Re: LTK rename refactoring - overriding the icons [message #334200 is a reply to message #334179] |
Mon, 26 January 2009 09:25  |
Eclipse User |
|
|
|
Originally posted by: zoltan.balogh.optxware.com
Adam írta:
> Hi,
>
> Does anyone know if its possible (and how :)) to override the icons of the
> LTK refactoring tree viewer in a public way? i.e. how to provide my own
> lable provider for my found changes.
>
> Thanks in advance.
> Adam
>
>
Hi Adam,
I faced with the same problem, and I haven’t got any good, generic
solution yet. By the way I found some workaround, but it has a huge
limitation.
LTK uses PreviewNode to represents the Change nodes in the preview page.
As far as I found (but I’m not sure), we can only adapt the
TextEditBasedChange changes so If we make our own change extended form
TextEditBasedChange, we can adapt it to our own PreviewNode
implementation where getImageDescriptor() can be overridden.
But as I mentioned, the huge limitation of this solution that we can use
only TextEditBasedChange changes and these changes will show the compare
window in the bottom of the preview page. Furthermore there can be a lot
of cases when the TextEditBasedChange doesn’t fit for our goal.
Maybe it can help a little bit, but I’m also interested in the generic
solution! :)
Zoli
|
|
|
Powered by
FUDForum. Page generated in 0.02521 seconds