Skip to main content



      Home
Home » Archived » Visual Editor (VE) » PropertyEditor
PropertyEditor [message #607333] Wed, 04 May 2005 10:43
Eclipse UserFriend
Hello,


I would like to have an editor for a property of my class. Do I have to
use an override (.xmi) file as in your tutorial?

Or it is enough to say the VE in the class beaninfo to use my editor as in
my example below?



Thank you in advance
Elena

------------------------------------------------------------ -----
public PropertyDescriptor[] getPropertyDescriptors()
{

PropertyDescriptor[] props =
{

property("Test", "This is a test for my property editor") };
props[0].setPropertyEditorClass(TestEditor.class);
}
return props;

}

public static PropertyDescriptor property(String name, String description)
throws IntrospectionException
{

PropertyDescriptor p = new PropertyDescriptor(name,
ResourceProperties.class);
p.setShortDescription(description);
return p;
}
Previous Topic:BeanInfo
Next Topic:Eclipse VE jre 1.5.x problem
Goto Forum:
  


Current Time: Sat Jun 14 20:12:06 EDT 2025

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

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

Back to the top