Why the problemd view don't use the AdapterManager [message #336080] |
Wed, 20 May 2009 11:15  |
Eclipse User |
|
|
|
The problems views test if the selection is an IAdaptable and try to
adapt this one in different classes able to give the resource associated
to the selection.
But why not use the AdapterManager (Platform.getAdapterManager)?
------------------------------------------------------------ -------
@see in org.eclipse.ui.internal.views.markers.ExtendedMarkersView, line
989 :
if (selection instanceof IStructuredSelection) {
for (Iterator iterator = ((IStructuredSelection) selection)
.iterator(); iterator.hasNext();) {
Object object = iterator.next();
if (object instanceof IAdaptable) {
------------------------------------------------------------ --
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02871 seconds