How to use a EditorPart to draw Draw2D figures on it ? [message #230965] |
Sun, 25 February 2007 17:48 |
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 |
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 |
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 |
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 ;)
|
|
|
|
Powered by
FUDForum. Page generated in 0.02791 seconds