Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » "eclipse-tooltips" for GraphicalEditParts
"eclipse-tooltips" for GraphicalEditParts [message #248882] Mon, 11 May 2009 19:47
Johannes Michler is currently offline Johannes MichlerFriend
Messages: 21
Registered: July 2009
Junior Member
Hi,

I've implemented a little GEF editor. I'd like to provide some
Tooltip-support for the graphical Editparts. I can use the
setTooltip-Function to set a IFigure as a tooltip. But I'd like to have a
tooltip-Dialog similar to the one provided by the Eclipse Java IDE for the
java-editor when hovering over a Classname (which can be focused by pressing
F2 or by moving the mouse to the tooltip-windows and hovering there).
Furthermore I'd like to put some arbitrary SWT/JFace-Control into this
tooltip-window.

I managed to implement a mouseListener on the GraphicalEditpart that creates
a new Shell with coordinates near the EditPart, but this isn't really a
solution,because it results in quite ugly code and doesn't allow me to focus
on the tooltip when moving the mouse towards the ToolTip-Windows (well this
is interpreted as leaving the GraphicalEditPart).

I couldn't find the Code for the tooltips used in Eclipse JDT, is there a
way to create such tooltips for GEF? subclassing jface.ToolTip didn't work
because it needs me to provide a "Composite" to which the tooltip
contributes which isn't available for the GEF-Part.

Any hints would be highly appreciated,


-Franz
Previous Topic:dot style grid of Graphical Viewer
Next Topic:I have a probem when I am using GEF Tutorial Chap5's example for my project to make Zoom In/Out.
Goto Forum:
  


Current Time: Sat Apr 27 03:13:58 GMT 2024

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

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

Back to the top