Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Accessing the modified objects after feature is executed(Accessing the modified objects after feature is executed)
Accessing the modified objects after feature is executed [message #1005679] Mon, 28 January 2013 04:08 Go to next message
Andreas Graf is currently offline Andreas Graf
Messages: 151
Registered: July 2009
Senior Member
Dear all,

after a feature is executed, I would like to find out which elements had been modified.
I think that might be possible by calling getAffectedObjects(), but where would the features be executed as commands in Graphiti?
Is there a hook or where could I patch Graphiti?

Thanks,

Andreas
Re: Accessing the modified objects after feature is executed [message #1005715 is a reply to message #1005679] Mon, 28 January 2013 06:26 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1587
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Andreas,

in the end all features are wrapped and executed with EMF Transactions
RecordingCommands. They are executed within GFCommandStack.execute, there
you should be able to get access to the transactions information. But that
class is not part of the API and will get hard (if even possible) to grip
access to.

Michael
Previous Topic:invoke addifpossible after creating diagram is not showing shapes
Next Topic:[0.9] Passing our own TransactionalEditingDomain
Goto Forum:
  


Current Time: Wed Aug 27 15:15:13 EDT 2014

Powered by FUDForum. Page generated in 0.01801 seconds