PropertyDescriptor [message #108051] |
Sat, 24 September 2005 15:42  |
Eclipse User |
|
|
|
Originally posted by: danijel_zecevic.hotmail.com
Hello,
how is java.beans.PropertyDescriptor mapped to
org.eclipse.ui.views.properties.PropertyDescriptor?
Is there some reference to class or code that does that?
Thank you,
Danijel
|
|
|
Re: PropertyDescriptor [message #108122 is a reply to message #108051] |
Mon, 26 September 2005 08:10  |
Eclipse User |
|
|
|
Hi ddd,
> how is java.beans.PropertyDescriptor mapped to
> org.eclipse.ui.views.properties.PropertyDescriptor?
IPropertyDescriptor represents the property sheet row and is returned by
IPropertySource.
In the VE when you select something like a Button or Window what occurs
is that you are selecting the edit part over an IJavaObjectInstance.
This is an EMF object that represents the JavaBean and its properties.
An EMF adapter that is (or is a subclass of) BeanPropertySourceAdapter
is created. This is a good place to debug into and implements
IPropertySource (the specific adapter used comes from the
ClassDescriptorDecorator and can be overridden as occurs for example
with org.eclipse.swt.widgets.Widget to provide things like consructor
style bits). The PropertySourceAdapter returns the IPropertyDescriptor
objects that are adapters on the EMF structural feature that contains
the information in the PropertyDescrpitor.
The java.beansPropertyDescriptor itself is never loaded into Eclipse as
this is part of the user's build path so instead it is proxied onto a
target VM, and the BeanPropertyDescriptorDecorator provides the
mechanism to adapter it to the IPropertyDescriptor interface required by
Eclipse.
The best places to look would be to get a development workbench and
start by debugging and looking around BeanPropertyDescriptor and its
method IPropertyDescriptor[] getPropertyDescriptors();
Best regards,
Joe Winchester
|
|
|
Re: PropertyDescriptor [message #610868 is a reply to message #108051] |
Mon, 26 September 2005 08:10  |
Eclipse User |
|
|
|
Hi ddd,
> how is java.beans.PropertyDescriptor mapped to
> org.eclipse.ui.views.properties.PropertyDescriptor?
IPropertyDescriptor represents the property sheet row and is returned by
IPropertySource.
In the VE when you select something like a Button or Window what occurs
is that you are selecting the edit part over an IJavaObjectInstance.
This is an EMF object that represents the JavaBean and its properties.
An EMF adapter that is (or is a subclass of) BeanPropertySourceAdapter
is created. This is a good place to debug into and implements
IPropertySource (the specific adapter used comes from the
ClassDescriptorDecorator and can be overridden as occurs for example
with org.eclipse.swt.widgets.Widget to provide things like consructor
style bits). The PropertySourceAdapter returns the IPropertyDescriptor
objects that are adapters on the EMF structural feature that contains
the information in the PropertyDescrpitor.
The java.beansPropertyDescriptor itself is never loaded into Eclipse as
this is part of the user's build path so instead it is proxied onto a
target VM, and the BeanPropertyDescriptorDecorator provides the
mechanism to adapter it to the IPropertyDescriptor interface required by
Eclipse.
The best places to look would be to get a development workbench and
start by debugging and looking around BeanPropertyDescriptor and its
method IPropertyDescriptor[] getPropertyDescriptors();
Best regards,
Joe Winchester
|
|
|
Powered by
FUDForum. Page generated in 0.04330 seconds