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 15:18 Go to next message
Yigal Spinner is currently offline Yigal Spinner
Messages: 102
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 12:38 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26010
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
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: Wed Aug 27 11:04:07 EDT 2014

Powered by FUDForum. Page generated in 0.01690 seconds