Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF-Databinding and associated attributes(Have the databinding created compound commands to impact multiple attributes)
EMF-Databinding and associated attributes [message #1123620] Wed, 02 October 2013 19:18 Go to next message
Yigal Spinner is currently offline Yigal SpinnerFriend
Messages: 127
Registered: July 2009
Senior Member
I'm trying to create EMF binding and have the ability to impact another related attribute in the same class that logically relates to the current attribute.
The idea is to have the "Undo" and "Redo" modify both attributes (i.e. have a way to create a compound command).
For example, if I have two check boxes, one is called "Required" and the other is called "Nullable". Then if the item is required it can not be nullable. I would like to have a listener on the modification of the "Required" field and add a command to reset and disable the "Nullable" field.

Does EMF binding support such functionality?

Thanks
Yigal
Re: EMF-Databinding and associated attributes [message #1124537 is a reply to message #1123620] Thu, 03 October 2013 16:38 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Yigal,

Data binding used things like SetCommand.create which delegate to the
generated item providers for you model, so you can specialize behavior
by specializing the command created by createSetCommand in the item
provider of the class containing this feature.


On 02/10/2013 9:19 PM, Yigal Spinner wrote:
> I'm trying to create EMF binding and have the ability to impact
> another related attribute in the same class that logically relates to
> the current attribute.
> The idea is to have the "Undo" and "Redo" modify both attributes (i.e.
> have a way to create a compound command).
> For example, if I have two check boxes, one is called "Required" and
> the other is called "Nullable". Then if the item is required it can
> not be nullable. I would like to have a listener on the modification
> of the "Required" field and add a command to reset and disable the
> "Nullable" field.
>
> Does EMF binding support such functionality?
>
> Thanks Yigal


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Generating model project .. only available if source level is 1.5 or greater -- but I AM greater?!
Next Topic:How to Generate (Model) Code deleting prev. gen. code?
Goto Forum:
  


Current Time: Thu Apr 25 12:46:46 GMT 2024

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

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

Back to the top