Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » PropertyDescriptor
PropertyDescriptor [message #108051] Sat, 24 September 2005 19: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 12:10 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
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 12:10 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
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: Fri Apr 26 05:12:17 GMT 2024

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

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

Back to the top