Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » hosting a gef editor in a dialog box
hosting a gef editor in a dialog box [message #185625] Tue, 28 June 2005 00:12 Go to next message
Damian Biollo is currently offline Damian BiolloFriend
Messages: 19
Registered: July 2009
Junior Member
Hi,

Has anyone tried to host a GEF editor as a child control in a dialog box?
It seems like you need to provide a custom implementation of IEditorSite in
order for this work correctly.

Are there any samples or proposed GEF changes that could make this easier to
accomplish?


Note that normally I'd use an Editor or View plugin to host the GEF editor,
however sometimes it's useful to be able to do more powerful things in a
dialog.

Thanks
Damian
Re: hosting a gef editor in a dialog box [message #185733 is a reply to message #185625] Wed, 29 June 2005 16:43 Go to previous message
Milan Stanojevic is currently offline Milan StanojevicFriend
Messages: 13
Registered: July 2009
Junior Member
Editors that are part of GEF plugin are not really suited for embedding in
other controls. Their javadoc clearly says that the editors should be used
only as a starting point and that implementation can be copied. I did that
for my multipage GEF editor.
You could probably host GEF GraphicalEditPartViewer in your Dialog which
is the important part. You can certainly copy other things from editors'
code. EditPartViewer need not be in EditorPart, see GEF's TreeViewer which
is usually hosted in ContentOutlinePage. You need to setup EditDomain in
your Dialog, maybe setup some SelectionListeners.
Previous Topic:Implementing multiple wizard pages
Next Topic:How can I prevent escape from closing display view in run/debug
Goto Forum:
  


Current Time: Thu Dec 12 16:20:16 GMT 2024

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

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

Back to the top