Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 341244

Summary: folder selection input to unlocked Remote Systems Details view sometimes fails
Product: [Tools] Target Management Reporter: David McKnight <dmcknigh>
Component: RSEAssignee: David McKnight <dmcknigh>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 341286    
Attachments:
Description Flags
patch to use latest IRemoteFile and only remember lastInput when set none

Description David McKnight CLA 2011-03-29 11:10:32 EDT
When the Remote Systems Details view is unlocked, it's input is driven by selection (for example the selection in the Remote Systems view).  In some cases (with IRemoteFile), the selection does not end up becoming the input to the view.  This is because ISystemViewElementAdapter.hasChildren() is returning false when it shouldn't.  I debugged the code and figured out that, for IRemoteFile, this comes about as a result of using a stale version of a resource, rather than the primary one in the cache.  To resolve this, we should be using the primary resource as SystemViewREmoteFileAdapter.internalGetChildren() does.
Comment 1 David McKnight CLA 2011-03-29 11:13:18 EDT
Created attachment 192103 [details]
patch to use latest IRemoteFile and only remember lastInput when set
Comment 2 David McKnight CLA 2011-03-29 11:14:26 EDT
I've committed the change to cvs.