Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Re: Adding Code for setting a property programatically
Re: Adding Code for setting a property programatically [message #615206] Thu, 26 April 2007 13:56
Ed Merks is currently offline Ed MerksFriend
Messages: 29349
Registered: July 2009
Senior Member

I don't know enough about VE to answer this question, so I've added the
VE newsgroup to the "to" list and hope they will understand what you are

Solomon wrote:
> Hi All,
> I am trying to add code using the context menu programatically. I
> have defined a context menu using
> objectClass=" butor "
> I was successful in adding the code for setting a property if it is a
> text property .
> For example,
> EStructuralFeature esf = model.eClass().getEStructuralFeature("name");
> ResourceSet rs = model.eResource().getResourceSet();
> IJavaObjectInstance ijoi = BeanUtilities.createString(rs,"Field1");
> RuledCommandBuilder cb = new
> RuledCommandBuilder(EditDomain.getEditDomain(editpart));
> cb.applyAttributeSetting((EObject) model, esf, ijoi); Command command
> = cb.getCommand(); command.execute();
> I also want to add code for setting a property that has a method call
> to a object creation method as the attribute. For Example
> field.setProperty(getField2());
> Any help in this regards is greatly appreciated.
> Thank You and Regards,
Previous Topic:Re: Adding Code for setting a property programatically
Next Topic:What need to be done to get VEP in Europa
Goto Forum:

Current Time: Mon May 21 05:15:30 GMT 2018

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

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

Back to the top