Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Undo / Redo not active when in Graphiti property view(A properties view associated with Graphiti diagram only allows undo if diagram has focus.)
Undo / Redo not active when in Graphiti property view [message #1729596] Fri, 15 April 2016 18:31 Go to next message
Gerard Teurlinx is currently offline Gerard TeurlinxFriend
Messages: 2
Registered: April 2016
Junior Member
I created a property section using the <propertySection ... /> support in plugin.xml. The code of the property section inherits from GFPropertySection. Using the properties view I can e.g. change the name of an object (PictogramElement) in the diagram. However I'm unable to get undo/redo working correctly.
Undo / Redo menu items are enabled when the diagram has focus; in this case they work as expected and I can undo / redo changes in the diagram.
However if the property section has focus then the undo /redo menu items become disabled.
Hope anyone could help me out.
Re: Undo / Redo not active when in Graphiti property view [message #1729822 is a reply to message #1729596] Tue, 19 April 2016 11:07 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Gerard,

in principle this should be possible, however I have not tried that myself.

Basic condition is that the editor and the property sheet both use the same editing domain. What you probably need to do is register actions plus eventually the menu items and connect them to trigger the undo/redo of the editor. Not sure how to achieve that in detail, but that's at least a sketch of what I'd try to do.

HTH,
Michael
Re: Undo / Redo not active when in Graphiti property view [message #1729866 is a reply to message #1729822] Tue, 19 April 2016 16:50 Go to previous message
Gerard Teurlinx is currently offline Gerard TeurlinxFriend
Messages: 2
Registered: April 2016
Junior Member
Hi Michael,

Thanks a lot. I will give it a try but allow me some time..
-Gerard
Previous Topic:Support for using SVG figures/shapes (GSoC 2016?)
Next Topic:Rearranging shapes according to EMF model
Goto Forum:
  


Current Time: Sat Oct 12 18:43:36 GMT 2024

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

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

Back to the top