How to draw lines between tree items [message #216967] |
Mon, 29 May 2006 16:18 |
Eclipse User |
|
|
|
Originally posted by: guedes.bruno.gmail.com
Hi everybody,
I'm trying to make a eclipse plugin for the Dozer project
(http://dozer.sourceforge.net/).
I would like to do a source tree, with a target tree, in a editor, I'va
already done this with GEF Tree, or JFaces Tree, using a SashForm.
But When I want to use a PaletteRoot with a ConnectionCreationToolEntry
for connecting a source tree item to a target tree item, it doesn't work
;-((
The GEF or JFaces Tree is part of Widget object and not Figure object,
that's why it couldn't work !!
Well, I want to know if there is a simple solution to do (or solve) this
kind of thing ???
It seems very boring to do a TreeFigure who implements the IFigure
Interface, or to use a basic drawLine method !!! I prefer to use a
PolylineConnection to do the job ;-)
Well, hope that somebody could help me ...
Sincerely
Bruno
|
|
|
Re: How to draw lines between tree items [message #217013 is a reply to message #216967] |
Wed, 31 May 2006 01:23 |
Steven R. Shaw Messages: 128 Registered: July 2009 |
Senior Member |
|
|
Take a look at the SimpleTreeExample example in the
org.eclipse.draw2d.examples.tree package. The org.eclipse.draw2d.examples
is only available from CVS. Refer to the GEF wiki on how to attach to the
repository.
-Steve
"bguedes" <guedes.bruno@gmail.com> wrote in message
news:c8b78b3065fcc17f7275f69cf6d7ab08$1@www.eclipse.org...
>
> Hi everybody,
>
> I'm trying to make a eclipse plugin for the Dozer project
> (http://dozer.sourceforge.net/).
>
> I would like to do a source tree, with a target tree, in a editor, I'va
> already done this with GEF Tree, or JFaces Tree, using a SashForm.
>
> But When I want to use a PaletteRoot with a ConnectionCreationToolEntry
> for connecting a source tree item to a target tree item, it doesn't work
> ;-((
>
> The GEF or JFaces Tree is part of Widget object and not Figure object,
> that's why it couldn't work !!
>
> Well, I want to know if there is a simple solution to do (or solve) this
> kind of thing ???
>
> It seems very boring to do a TreeFigure who implements the IFigure
> Interface, or to use a basic drawLine method !!! I prefer to use a
> PolylineConnection to do the job ;-)
>
> Well, hope that somebody could help me ...
>
> Sincerely
>
> Bruno
>
|
|
|
Re: How to draw lines between tree items [message #217054 is a reply to message #217013] |
Wed, 31 May 2006 09:07 |
Eclipse User |
|
|
|
Originally posted by: guedes.bruno.gmail.com
Hi Stephen,
Thank's for having aswering ...
I've already check the draw2D tree example code. Well, I've began to
integrate it to a plugin, but it seems to me, that to do all from scratch
is so boring.
I'm amazed, that in the GEF framework, we couldn't not use a specific GEF
tree that implement IFigure interface !!!
Well, for drawing boxes (UML and so one), GEF is a good way, but when you
do some exotic stuff, well, use draw2D it a lot of time !!!
I'm a little diseappointed with GEF ... But, perhaps I want to do
something to mutch difficult ???
Sincerely
Bruno
|
|
|
|
Powered by
FUDForum. Page generated in 0.03282 seconds