Skip to main content



      Home
Home » Modeling » Graphiti » Undo and Redo options with AddFeature(Undo and Redo Options in AddFeatue)
Undo and Redo options with AddFeature [message #1711760] Mon, 19 October 2015 10:16 Go to next message
Eclipse UserFriend
We have subclass with AbstractAddFeature implemnets IAddFeature and ICustomUndoableFeature.

When i use Ctrl+Z and Ctrl+Y options after drag and drop the shapes created by AddFeature, its not going through undo() and redo() methods in AddFeature subclass.

Is Ctrl+Z and Ctrl+Y options completely controlled by Eclipse , if so how can we bind those to this features. Like when we do Ctrl+Z i want to do some operations in undo() method.
Re: Undo and Redo options with AddFeature [message #1713066 is a reply to message #1711760] Fri, 30 October 2015 10:28 Go to previous messageGo to next message
Eclipse UserFriend
Anil,

Have you added an action bar contributor for your editor? In case you registered a DiagramEditor subclass of your own as editor, you will need to define the contributor class as well, the default to use would be org.eclipse.graphiti.ui.editor.DiagramEditorActionBarContributor.

Michael
Re: Undo and Redo options with AddFeature [message #1713129 is a reply to message #1713066] Sat, 31 October 2015 21:31 Go to previous message
Eclipse UserFriend
You have to add the action bar contributor to your plugin.xml.

[Updated on: Sun, 01 November 2015 22:10] by Moderator

Previous Topic:Undo and Redo Options in Graphiti
Next Topic:post redo/undo
Goto Forum:
  


Current Time: Thu Jul 17 06:34:53 EDT 2025

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

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

Back to the top