Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Best way to implement Undo/Redo in Nebula Grid
Best way to implement Undo/Redo in Nebula Grid [message #667384] Thu, 28 April 2011 13:04 Go to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 134
Registered: July 2009
Senior Member
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!
Re: Best way to implement Undo/Redo in Nebula Grid [message #667391 is a reply to message #667384] Thu, 28 April 2011 13:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
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!
>
Re: Best way to implement Undo/Redo in Nebula Grid [message #667402 is a reply to message #667391] Thu, 28 April 2011 14:42 Go to previous message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 134
Registered: July 2009
Senior Member
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.
Previous Topic:Grid: ToolTip and image in ColumnHeader
Next Topic:how to add widgets into grid footer?
Goto Forum:
  


Current Time: Mon Dec 22 14:31:19 GMT 2014

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

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