Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 01 15:12:22 EDT 2025

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

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

Back to the top