"eclipse-tooltips" for GraphicalEditParts [message #248882] |
Mon, 11 May 2009 15:47 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03988 seconds