Skip to main content



      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 14:31 Go to next message
Eclipse UserFriend
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 07:07 Go to previous messageGo to next message
Eclipse UserFriend
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 12:50 Go to previous message
Eclipse UserFriend
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: Mon Jun 23 18:06:37 EDT 2025

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

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

Back to the top