Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Intercept changes in multivalued attributes
Intercept changes in multivalued attributes [message #430531] Tue, 26 May 2009 07:47 Go to next message
Jose Salazar is currently offline Jose SalazarFriend
Messages: 34
Registered: July 2009
Member
Hello,

To intercept a change in the value of an attribute can be done by
returning a CompoundCommand (for example) in the createSetCommand of
XXXItemProvider. The problem is that the multivalued attributes (using a
FeatureEditorDialog) does not pass through the createSetCommand, so I can
not take any action I want.

How can I intercept the changes of these attributes?


Thanks in advance.
Re: Intercept changes in multivalued attributes [message #430534 is a reply to message #430531] Tue, 26 May 2009 10:29 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Jose,

The FeatureEditorDialog simply returns the new value and the item
property descriptor uses that value in
ItemPropertyDescriptor.setPropertyValue which creates a SetCommand which
in turn creates AddCommands and RemoveCommands, which you can intercept
in your item provider just as you would a SetCommand for a single valued
property.


Jose Salazar wrote:
> Hello,
>
> To intercept a change in the value of an attribute can be done by
> returning a CompoundCommand (for example) in the createSetCommand of
> XXXItemProvider. The problem is that the multivalued attributes (using
> a FeatureEditorDialog) does not pass through the createSetCommand, so
> I can not take any action I want.
>
> How can I intercept the changes of these attributes?
>
>
> Thanks in advance.
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] Model to file on server
Next Topic:[CDO] Resources: understanding
Goto Forum:
  


Current Time: Thu Mar 28 15:57:21 GMT 2024

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

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

Back to the top