Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to draw lines between tree items
How to draw lines between tree items [message #216967] Mon, 29 May 2006 16:18 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to draw lines between tree items [message #217061 is a reply to message #217054] Wed, 31 May 2006 09:41 Go to previous message
Eclipse UserFriend
Originally posted by: guedes.bruno.gmail.com

Hi it's me again,

I would like to do quiet a same graphical plugin like this one :

http://edocs.bea.com/alsb/docs20/dtguide/dtguideMapper.html# 1339898

Well, not so beautiful, but with this tree source/target link functionality

Hasta luego

Bruno
Previous Topic:Separating graphical and business data in the model
Next Topic:how to avoid node figures intersection?
Goto Forum:
  


Current Time: Fri Mar 29 05:32:40 GMT 2024

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

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

Back to the top