|
Re: PropertyPage's element [message #7782 is a reply to message #1668] |
Wed, 23 April 2003 21:15 |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
The API for property pages is currently defined in terms of IAdaptable
(IWorkbenchPropertyPage). If you're passing a non IAdaptable as input,
then you must be using non-API to do so (hence the ClassCastExceptions).
If you want to request that this API be changed, I suggest entering a
feature request in bugzilla. For now, you can either make your object
implement IAdaptable, or pass in a wrapper object that implements
IAdaptable and that can return your object.
--
Joseph Khalil wrote:
> Hi all
> i wonder why the PropertyPage (pages appears in the default properties
> dialog) 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
> i know that there are alot of usefulness of IAdaptable, but if i don't have
> access to make my object implement that interface then i won't be able to
> access its properties from the properties dialog
>
> i hope someone from eclipse team answer me
>
> thanks
> joe
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04539 seconds