|
|
|
Re: TreeViewer Label Provider [message #465292 is a reply to message #465288] |
Wed, 28 March 2007 09:32 |
Eclipse User |
|
|
|
Originally posted by: starkom.ngs.ru
getText(Object obj) - you can write wrappers for dateTime and put they i=
n =
your ContentProvider
FirstLevelDateTimeWrapper {
dateTime info =3D [setting in constructor]
....
public String toString() {
return info.getYear();
}
}
and so on...
Then your method will be getText(Object obj) {
return obj.toString();
}
On Wed, 28 Mar 2007 16:13:26 +0700, Swetha <swetha@yahoo.co.in> wrote:
> Hi,
>
> My problem is with the Label Provider only..
>
> I am placing same domain object at three levels of tree...but the =
> label at three levels is different.. How can I manage this in =
> LabelProvider.. in getText() method how can I manage it as I don't hav=
e =
> the info abt the the level of tree..
>
> I hope u understand my problem..
>
> Thanks,
> Swetha
>
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05133 seconds