Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341244 - folder selection input to unlocked Remote Systems Details view sometimes fails
Summary: folder selection input to unlocked Remote Systems Details view sometimes fails
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M7   Edit
Assignee: David McKnight CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 341286
  Show dependency tree
 
Reported: 2011-03-29 11:10 EDT by David McKnight CLA
Modified: 2011-03-29 16:47 EDT (History)
0 users

See Also:


Attachments
patch to use latest IRemoteFile and only remember lastInput when set (3.44 KB, patch)
2011-03-29 11:13 EDT, David McKnight CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.