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

Bug 74891

Summary: [PropertyDialog] [RCP] PropertyDialogAction casts the selection to IAdaptable
Product: [Eclipse Project] Platform Reporter: Jean-Michel Lemieux <jean-michel_lemieux>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P2 CC: jeffmcaffer
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jean-Michel Lemieux CLA 2004-09-23 21:05:53 EDT
Nothing in the specification for the properties extension point or the javadoc
for PropertyDialogAction says that the objectClass property pages can be
registered against have to implement IAdaptable. But, the action casts the
selection to IAdaptable, which is bad. Instead it should test to see if the
object is of the type requested, and subsequently do the IAdaptable dance by
checking instanceof instead of blindly casting.

Workaround, write my own property dialog action.
Comment 1 Jean-Michel Lemieux CLA 2004-12-06 15:21:17 EST

*** This bug has been marked as a duplicate of 56212 ***