Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » NatTable in Eclipse editor(Which editor class to inherit from?)
NatTable in Eclipse editor [message #1558343] Sun, 11 January 2015 12:08 Go to next message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 104
Registered: October 2011
Location: Berlin, Germany
Senior Member

If possible, I'd like to use a NatTable widget in an Eclipse editor (RCP 3 app) to leverage undo/redo functionality.

Are there best practices about which editor class to inherit from, or an example project somewhere?

Or is this the wrong approach altogether (does NT bring its own undo/redo and command functionality?)?

Thanks!
Re: NatTable in Eclipse editor [message #1558441 is a reply to message #1558343] Sun, 11 January 2015 13:27 Go to previous message
Stephan Druskat is currently offline Stephan DruskatFriend
Messages: 104
Registered: October 2011
Location: Berlin, Germany
Senior Member

Okay, I guess I just inherit from org.eclipse.ui.part.EditorPart and overwrite createPartControl(). And then use org.eclipse.ui.command extensions for registering commands as usual, undo and redo e.g. via the ActionBarContributor.

Basic stuff really. Embarrassed

[Updated on: Sun, 11 January 2015 13:38]

Report message to a moderator

Previous Topic:is it dangerous to replace java.util.ArrayList by ca.odell.glazedlists.FilterList ?
Next Topic:Freeze and Unfreeze column
Goto Forum:
  


Current Time: Thu Apr 25 17:06:18 GMT 2024

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

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

Back to the top