GEF on ViewPart [message #131421] |
Sat, 08 May 2004 05:52 |
Eclipse User |
|
|
|
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 #131850 is a reply to message #131581] |
Wed, 12 May 2004 06:15 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 ?
|
|
|
Powered by
FUDForum. Page generated in 0.03770 seconds