Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to find bug report for PR 1FV62BT
How to find bug report for PR 1FV62BT [message #438339] Tue, 22 June 2004 16:09 Go to next message
Christian Fuchs is currently offline Christian FuchsFriend
Messages: 10
Registered: July 2009
Junior Member
In AbstractTreeViewer I found the following code. Now I like to get more
details about the bug that is marked with "PR 1FV62BT". However, the bug
database does not seem to contain a bug with that "number".

/* (non-Javadoc) @see StructuredViewer#associate(Object, Item) */
protected void associate(Object element, Item item) {
Object data = item.getData();
if (data != null && data != element && equals(data, element)) {
// workaround for PR 1FV62BT
// assumption: elements are equal but not identical
// -> remove from map but don't touch children
unmapElement(data, item);
item.setData(element);
mapElement(element, item);
} else {
// recursively disassociate all
super.associate(element, item);
}
}
Re: How to find bug report for PR 1FV62BT [message #438401 is a reply to message #438339] Tue, 22 June 2004 17:44 Go to previous message
Andrew Cornwall is currently offline Andrew CornwallFriend
Messages: 3
Registered: July 2009
Junior Member
Christian Fuchs wrote:
> In AbstractTreeViewer I found the following code. Now I like to get more
> details about the bug that is marked with "PR 1FV62BT". However, the bug
> database does not seem to contain a bug with that "number".

This happened before the Eclipse Bugzilla was set up. Unfortunately,
there's no way for you to find that PR.

The problem was that, when you updated an SWT TreeItem with a new
element that was equal to (but not identical to) the old element, SWT
would clear the data pointers on all TreeItems of the subtree but not
dispose the items. If you then collapsed/expanded, SWT would find the
data pointer empty and assume the dummy node. Because of this, it would
then dispose the first node and recreate all children.

The end result of not having this fix is that you'll see more and more
items (all children except the first) continually being added to the tree.

Andrew Jr.

============================================================ ==========
IBM Phoenix Labs (OTI)
11811 North Tatum Boulevard, Suite 2400
Phoenix, Arizona, USA 85028-1614
Previous Topic:Can wrap mPlayer(linux) with SWT?
Next Topic:TreeViewer refresh collapses branches
Goto Forum:
  


Current Time: Thu Apr 25 10:26:46 GMT 2024

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

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

Back to the top