Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:16 Go to next message
Anil tanneru is currently offline Anil tanneruFriend
Messages: 21
Registered: March 2014
Junior Member
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 14:28 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
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] Sun, 01 November 2015 01:31 Go to previous message
Jack Webber is currently offline Jack WebberFriend
Messages: 5
Registered: October 2015
Junior Member
You have to add the action bar contributor to your plugin.xml.

[Updated on: Mon, 02 November 2015 03:10]

Report message to a moderator

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


Current Time: Wed Oct 09 04:53:33 GMT 2024

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

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

Back to the top