I'm using a single custom PropertyEditor, just implementing getAsText, setAsText and getTags.

But at selecting one of the combo options in Properties panel at design time it is generated uncompilable code like this (literally):

Java Code:

I need compilable code being generated like this:

Java Code:

or even

Java Code:
myBean.setProperty(new MyCustomComboChoiceClass());

Please help. What am I doing wrong? Do I need to write any extra code beyond the standard of JavaBeans for BeanInfo and Introspection?

Thanks and regards.