Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Changing of the initializing parameter in the property sheet
Changing of the initializing parameter in the property sheet [message #607097] Mon, 11 April 2005 10:44
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
Hello,


I use the allocation feature to initialize my component.


MyButton mb = new MyButton("test");


There is a string variable "argument" in the class MyButton. There is an
implementation of "getBeanDescritor" in the class "MyButtonBeanInfo".




public BeanDescriptor getBeanDescriptor() {

BeanDescriptor descriptor = new BeanDescriptor(EdmJButton.class);

descriptor.setValue("argument", "test");

return descriptor;
}




But if I change the value of an "argument" in the property sheet,
one more line will be inserted:


mb.setArgument("newvalue");


I would like that the string variable "test" changes to "newvalue" and
there will be not inserted any other line.


Is the class "MyButtonBeanInfo" not enough for that?
How do I have to change the funktion "getBeanDescriptor" to get it working
?
Can you give me a tip?


Thank you in advance
Elena
Previous Topic:Support of JFace and swt library
Next Topic:VE Support of Eclipse 3.1M6
Goto Forum:
  


Current Time: Sat Apr 27 03:39:03 GMT 2024

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

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

Back to the top