Bug 37084

Summary: [Dialogs] why forcing IAdaptable object as the element
Product: [Eclipse Project] Platform Reporter: Joseph Khalil <jkhalil>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P4 CC: debbie_wilson
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Joseph Khalil CLA 2003-04-30 06:11:38 EDT
i wonder why the PropertyPage  insist on making the element in it which is 
passed to the page as IAdaptable else a class cast exception occurs.
in my case the object i want to see its properties is not IAdaptable and i
don't want it to implement this interface in its class because i want the class 
to be generic and doesn't depend on eclipse,
by forcing that the element is IAdaptable you stop the user from showing his 
ordinary objects (objects that don't implement IAdaptable) in the properties 
dialog.
i know that i can wrap my object in an object that implement IAdaptable but i 
think the best way is to make the element as Object class object
Comment 1 Tod Creasey CLA 2003-05-08 11:09:42 EDT
The IAdaptable element was selected so that support for the preference and 
property pages for elements that adapt to IResource were supported.

Marking this as a feature request as it is a breaking API change.
Comment 2 Jean-Michel Lemieux CLA 2004-12-06 15:21:38 EST

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