Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Editing capabilities with GEF in Eclipse View
Editing capabilities with GEF in Eclipse View [message #479789] Wed, 12 August 2009 13:48 Go to next message
Eclipse UserFriend
Originally posted by: pitbule.abv.bg

Hi all,
Is it possible to create an Eclipse View with editing capabilities
provided by GEF ( to act as editor but in a view )?
Re: Editing capabilities with GEF in Eclipse View [message #479792 is a reply to message #479789] Wed, 12 August 2009 14:23 Go to previous messageGo to next message
Pascal G is currently offline Pascal GFriend
Messages: 157
Registered: July 2009
Senior Member
valeri111 wrote:
> Hi all,
> Is it possible to create an Eclipse View with editing capabilities
> provided by GEF ( to act as editor but in a view )?
>

The outline view is a good candidate to start with, since gef provide a
class to be embedded in the outline view (ContentOutlinePage). You can
do anything you'd do with an editor with it. However, it need to be
binded with an editor which will provide an instance of this class when
asked for a IContentOutlinePage through getAdapter(Class). Nevertheless,
it shows well that it is possible to create a view with editing
capabilities.

Other then the outline view, I think it could be pretty easy since
basically all you have to do is to set the control of the view with the
control of the gef viewer. I've never done this though...

--
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/

*Because performance matters.*
Re: Editing capabilities with GEF in Eclipse View [message #481430 is a reply to message #479789] Thu, 20 August 2009 23:17 Go to previous message
René is currently offline RenéFriend
Messages: 45
Registered: July 2009
Member
Hi,

all you need to use GEF is an SWT Control...So you can use GEF with an
Eclipse View (ViewPart). Look at this example, that may help:
http://www.eclipse.org/gef/reference/digraph1.php#Digraph1Vi ew

Cheers,
René

valeri111 wrote:
> Hi all,
> Is it possible to create an Eclipse View with editing capabilities
> provided by GEF ( to act as editor but in a view )?
>
Previous Topic:[Zest] DirectedGraphLayoutAlgorithm - Nodes are not visible
Next Topic:Exception in thubnail generation for outline view
Goto Forum:
  


Current Time: Thu Apr 25 16:54:34 GMT 2024

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

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

Back to the top