i would like to implement an Undo/Redo functionality for the spreadsheet component of Nebula in my application. The grid component itself is used in an RCP-Application. Can anybody give me an advice or description how to realize this functionality for the (formatted) data in a spreadsheet component? I only found a general Undo/Redo description for swt:
My guess is that you've got a Domain-Model below the Grid, right?
Is this domain model by chance a EMF based, because then you could use
the Undo/Redo support provided by EMF-Edit and if you used
EMF-Databinding your grid would stay in sync by default.
Tom
Am 28.04.11 15:04, schrieb Marcel:
> Hello,
>
> i would like to implement an Undo/Redo functionality for the spreadsheet
> component of Nebula in my application. The grid component itself is used
> in an RCP-Application. Can anybody give me an advice or description how
> to realize this functionality for the (formatted) data in a spreadsheet
> component? I only found a general Undo/Redo description for swt:
>
> http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/SWTUndoRed o.htm
>
> But is this the best way for a massive amount of spreadsheet data?
>
> Any help is appreciated!
>
No, i have no domain model present. My implementation is a simple spreadsheet (with formatting options like e.g. font size, color etc.) in which i would like to implement this feature.