Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWhich function gets called first
https://www.eclipse.org/forums/index.php/mv/msg/144399/454580/#msg_454580
class ViewLabelProvider extends LabelProvider implements IColorProvider{
....
...
public Image getImage(Object obj) {
....
}
public Color getForeground(Object element) {
...
}
public Color getBackground(Object element) {
....
}
}
which of these three function are called first when the viewer is
associated with this label provider
Say,
TreeViewer tv = new TreeViewer(...);
tv.setLabelProvider(new ViewLabelProvider());
and is the order of call same always, i.e when tree is expanded or
collapsed etc..]]>Neeraj2005-04-25T04:35:43-00:00Re: Which function gets called first
https://www.eclipse.org/forums/index.php/mv/msg/144399/454648/#msg_454648
that..
1. getImage(...)
2. getForeground(...)
3. getBackground(...)
4. getFont(...)
5. Looks like it
Emil
"Neeraj" <neerajkrishnag@yahoo.com> wrote in message
news:f0c5e651bad1493cdea3ec3a436f7e3d$1@www.eclipse.org...
>I have the following code for a labelProvider:
> class ViewLabelProvider extends LabelProvider implements IColorProvider{
> ...
> ..
> public Image getImage(Object obj) {
> ...
> }
>
> public Color getForeground(Object element) {
> ..
> }
>
> public Color getBackground(Object element) {
> ...
> }
>
> }
> which of these three function are called first when the viewer is
> associated with this label provider
> Say,
> TreeViewer tv = new TreeViewer(...);
> tv.setLabelProvider(new ViewLabelProvider());
>
> and is the order of call same always, i.e when tree is expanded or
> collapsed etc..
>]]>Emil Crumhorn2005-04-26T07:10:33-00:00