Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341616 - SystemResourceSelectionForm needs to check whether selected is an IAdaptable
Summary: SystemResourceSelectionForm needs to check whether selected is an IAdaptable
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: 341619
  Show dependency tree
 
Reported: 2011-04-01 09:14 EDT by David McKnight CLA
Modified: 2011-04-01 09:40 EDT (History)
0 users

See Also:


Attachments
patch to check for IAdaptable (1.55 KB, patch)
2011-04-01 09:15 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-04-01 09:14:30 EDT
In SystemResourceSelectionForm.selectionChanged() the following is called:

 ISystemViewElementAdapter elementAdapter = (ISystemViewElementAdapter)((IAdaptable)selectedObject).getAdapter(ISystemViewElementAdapter.class);

The code assumes selectedOject is an IAdaptable but that might not always be the case.
Comment 1 David McKnight CLA 2011-04-01 09:15:41 EDT
Created attachment 192355 [details]
patch to check for IAdaptable
Comment 2 David McKnight CLA 2011-04-01 09:40:47 EDT
I've committed the fix to cvs.