Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Overriding Sirius undo/redo(Can we delegate to another editing domain?)
Overriding Sirius undo/redo [message #1773667] Mon, 02 October 2017 15:45 Go to next message
Chris Mamorella is currently offline Chris MamorellaFriend
Messages: 34
Registered: June 2013
Member
With Sirius 3.x is it possible to delegate the undo/redo actions to a command stack from another editing domain via some type of override?

-Chris
Re: Overriding Sirius undo/redo [message #1773720 is a reply to message #1773667] Tue, 03 October 2017 13:49 Go to previous messageGo to next message
Julien Dupont is currently offline Julien DupontFriend
Messages: 172
Registered: July 2009
Senior Member
Hi Chris,

There is an extension point in org.eclipse.sirius.common.editingDomainFactory that provides its own org.eclipse.sirius.common.tools.api.editing.IEditingDomainFactory, which will be used to create the associated editing domain to the session (when it was created in SessionFactory). However, this can be dangerous for Sirius behavior. To use with caution.

Regards,
Re: Overriding Sirius undo/redo [message #1773721 is a reply to message #1773720] Tue, 03 October 2017 13:56 Go to previous messageGo to next message
Chris Mamorella is currently offline Chris MamorellaFriend
Messages: 34
Registered: June 2013
Member
Julien,

That interface only allows for TransactionalEditingDomains. The editing domain that I want to delegate to is an AdapterFactoryEditingDomain, so I don't believe that will work.

Regards,
Chris
Re: Overriding Sirius undo/redo [message #1773723 is a reply to message #1773721] Tue, 03 October 2017 14:43 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
public class org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl extends org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain implements org.eclipse.emf.transaction.impl.InternalTransactionalEditingDomain, org.eclipse.emf.transaction.util.Adaptable, org.eclipse.emf.transaction.TransactionalEditingDomain$DefaultOptions {

Regards

Ed Willink
Re: Overriding Sirius undo/redo [message #1773724 is a reply to message #1773723] Tue, 03 October 2017 15:47 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Sirius relies heavily on EMF Transaction's features, so whichever alternate editing domain you want to provide *must* be a TransactionalEditingDomain. There's no way around this.

Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Customizing the Sirius tab bar for 3.x
Next Topic:Is it a bug of Delete Element in Sirius editor?
Goto Forum:
  


Current Time: Thu Apr 25 12:55:32 GMT 2024

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

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

Back to the top