How to handle beans with properties of type [] [message #73413] |
Wed, 01 December 2004 04:46  |
Eclipse User |
|
|
|
Originally posted by: erwin.fallaux.nl.thalesgroup.com
Hello,
I am relatively new to the whole javabeans concept, and i have stumbled
onto a problem.
I am having some trouble with understanding how the propertysheet deals
with beans which have properties of an array type.
For example, i have a bean with a property called 'categories' which is of
type String[].
When i select that property in the propertysheet, i would like to be able
to add individual elements to the array.
But, when i press the ... button, the VE comes with the BeanChoose dialog,
with a filter java.lang.String[].
Is there a way to add elements to an array with a dialog?
Or do i have to create my own PropertyEditor to do this?
I have created the bean with an indexed property, the following methods:
- public String[] getCategories
- public void setCategories(String[] categories)
- public String getCategories(int index)
- public void setCategories(int index, String category)
Thanks in advance,
Erwin Fallaux
|
|
|
|
|
|
|
|
|
Re: How to handle beans with properties of type [] [message #603591 is a reply to message #73455] |
Wed, 01 December 2004 10:37  |
Eclipse User |
|
|
|
Originally posted by: erwin.fallaux.nl.thalesgroup.com
Thanks for your response,Richard.
I saw that a bug has been reported about this problem, 49718. I am
assuming this is the enhancement request you are referring to.
Could you give me some more information about when this will be solved.
I am dealing with a deadline for my project. So i have to consider waiting
for this bug or implementing something myself. Obviously, i would prefer
the first.
Thanks again,
Erwin Fallaux
|
|
|
|
Powered by
FUDForum. Page generated in 0.27635 seconds