Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is there a bug with TableTreeViewer in eclipse 2.1
Is there a bug with TableTreeViewer in eclipse 2.1 [message #371231] Wed, 25 June 2003 10:47 Go to next message
Eclipse UserFriend
Originally posted by: michal.attunity.co.il

Hi
I have a working application that uses TableTreeViewer. After I moved to
Eclipse 2.1(and no code change was made) the next problem appeared:

Viewer.getTable().getItems[0] .getData() now return NULL !!!!! in Eclipse
2.0 it returns the object.

Is it a known bug that require me change in my implementation?

Thanks Michal
Re: Is there a bug with TableTreeViewer in eclipse 2.1 [message #371234 is a reply to message #371231] Wed, 25 June 2003 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: veronika_irvine.oti.com

The use of "Viewer.getTable().getItems[0] .getData()" in previous releases
was an implementation detail - not something you should be accessing. The
implementation has since changed and may change again at any time. You
should NEVER reference the items within the Table that make up the
TableTree. Access to the Table is only provided for operations such as
creating columns or making headers visible.

Your code should be:

TableTreeItem item = viewer.getItems()[0];


"Michal" <michal@attunity.co.il> wrote in message
news:bdbr5f$lhj$1@rogue.oti.com...
> Hi
> I have a working application that uses TableTreeViewer. After I moved to
> Eclipse 2.1(and no code change was made) the next problem appeared:
>
> Viewer.getTable().getItems[0] .getData() now return NULL !!!!! in Eclipse
> 2.0 it returns the object.
>
> Is it a known bug that require me change in my implementation?
>
> Thanks Michal
>
>
Re: Is there a bug with TableTreeViewer in eclipse 2.1 [message #458401 is a reply to message #371234] Tue, 12 July 2005 21:00 Go to previous message
Agnes Freese is currently offline Agnes FreeseFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Veronika,

I am having a different problem where I have been setting column text data
on a TableItem within my TableTreeViewer. It appears that perhaps these
TableItems are removed and recreated when the tree is collapsed and expanded
as the text disappears upon collapse and expand. If we should NEVER
reference the items within the Table directly, perhaps I need to set my
column text elsewhere. Could you possibly point me in the right direction
on this?

Thanks,
Agnes

"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:bdc9qa$3og$1@rogue.oti.com...
> The use of "Viewer.getTable().getItems[0] .getData()" in previous releases
> was an implementation detail - not something you should be accessing. The
> implementation has since changed and may change again at any time. You
> should NEVER reference the items within the Table that make up the
> TableTree. Access to the Table is only provided for operations such as
> creating columns or making headers visible.
>
> Your code should be:
>
> TableTreeItem item = viewer.getItems()[0];
>
>
> "Michal" <michal@attunity.co.il> wrote in message
> news:bdbr5f$lhj$1@rogue.oti.com...
> > Hi
> > I have a working application that uses TableTreeViewer. After I moved to
> > Eclipse 2.1(and no code change was made) the next problem appeared:
> >
> > Viewer.getTable().getItems[0] .getData() now return NULL !!!!! in
Eclipse
> > 2.0 it returns the object.
> >
> > Is it a known bug that require me change in my implementation?
> >
> > Thanks Michal
> >
> >
>
>
Previous Topic:help with TableTreeViewer
Next Topic:draw something on the Browser widget
Goto Forum:
  


Current Time: Tue Oct 27 06:01:01 GMT 2020

Powered by FUDForum. Page generated in 0.01841 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top