Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWhy the problemd view don't use the AdapterManager
https://www.eclipse.org/forums/index.php/mv/msg/109992/336080/#msg_336080
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) {
------------------------------------------------------------ --]]>Simon Bernard2009-05-20T15:15:52-00:00Re: Why the problemd view don't use the AdapterManager
https://www.eclipse.org/forums/index.php/mv/msg/109992/336082/#msg_336082
> 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)?
Paul Webster a écrit :
> As Prakash mentioned, please file a bug at
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI
>
> In the workbench, we should try and use
> org.eclipse.ui.internal.util.Util.getAdapter(Object, Class) to adapt
> objects.
>
> PW
>]]>Simon Bernard2009-05-25T10:18:33-00:00