Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to realise an undo for Element Propertys ...
How to realise an undo for Element Propertys ... [message #238694] Thu, 27 September 2007 03:17 Go to previous message
Daniel Stein is currently offline Daniel Stein
Messages: 11
Registered: July 2009
Junior Member
Hi everyone.
I'm developing an GEF Application to edit "Buisness Models".

One Task in the model is represented by an Figure. Each Task has various propertys, like name, time of execution etc. I've implemented an view (ViewPart) with an TableViewer and different CellEditors. I need TextCellEditors an ComboBoxCellEditors in combination. This is the reason why I don't use the standard Eclipse PropertyView.
When a User selects an Figure, the propertys are shown in the described View. So far everything works perfect.
But I want to implement an undo / redo Function for the property changes.
The solution, that I figured out is not very satisfying:

When an Editor gets visible, the view asks the editor for the Command Stack. If an Cell is modified an Command is executed to change the property. A command Stack Listener takes care of refreshing the Propertys Table Viewer, when an "Property Change Command" was executed.
But this strategy causes a lot of problems.

So short question: Is there a proper way in GEF to solve the described problem ?
 
Read Message
Read Message
Previous Topic:Mapping ConnectionAnchors with Connections
Next Topic:numeric characters in Arabic os
Goto Forum:
  


Current Time: Sat May 25 15:49:00 EDT 2013

Powered by FUDForum. Page generated in 0.12146 seconds