Skip to main content



      Home
Home » Archived » Visual Editor (VE) » How I can show variable names in property sheet?
How I can show variable names in property sheet? [message #15906] Wed, 21 January 2004 03:11 Go to next message
Eclipse UserFriend
Hi.
I've a JavaBean with get/set methods that return/receives a JButton object.
VE can't show correcty this type of properties in the properties sheet
because doesn't show the variables names of the code.

I'm trying to made a BeanInfo that repair this.
CheckBox object has a property named 'checkboxGroup' that inspect the code
and show the variables that references to checkboxGroup objects.
¿Why can implement a similar functionally for any JavaBean and any
variable type?

I used the source code of CheckBoxBeanInfo in my BeanInfo class that must
show variables of type JButton instead CheckBoxGroup but I don't obtain
any result.

I changed lines as:
super.createMethodDescriptor(getBeanClass(),"getCheckboxGroup "... for
super.createMethodDescriptor(getBeanClass(),"getJButton"... and implements
method with same name in the JavaBean class.
I' ve changed java.awt.CheckboxGroup.class reference to
javax.swing.JButton too and all references to CheckBox objects for JButton
objects.

But nothing happen.

Exists some steps to permit a conversion of checkBoxBeanInfo to show
another variables types in the properties sheet for use with other
JavaBean classes?

Many thanks.
Re: How I can show variable names in property sheet? [message #15938 is a reply to message #15906] Wed, 21 January 2004 06:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi David,

Migeul Tato asked pretty much the exact same question a while back in the
thread "reference evaluation issue in the Properties View".

The BeanInfo stuff you're doing won't work. At the moment we use BeanInfo for
everything that is in the BeanInfo specificiation, but for the extra stuff you
are trying to do now requires code that runs inside the VE itself. This code
(that does work for checkboxGroup) needs knowledge of the internals of the VE
object model so it can list things of a particular type. BeanInfo right now
has no way of exposing this in a way that is cross IDE because there is no
common builder model. For that reason we didn't expose this kind of API to
BeanInfo developers because we felt that people wanting to write this type of
extension would be plugin developers.

How we proceed with this is really a topic for the ve-dev mailing list where it
can be discussed with all of the comitters.

One thing I'd like is it you could imagine that the world was perfect - how
would you expect to program what you're trying to do ?
Without wishing to prejudice what you say, if you would expect to be able to do
this in the BeanInfo does it worry you that you would be specifying Eclipse VE
only-classes in a BeanInfo ? This would very possibly preclude your BeanInfo
from working in another IDE environment. Are you happy with writing plugins to
do the kind of property editor you want ?

Best regards,

Joe Winchester
Re: How I can show variable names in property sheet? [message #15955 is a reply to message #15938] Wed, 21 January 2004 09:34 Go to previous message
Eclipse UserFriend
Many thanks for your cooperation.
I'm interesting in write a plugin to solve this problem but my knowledge
is very simple about Eclipse. Where I cant find information to start the
development of this plugin?
Re: How I can show variable names in property sheet? [message #578768 is a reply to message #15906] Wed, 21 January 2004 06:31 Go to previous message
Eclipse UserFriend
Hi David,

Migeul Tato asked pretty much the exact same question a while back in the
thread "reference evaluation issue in the Properties View".

The BeanInfo stuff you're doing won't work. At the moment we use BeanInfo for
everything that is in the BeanInfo specificiation, but for the extra stuff you
are trying to do now requires code that runs inside the VE itself. This code
(that does work for checkboxGroup) needs knowledge of the internals of the VE
object model so it can list things of a particular type. BeanInfo right now
has no way of exposing this in a way that is cross IDE because there is no
common builder model. For that reason we didn't expose this kind of API to
BeanInfo developers because we felt that people wanting to write this type of
extension would be plugin developers.

How we proceed with this is really a topic for the ve-dev mailing list where it
can be discussed with all of the comitters.

One thing I'd like is it you could imagine that the world was perfect - how
would you expect to program what you're trying to do ?
Without wishing to prejudice what you say, if you would expect to be able to do
this in the BeanInfo does it worry you that you would be specifying Eclipse VE
only-classes in a BeanInfo ? This would very possibly preclude your BeanInfo
from working in another IDE environment. Are you happy with writing plugins to
do the kind of property editor you want ?

Best regards,

Joe Winchester
Re: How I can show variable names in property sheet? [message #578786 is a reply to message #15938] Wed, 21 January 2004 09:34 Go to previous message
Eclipse UserFriend
Many thanks for your cooperation.
I'm interesting in write a plugin to solve this problem but my knowledge
is very simple about Eclipse. Where I cant find information to start the
development of this plugin?
Previous Topic:How I can show variable names in property sheet?
Next Topic:Why I can reference source code form a Property Editor class?
Goto Forum:
  


Current Time: Mon May 12 03:07:47 EDT 2025

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

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

Back to the top