Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF on ViewPart
GEF on ViewPart [message #131421] Sat, 08 May 2004 05:52 Go to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Hi,

Is it possible to use GEF on the eclipse viewpart instead of editpart? I
would like to render the images on the view rather than the editor. It
would be great if there is a simple how-to example.

Thanks
sl
Re: GEF on ViewPart [message #131581 is a reply to message #131421] Mon, 10 May 2004 21:06 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Indeed, it is. A GraphicalViewer can be placed on any SWT Control. You
have to first decide whether you need GEF, or you can make do with Draw2D.
The FlowExample has a PluginDependenciesView that uses Draw2D in a view.


"sl" <jsk_lam@hotmail.com> wrote in message news:c7hsik$17j$1@eclipse.org...
> Hi,
>
> Is it possible to use GEF on the eclipse viewpart instead of editpart? I
> would like to render the images on the view rather than the editor. It
> would be great if there is a simple how-to example.
>
> Thanks
> sl
>
Re: GEF on ViewPart [message #131850 is a reply to message #131581] Wed, 12 May 2004 06:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jsk_lam.hotmail.com

Hi Pratik,

Where could I find the flowExample? Do I have to use GEF with Draw2D
together? What exactly are the difference between GEF and Draw2D?

Thanks
sl

Pratik Shah wrote:

> Indeed, it is. A GraphicalViewer can be placed on any SWT Control. You
> have to first decide whether you need GEF, or you can make do with Draw2D.
> The FlowExample has a PluginDependenciesView that uses Draw2D in a view.


> "sl" <jsk_lam@hotmail.com> wrote in message news:c7hsik$17j$1@eclipse.org...
> > Hi,
> >
> > Is it possible to use GEF on the eclipse viewpart instead of editpart? I
> > would like to render the images on the view rather than the editor. It
> > would be great if there is a simple how-to example.
> >
> > Thanks
> > sl
> >
Re: GEF on ViewPart [message #131894 is a reply to message #131850] Wed, 12 May 2004 14:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

See the GEF homepage, www.eclipse.org/gef. It has an FAQ, as well as other
information and the example downloads that include the logic and flow
examples.

"sl" <jsk_lam@hotmail.com> wrote in message news:c7sfdd$iq2$1@eclipse.org...
> Hi Pratik,
>
> Where could I find the flowExample? Do I have to use GEF with Draw2D
> together? What exactly are the difference between GEF and Draw2D?
>
> Thanks
> sl
>
> Pratik Shah wrote:
>
> > Indeed, it is. A GraphicalViewer can be placed on any SWT Control. You
> > have to first decide whether you need GEF, or you can make do with
Draw2D.
> > The FlowExample has a PluginDependenciesView that uses Draw2D in a view.
>
>
> > "sl" <jsk_lam@hotmail.com> wrote in message
news:c7hsik$17j$1@eclipse.org...
> > > Hi,
> > >
> > > Is it possible to use GEF on the eclipse viewpart instead of editpart?
I
> > > would like to render the images on the view rather than the editor. It
> > > would be great if there is a simple how-to example.
> > >
> > > Thanks
> > > sl
> > >
>
>
Re: GEF on ViewPart [message #142415 is a reply to message #131894] Mon, 12 July 2004 12:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ngeorgemel.eclipse.laposte.net

HI every one, i have another question on this subject :

in follwing GEF flow example, i try this :

public class ViewPartSample2 extends ViewPart
{
public static final String ID_VIEW ="TestPlugin.ViewPartSample2";

FigureCanvas canvas;

public void createPartControl(Composite parent)
{
canvas = new FigureCanvas(parent);
}

when i run this code there's no message on console, My RCP application
run correctly, so in view there's this message :

"An error has occurred when creating this view"

i don't understand cause this code is the same used by flow example,

Maybe i didn't initialize something ?

Someone could explain me what is wrong ?
Re: GEF on ViewPart [message #142623 is a reply to message #142415] Tue, 13 July 2004 19:29 Go to previous message
Eclipse UserFriend
Originally posted by: ngeorgemel.eclipse.laposte.net

Nicolas Georgemel wrote:
sorry for disturb... i found solution

i had gef and draw2d dependency in plugin.xml manifest and update
classpath...

Now all works fine !


> HI every one, i have another question on this subject :
>
> in follwing GEF flow example, i try this :
>
> public class ViewPartSample2 extends ViewPart
> {
> public static final String ID_VIEW ="TestPlugin.ViewPartSample2";
>
> FigureCanvas canvas;
>
> public void createPartControl(Composite parent)
> {
> canvas = new FigureCanvas(parent);
> }
>
> when i run this code there's no message on console, My RCP application
> run correctly, so in view there's this message :
>
> "An error has occurred when creating this view"
>
> i don't understand cause this code is the same used by flow example,
>
> Maybe i didn't initialize something ?
>
> Someone could explain me what is wrong ?
Previous Topic:How to mix GEF's selection display into the PropertySheet with other selections from different Views
Next Topic:getSelectedObjects() is empty
Goto Forum:
  


Current Time: Fri Apr 26 14:49:29 GMT 2024

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

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

Back to the top