Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ViewPart and undo/redo
ViewPart and undo/redo [message #336521] Thu, 18 June 2009 19:49 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
I have a simple ViewPart that impls the following extends ViewPart
implements ISetSelectionTarget, ISaveablePart. I would like the part to
participate in the global undo/redo and I am having difficlutry trying to
figure how to accomplsih this. I am well versed in undo/redo when it comes
to using IEditorPart's but the ViewPart seems to be missing something. I am
also using the commandStack, editDomain from GEF. any examples or hints
would be greatly appreciated.
Re: ViewPart and undo/redo [message #336524 is a reply to message #336521] Fri, 19 June 2009 06:25 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

You can take a look at my example EMF/Databinding-Project [1]. There I'm
plugin myself into the workbench undo/redo from a ViewPart [2,3,4]
(search for makeActions).

[1] http://tomsondev.bestsolution.at/2009/06/06/galileo-improved -emf-databinding-support/
[2] http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/examples/org.eclipse.emf.examples.databinding.p roject.ui.rcp/src/org/eclipse/emf/example/databinding/projec t/ui/rcp/views/ProjectAdminViewPart.java?root=Modeling_Proje ct&view=markup
[3] http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/examples/org.eclipse.emf.examples.databinding.p roject.ui.rcp/src/org/eclipse/emf/example/databinding/projec t/ui/rcp/views/UndoAction.java?root=Modeling_Project&vie w=markup
[4] http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.emf/org .eclipse.emf/examples/org.eclipse.emf.examples.databinding.p roject.ui.rcp/src/org/eclipse/emf/example/databinding/projec t/ui/rcp/views/RedoAction.java?root=Modeling_Project&vie w=markup


drew schrieb:
> I have a simple ViewPart that impls the following extends ViewPart
> implements ISetSelectionTarget, ISaveablePart. I would like the part to
> participate in the global undo/redo and I am having difficlutry trying to
> figure how to accomplsih this. I am well versed in undo/redo when it comes
> to using IEditorPart's but the ViewPart seems to be missing something. I am
> also using the commandStack, editDomain from GEF. any examples or hints
> would be greatly appreciated.
>
>
Previous Topic:Deleting a file with unsaved changes
Next Topic:Obtaining SWT Browser from
Goto Forum:
  


Current Time: Fri Apr 26 19:52:44 GMT 2024

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

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

Back to the top