Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » why not display a combox selector in property sheet?
why not display a combox selector in property sheet? [message #127889] Fri, 07 July 2006 02:02 Go to next message
Eclipse UserFriend
Originally posted by: xubin.wei.ellingtonpcb.com

hi all:
when i add a control to ve.I write the code as blew in the beaninfo, but
do not display a combox selector in property sheet, why?

public class SimplemodelBeanInfo extends SimpleBeanInfo {
....................
public PropertyDescriptor[] getPropertyDescriptors() {

try {
PropertyDescriptor[] result = new PropertyDescriptor[3];
result[0] = new PropertyDescriptor("TextA", Simplemodel.class);
result[1] = new PropertyDescriptor("TextB", Simplemodel.class);
result[2] = new PropertyDescriptor("type", Simplemodel.class);
result[2].setValue("enumerationValues" ,new Object[] {
"Dots", new Integer(Simplemodel.DOTS),
"com.cy.controls.widget.Simplemodel.DOTS",
"More", new Integer(Simplemodel.MORE),
"com.cy.controls.widget.Simplemodel.MORE",
"Open", new Integer(Simplemodel.OPEN),
"com.cy.controls.widget.Simplemodel.OPEN"
});
return result;
} catch (IntrospectionException e) {
e.printStackTrace();
return null;
}
}
thanks
Re: why not display a combox selector in property sheet? [message #127955 is a reply to message #127889] Fri, 07 July 2006 16:05 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

It looks ok. Try cleaning the cache first.

1) Open a VE, then close it and all other VEs.
2) Do Project->Clean...->Clean all... and wait for build to finish.
3) Open the VE. See if it now works.

If it doesn't, are there any errors in the .log file?

--
Thanks,
Rich Kulp
Re: why not display a combox selector in property sheet? [message #613478 is a reply to message #127889] Fri, 07 July 2006 16:05 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

It looks ok. Try cleaning the cache first.

1) Open a VE, then close it and all other VEs.
2) Do Project->Clean...->Clean all... and wait for build to finish.
3) Open the VE. See if it now works.

If it doesn't, are there any errors in the .log file?

--
Thanks,
Rich Kulp
Previous Topic:Visual editor and delphi
Next Topic:NullPointerException when displaying a visual class
Goto Forum:
  


Current Time: Thu Apr 25 23:59:06 GMT 2024

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

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

Back to the top