Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Adding Code for setting a property programatically
Adding Code for setting a property programatically [message #137032] Thu, 29 March 2007 03:36
Eclipse UserFriend
Originally posted by:

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
cb.applyAttributeSetting((EObject) model, esf, ijoi);
Command command = cb.getCommand();

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


Any help in this regards is greatly appreciated.
Thank You and Regards,
Previous Topic:Updating org.eclipse.jem to version 1.2.3 and breaking the Faces Configuration E
Next Topic:Adding Code for setting a property programatically
Goto Forum:

Current Time: Mon Oct 05 17:19:00 GMT 2015

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

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