migrating from Ganymede to Galileo [message #549921] |
Wed, 28 July 2010 09:25  |
Eclipse User |
|
|
|
Hello again,
Our PlugIn uses nebula grid and target platform ganymede (3.4.0).
Now we change target to galileo (3.5.2).
At first glance, everything works fine except one little thing:
The Method Point[] getCellSelection() in Grid.java has changed its behaviour.
With ganymede, the returned Point´s y value was always refered to the complete expanded grid.
Now it seems to depend on the expanded/collapsed state of previous rows.
What can have caused this change?
Is there a way to get the old behaviour?
regards,
David
|
|
|
|
|
|
Re: migrating from Ganymede to Galileo [message #550141 is a reply to message #550126] |
Thu, 29 July 2010 05:32  |
Eclipse User |
|
|
|
Quote: | Well JFace-Viewers has always created the subitems lazily so if the
TreeItem hasn't been expanded yet no subitems are available (beside a
virtual one to show the expand icon).
|
That would explain why i get a NPE in my RowHeaderRenderer. The getData method from the given item does return null when i expand a row.
When i collapse/expand all, the value changes to something that makes no sense...
I was able to fix the wrong row coordinate by also getting the selected items, so the only problem now is the NullPointerException in the RowHeaderRenderer.
Many thanks so far,
David
|
|
|
Re: migrating from Ganymede to Galileo [message #600084 is a reply to message #550126] |
Thu, 29 July 2010 05:32  |
Eclipse User |
|
|
|
Quote:
> Well JFace-Viewers has always created the subitems lazily so if the
> TreeItem hasn't been expanded yet no subitems are available (beside a
> virtual one to show the expand icon).
That would explain why i get a NPE in my RowHeaderRenderer. The getData method from the given item does return null when i expand a row.
When i collapse/expand all, the value changes to something that makes no sense...
I was able to fix the wrong row coordinate by also getting the selected items, so the only problem now is the NullPointerException in the RowHeaderRenderer.
Many thanks so far,
David
|
|
|
Powered by
FUDForum. Page generated in 0.05734 seconds