Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » PropertyPage's element
PropertyPage's element [message #1668] Tue, 22 April 2003 10:24 Go to next message
Joseph Khalil is currently offline Joseph KhalilFriend
Messages: 41
Registered: July 2009
Member
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
Re: PropertyPage's element [message #7782 is a reply to message #1668] Wed, 23 April 2003 21:15 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:USER-EXCLUDE in platform.cfg
Next Topic:make C-o open/show Outline view?
Goto Forum:
  


Current Time: Sat Aug 10 09:27:45 GMT 2024

Powered by FUDForum. Page generated in 0.04539 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top