Skip to main content



      Home
Home » Archived » Visual Editor (VE) » PropertyDescriptor
PropertyDescriptor [message #108051] Sat, 24 September 2005 15:42 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Additional bean info
Next Topic:JFace components in VE?
Goto Forum:
  


Current Time: Sun May 11 12:03:12 EDT 2025

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

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

Back to the top