Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to draw line between two TreeView in GEF
How to draw line between two TreeView in GEF [message #153476] Sun, 10 October 2004 12:34 Go to next message
Eclipse UserFriend
Originally posted by: lin_tower.hotmail.com

Hi all,
I want to draw lines between two TreeView, like the attached image
does.The lines have their own properties, so I use GEF to implement it. My
plan is to do like this:
----------------------
| | | |
| | | |
| Tree | GEF | Tree |
| | | |
| | | |
----------------------
but I don't know if we could connect two TreeItem. How could I implement
it?
And there is org.eclipse.gef.ui.parts.TreeViewer in GEF. I wonder what
that for,can I use that to build a tree?




Re: How to draw line between two TreeView in GEF [message #153602 is a reply to message #153476] Mon, 11 October 2004 15:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

I don't think you can:

1) Paint on top of an SWT tree reliably.
2) Obtain the bounding box of a TreeItem.

You may be able to calculate the Y-location of a treeitem, and paint
everything completely outside the tree. You will still have to track
expand/collapse of the treeitem, and scrolling of the tree. This may not be
possible either.

The alternative is to render your own thing which looks like a tree, using
GEF and Figures perhaps.

"lee" <lin_tower@hotmail.com> wrote in message
news:ckb9qk$dq9$1@eclipse.org...
> Hi all,
> I want to draw lines between two TreeView, like the attached image
> does.The lines have their own properties, so I use GEF to implement it. My
> plan is to do like this:
> ----------------------
> | | | |
> | | | |
> | Tree | GEF | Tree |
> | | | |
> | | | |
> ----------------------
> but I don't know if we could connect two TreeItem. How could I
implement
> it?
> And there is org.eclipse.gef.ui.parts.TreeViewer in GEF. I wonder what
> that for,can I use that to build a tree?
>
>
>
>
>
Re: How to draw line between two TreeView in GEF [message #153707 is a reply to message #153602] Tue, 12 October 2004 05:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lin_tower.hotmail.com

Thanks for advice. It seems the only way is to build the TreeView in GEF,
then how to use org.eclipse.gef.ui.parts.TreeViewer to build a TreeView?
Is there any example or code snippet shows how to that?

Thanks.

Best regards,
lee


Randy Hudson wrote:

> I don't think you can:

> 1) Paint on top of an SWT tree reliably.
> 2) Obtain the bounding box of a TreeItem.

> You may be able to calculate the Y-location of a treeitem, and paint
> everything completely outside the tree. You will still have to track
> expand/collapse of the treeitem, and scrolling of the tree. This may not be
> possible either.

> The alternative is to render your own thing which looks like a tree, using
> GEF and Figures perhaps.

> "lee" <lin_tower@hotmail.com> wrote in message
> news:ckb9qk$dq9$1@eclipse.org...
> > Hi all,
> > I want to draw lines between two TreeView, like the attached image
> > does.The lines have their own properties, so I use GEF to implement it. My
> > plan is to do like this:
> > ----------------------
> > | | | |
> > | | | |
> > | Tree | GEF | Tree |
> > | | | |
> > | | | |
> > ----------------------
> > but I don't know if we could connect two TreeItem. How could I
> implement
> > it?
> > And there is org.eclipse.gef.ui.parts.TreeViewer in GEF. I wonder what
> > that for,can I use that to build a tree?
> >
> >
> >
> >
> >
Re: How to draw line between two TreeView in GEF [message #153768 is a reply to message #153707] Tue, 12 October 2004 15:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

TreeViewer is for native SWT Tree control. That won't help you with your
problem.

"lee" <lin_tower@hotmail.com> wrote in message
news:ckfpa0$gjc$1@eclipse.org...
> Thanks for advice. It seems the only way is to build the TreeView in GEF,
> then how to use org.eclipse.gef.ui.parts.TreeViewer to build a TreeView?
> Is there any example or code snippet shows how to that?
>
> Thanks.
>
> Best regards,
> lee
>
Re: How to draw line between two TreeView in GEF [message #154261 is a reply to message #153768] Fri, 15 October 2004 11:24 Go to previous messageGo to next message
Gunay Arslan is currently offline Gunay ArslanFriend
Messages: 7
Registered: July 2009
Junior Member
In the WSDL editor from IBM wtp package (which is contributed to the web
tools project ), there is exactly what you want.




Randy Hudson wrote:

> TreeViewer is for native SWT Tree control. That won't help you with your
> problem.

> "lee" <lin_tower@hotmail.com> wrote in message
> news:ckfpa0$gjc$1@eclipse.org...
> > Thanks for advice. It seems the only way is to build the TreeView in GEF,
> > then how to use org.eclipse.gef.ui.parts.TreeViewer to build a TreeView?
> > Is there any example or code snippet shows how to that?
> >
> > Thanks.
> >
> > Best regards,
> > lee
> >
Re: How to draw line between two TreeView in GEF [message #1033838 is a reply to message #154261] Thu, 04 April 2013 17:52 Go to previous messageGo to next message
Sanjeev Verma is currently offline Sanjeev VermaFriend
Messages: 5
Registered: April 2013
Junior Member
Hey Gunay,
I am not sure if this thread is dead or not.

I am in kind of similar situation and not found any relevant link where I can render the GEF draw2d tree.
In your previous reply if you are talking about WSDL editor. http://www.eclipse.org/webtools/community/tutorials/WSDLEditor/images/wsdleditor-new-skeleton.jpg

Can you help me to point the source even I have seen the source code of all versions of WTP plugins.

Thanks and Regards,
Sanjeev

Re: How to draw line between two TreeView in GEF [message #1034217 is a reply to message #154261] Fri, 05 April 2013 06:43 Go to previous messageGo to next message
Sanjeev Verma is currently offline Sanjeev VermaFriend
Messages: 5
Registered: April 2013
Junior Member
Hi Gunay,

I am also similar kind of situation and in fact I come across the new WSDL editor screenshot. Please find the screenshot attached.

I am exactly looking the same thing.

But, I could not find the source of this editor, even I am not sure with which version of WTP it is integrated. I saw the Juno version of eclipse as well but could not find how to open this.

If any one can help me to find the source code of new WSDL editor.

Thanks and Reagrds,
Sanjeev
Re: How to draw line between two TreeView in GEF [message #1085714 is a reply to message #1034217] Tue, 13 August 2013 09:04 Go to previous message
Felix TRAORE is currently offline Felix TRAOREFriend
Messages: 1
Registered: August 2013
Junior Member
You can use the url below to access the source code repository

git://git.eclipse.org/gitroot/m2e-wtp/org.eclipse.m2e.wtp.git
Previous Topic:Marquee selection and selection of Connections
Next Topic:[Zest] Dot export compatibility
Goto Forum:
  


Current Time: Thu Apr 25 12:21:15 GMT 2024

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

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

Back to the top