Bug 220069 - 'Plug-ins' view has a "malformed" content description
Summary: 'Plug-ins' view has a "malformed" content description
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4 M6   Edit
Assignee: Benjamin Cabé CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-02-23 10:21 EST by Remy Suen CLA
Modified: 2008-02-23 12:42 EST (History)
1 user (show)

See Also:


Attachments
Proposed patch (1.10 KB, patch)
2008-02-23 12:17 EST, Benjamin Cabé CLA
no flags Details | Diff
mylyn/context/zip (1016 bytes, application/octet-stream)
2008-02-23 12:17 EST, Benjamin Cabé CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2008-02-23 10:21:42 EST
Build id: I20080212-0800

1. Make sure all instances of the 'Plug-ins' view is closed across all perspectives.
2. Open the 'Plug-ins' view.
3. See a weird content description for the view like 'Plug-ins: org.eclipse.pde.internal.ui.views.PluginsView$22@57479d'.

Needless to say, that's a toString() call on some anonymous inner class. The root cause is line 203 of the PluginsView class...

fTreeViewer.setInput(fRoot = getDeferredTreeRoot());

...which sets an IDeferredWorkbenchAdapter implementation as the input. The label provider being used for the tree viewer does not support this per lines 778 - 780...

String name = ((LabelProvider) fTreeViewer.getLabelProvider()).getText(newInput);
setContentDescription(viewName + ": " + name); //$NON-NLS-1$
setTitleToolTip(getInputPath(newInput));

...name, in this case, becomes org.eclipse.pde.internal.ui.views.PluginsView$22@57479d.

This is likely caused by the "lazy loading" change that was added to make the view to populate itself in a background job.
Comment 1 Benjamin Cabé CLA 2008-02-23 12:17:09 EST
Created attachment 90552 [details]
Proposed patch

... it should do the trick!
Comment 2 Benjamin Cabé CLA 2008-02-23 12:17:12 EST
Created attachment 90553 [details]
mylyn/context/zip
Comment 3 Chris Aniszczyk CLA 2008-02-23 12:37:30 EST
ooo, thanks!
Comment 4 Chris Aniszczyk CLA 2008-02-23 12:38:23 EST
thanks Ben!
Comment 5 Benjamin Cabé CLA 2008-02-23 12:42:06 EST
you're welcome :)