Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to use a EditorPart to draw Draw2D figures on it ?
How to use a EditorPart to draw Draw2D figures on it ? [message #230965] Sun, 25 February 2007 17:48 Go to next message
Eclipse User
Originally posted by: ii5840.fh-wedel.de

Hi!

I going to create a eclipse plugin containing a graphical editor
(EditorPart) .
I'm not sure that I can use the GEF existing editor so I decided to
implement my own.
I extend the abstract class EditorPart and plant to use a Canvas to draw
the graphics with Draw2D.
My problem is that I can't find how a EditorPart exactly works. Where
must I create the Canvas object I am going to draw at and which methodes
are called from eclipse system to draw the canvas content ?

Is there a tutorial which can help me or can someone explain how the
editor works generaly ?

thanks, Jan
Re: How to use a EditorPart to draw Draw2D figures on it ? [message #230999 is a reply to message #230965] Mon, 26 February 2007 10:01 Go to previous messageGo to next message
Eclipse User
Originally posted by: jakub.jurkiewicz.gmail.com

Hi,

Did you look at this tutorial:
http://eclipsewiki.editme.com/GefDescription ?
Maybe you could find some useful information there.

regards
Jakub Jurkiewicz

Jan Bernitt wrote:
> Hi!
>
> I going to create a eclipse plugin containing a graphical editor
> (EditorPart) .
> I'm not sure that I can use the GEF existing editor so I decided to
> implement my own.
> I extend the abstract class EditorPart and plant to use a Canvas to draw
> the graphics with Draw2D.
> My problem is that I can't find how a EditorPart exactly works. Where
> must I create the Canvas object I am going to draw at and which methodes
> are called from eclipse system to draw the canvas content ?
>
> Is there a tutorial which can help me or can someone explain how the
> editor works generaly ?
>
> thanks, Jan
Re: How to use a EditorPart to draw Draw2D figures on it ? [message #231021 is a reply to message #230999] Mon, 26 February 2007 12:02 Go to previous messageGo to next message
Eclipse User
Originally posted by: ii5840.fh-wedel.de

Hi!

> Did you look at this tutorial:
> http://eclipsewiki.editme.com/GefDescription ?
Yes I had a look at that.
> Maybe you could find some useful information there.
I'm not sure if I can use it that way. Maybe I have to create my own
editor extending EditorPart class. And how this exactly works I can't
find until now.

The problem is that the graphical editor I am going to create musst be
able to customise its tool-window at runtime with tools created with the
editor itself.
If someone can tell me if the GEF existing framework is able to do that
I didn't have to understand the EditorPart class because I can extend
one of the GEF existing graphical editors as descriped in some tutorial
I found.

regards, Jan
Re: How to use a EditorPart to draw Draw2D figures on it ? [message #231143 is a reply to message #230965] Tue, 27 February 2007 18:40 Go to previous messageGo to next message
Eclipse User
Originally posted by: ii5840.fh-wedel.de

> My problem is that I can't find how a EditorPart exactly works. Where
> must I create the Canvas object I am going to draw at and which methodes
> are called from eclipse system to draw the canvas content ?
I figured it out by try a lot of things. Its simple but there is no
document exacly tells you what to do ;)
Re: How to use a EditorPart to draw Draw2D figures on it ? [message #528028 is a reply to message #231143] Sun, 18 April 2010 22:37 Go to previous message
No real name is currently offline No real name
Messages: 1
Registered: April 2010
Junior Member
Hi there,

I have somewhat the same Problem, so I didn't want to open up a new thread, although this one is pretty old.

I would be thankful for some hints/tips/links on how to work with the EditorPart and where to create the Canvas. I need to draw some 3D-Objects in the Editor using JOGL (later on also some other bindings, for evaluation purposes) and therefore need to get a canvas in the editor.

Thanks in advance,

Dimi
Previous Topic:Draw2d Printing to XPS format not operational
Next Topic:info on figure with unknown anchor(s)
Goto Forum:
  


Current Time: Thu Oct 30 15:13:47 GMT 2014

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

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