Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Undo/Redo not working with DiagramEditor subclass
Undo/Redo not working with DiagramEditor subclass [message #1709047] Wed, 23 September 2015 14:33 Go to next message
Rafal Filipiuk is currently offline Rafal FilipiukFriend
Messages: 14
Registered: September 2015
Junior Member
Hi,

So I have a FooDiagramEditor that I registered under org.eclipse.ui.editors. It looks like this:

public class FooDiagramEditor extends DiagramEditor {
//class body is empty
}

When I open my diagram file (of diagramType X) with FooDiagramEditor, Undo and Redo don't work and are greyed out on the taskbar.

What's going on under the hood? Does the Graphiti Diagram Editor use different diagram behavior implementations than the one DiagramEditor offers?
Re: Undo/Redo not working with DiagramEditor subclass [message #1709050 is a reply to message #1709047] Wed, 23 September 2015 14:43 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Rafal,

the coding and the used behavior classes are the same, I guess what is missing in your case is the registration of the actions in the global action registry. This is done by DiagramEditorActionBarContributor, note that this class needs to be registered within your editor registration in plugin.xml as contributorClass.

HTH,
Michael
Previous Topic:How to link business model (file) to diagram instance?
Next Topic:Using Marquee Tool to select Connectors.
Goto Forum:
  


Current Time: Sat Oct 12 00:22:35 GMT 2024

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

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

Back to the top