1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

[205592] CheckExistsJob should use the context model object to get adapter

This commit is contained in:
David McKnight 2007-10-05 18:27:33 +00:00
parent 064f9aad7b
commit d7e821bf68

View file

@ -42,6 +42,7 @@
* Martin Oberhuber (Wind River) - [198650] Fix assertion when restoring workbench state * Martin Oberhuber (Wind River) - [198650] Fix assertion when restoring workbench state
* Martin Oberhuber (Wind River) - [183176] Fix "widget is disposed" during Platform shutdown * Martin Oberhuber (Wind River) - [183176] Fix "widget is disposed" during Platform shutdown
* David McKnight (IBM) - [204684] CheckExistsJob used for determining if a remote object exists after a query of it's children * David McKnight (IBM) - [204684] CheckExistsJob used for determining if a remote object exists after a query of it's children
* David McKnight (IBM) - [205592] CheckExistsJob should use the context model object to get adapter
********************************************************************************/ ********************************************************************************/
package org.eclipse.rse.internal.ui.view; package org.eclipse.rse.internal.ui.view;
@ -5766,7 +5767,8 @@ public class SystemView extends SafeTreeViewer
public IStatus run(IProgressMonitor monitor) public IStatus run(IProgressMonitor monitor)
{ {
ISystemViewElementAdapter adapter = (ISystemViewElementAdapter)_remoteObject.getAdapter(ISystemViewElementAdapter.class); // need to use the model object to get the adapter (since it could be a filter)
ISystemViewElementAdapter adapter = (ISystemViewElementAdapter)_context.getModelObject().getAdapter(ISystemViewElementAdapter.class);
if (adapter != null) if (adapter != null)
{ {
final Object[] children = adapter.getChildren(_context, monitor); final Object[] children = adapter.getChildren(_context, monitor);