Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Paint a line across Eclipse?
Paint a line across Eclipse? [message #334552] Tue, 17 February 2009 07:38 Go to next message
Eclipse UserFriend
Originally posted by: chlache.talita.org

Is it possible to paint a line from one Viewpart to another?
Thanks for any ideas.
Re: Paint a line across Eclipse? [message #334584 is a reply to message #334552] Thu, 19 February 2009 00:52 Go to previous messageGo to next message
Eclipse UserFriend
Doesn't seems to fit into Eclipse! What is the requirement?

- Prakash
--
http://blog.eclipse-tips.com

"Andreas Chlache" <chlache@talita.org> wrote in message
news:gneb3b$sar$1@build.eclipse.org...
> Is it possible to paint a line from one Viewpart to another?
> Thanks for any ideas.
Re: Paint a line across Eclipse? [message #334592 is a reply to message #334584] Thu, 19 February 2009 09:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chlache.talita.org

Prakash G.R. wrote:
> Doesn't seems to fit into Eclipse! What is the requirement?
>
> - Prakash

I want to create a dreamwaver like "point to file button".
When you click and drag on this button a line is drawn starting from the button following your custom mouse pointer.
This line is drawn across different windows. It is a visual enhancement of the drag and drop functionality.
You can see it in action using the dreamweaver properties panel.
Do you have any ideas of how to achieve that?
Re: Paint a line across Eclipse? [message #334627 is a reply to message #334592] Fri, 20 February 2009 11:08 Go to previous messageGo to next message
Eclipse UserFriend
You can create any kind of control parented off the Shell, and then do a
moveAbove(null) to move it to the top of the Z drawing order. That puts
it on top of everything. Then use setBounds(*) to place it exactly
where you want it.

Now you just have to figure out how to draw it (presumably with a
transparent background) !

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm
Re: Paint a line across Eclipse? [message #334655 is a reply to message #334627] Mon, 23 February 2009 10:23 Go to previous message
Eclipse UserFriend
Originally posted by: chlache.talita.org

Thanks for your answer. I did not think about that moveAbove call.
I hope I can combine that with the standard drag and drop behavior to get
the necessary information about the control below the mouse.
I will post the solution once I have it.

ac
Previous Topic:Text Editor: Totally hiding regions of the text
Next Topic:Parameterized View
Goto Forum:
  


Current Time: Mon Mar 17 05:31:38 EDT 2025

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

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

Back to the top