Home » Eclipse Projects » Nebula » Grid tooltips persistence
Grid tooltips persistence [message #39729] |
Tue, 11 September 2007 14:16  |
Eclipse User |
|
|
|
Hi,
I have a problem with the Grid cell tooltips: it happens, sometimes,
that the tooltip doesn't go away when the mouse is moved outside the
cell or even outside the grid control. In some unknown circumstances
there are also two tooltips displayed at the same time for two different
cells, and one of them doesn't go away, even if the grid is disposed.
Unfortunately this happens in a very complex application I'm writing and
every attempt made to build a simple test case failed. It seems that the
mouse events are lost sometimes, but I can't find a way to reproduce in
a simpler environment.
Any suggestion on how I can track this problem, or set a temporary
workaround (like force a dispose of the tooltip when another is shown) ?
Thanks.
Regards,
Marco.
|
|
|
Re: Grid tooltips persistence [message #39856 is a reply to message #39729] |
Tue, 11 September 2007 18:16   |
Eclipse User |
|
|
|
Hi Marco,
I've seen this problem too. I don't know whats causing it. I spent a
not insignificant amount of time looking at this at one point but didn't
find the cause.
I'll spend some more time looking into this.
-Chris
Marco Maccaferri wrote:
> Hi,
>
> I have a problem with the Grid cell tooltips: it happens, sometimes,
> that the tooltip doesn't go away when the mouse is moved outside the
> cell or even outside the grid control. In some unknown circumstances
> there are also two tooltips displayed at the same time for two different
> cells, and one of them doesn't go away, even if the grid is disposed.
>
> Unfortunately this happens in a very complex application I'm writing and
> every attempt made to build a simple test case failed. It seems that the
> mouse events are lost sometimes, but I can't find a way to reproduce in
> a simpler environment.
>
> Any suggestion on how I can track this problem, or set a temporary
> workaround (like force a dispose of the tooltip when another is shown) ?
>
> Thanks.
>
> Regards,
> Marco.
|
|
| | | | | | | | | | |
Re: Grid tooltips persistence [message #52948 is a reply to message #40209] |
Mon, 12 May 2008 12:10  |
Eclipse User |
|
|
|
Originally posted by: svo.ciklum.net
Hi,
We experience the same issue on Mac OS X now - tool tip doesn't
disappear as mouse leaves the grid. Also, tooltips block mouse events
from being received by grid, so I actually cannot process click on cell
when tooltip is over it. This is valid only for Mac, on Win everything
works fine. We are using rather fresh version of grid, checked out about
month or two ago.
Regards,
Stanislav
Chris Gross wrote:
> Ah ok. I see. I will ensure Grid works this way, except with Grid
> there are tooltips for each individual cell (i.e.
> setToolTipText(index,String). On those cells where a tooltip has been
> set, inplace tooltips will not be shown. And if the tooltip is "", then
> it won't get displayed either.
>
> Regards,
> -Chris
>
> Tom Schindl wrote:
>> null is for restoring the default behaviour.
>>
>> Tom
>>
>> Tom Schindl schrieb:
>>> Sorry Chris it's an empty string "".
>>>
>>> Tom
>>>
>>> Chris Gross schrieb:
>>>>> This is not correct. You can turn of displaying of ToolTips in
>>>>> SWT-Tables/Trees by setting setToolTipText(null). This is essential
>>>>> for the tooltip support provided by JFace with 3.3-API because the
>>>>> content of the ToolTip can be something completely different than
>>>>> the data displayed in the cell (e.g. Name of Person in the Cell /
>>>>> Image in the tooltip).
>>>> I don't see that behavior..? If I call Table.setToolTipText(null) I
>>>> can still see inplace tooltips for truncated cells. Were you
>>>> thinking about regular tooltips and not inplace tooltips perhaps?
>>>>
>>>> Regards,
>>>> -Chris
>>>
>>>
>>
>>
|
|
|
Re: Grid tooltips persistence [message #584646 is a reply to message #39729] |
Tue, 11 September 2007 18:16  |
Eclipse User |
|
|
|
Hi Marco,
I've seen this problem too. I don't know whats causing it. I spent a
not insignificant amount of time looking at this at one point but didn't
find the cause.
I'll spend some more time looking into this.
-Chris
Marco Maccaferri wrote:
> Hi,
>
> I have a problem with the Grid cell tooltips: it happens, sometimes,
> that the tooltip doesn't go away when the mouse is moved outside the
> cell or even outside the grid control. In some unknown circumstances
> there are also two tooltips displayed at the same time for two different
> cells, and one of them doesn't go away, even if the grid is disposed.
>
> Unfortunately this happens in a very complex application I'm writing and
> every attempt made to build a simple test case failed. It seems that the
> mouse events are lost sometimes, but I can't find a way to reproduce in
> a simpler environment.
>
> Any suggestion on how I can track this problem, or set a temporary
> workaround (like force a dispose of the tooltip when another is shown) ?
>
> Thanks.
>
> Regards,
> Marco.
|
|
|
Re: Grid tooltips persistence [message #584657 is a reply to message #39856] |
Wed, 12 September 2007 04:24  |
Eclipse User |
|
|
|
On 12/09/2007 00:16 Chris Gross ha scritto:
> I've seen this problem too. I don't know whats causing it. I spent a
> not insignificant amount of time looking at this at one point but didn't
> find the cause.
It's good that you are aware of the problem. Let me know how I can be of
help.
> I'll spend some more time looking into this.
One of my customers suggested to disable the tooltips at all, at least
until this problem is fixed. A good addition would be a method to
enable/disable the cell tooltips, this may be useful regardless of this
problem.
While debugging this issues I noticed some things:
I don't see a dispose listener added by GridTooltip to the parent
widget, maybe this is why the tooltip doesn't go away at least when the
grid is disposed. One of my customers reported this exception that seems
related:
java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:3358)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.SWT.error(SWT.java:3268)
at org.eclipse.swt.widgets.Display.error(Display.java:978)
at org.eclipse.swt.widgets.Display.map(Display.java:2390)
at org.eclipse.swt.widgets.Display.map(Display.java:2348)
at
org.eclipse.nebula.widgets.grid.internal.GridToolTip$5.handl eEvent(GridToolTip.java:110)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
Another issue that may or may not be related is that I see a repaint
every time the mouse is moved from one cell to another, even if there
isn't a tooltip displayed. If I understand it correctly, the tooltip is
a new shell that overlays the grid so I don't think that a repaint is
necessary at all.
Regards,
Marco.
|
|
|
Re: Grid tooltips persistence [message #584708 is a reply to message #39885] |
Thu, 13 September 2007 16:58  |
Eclipse User |
|
|
|
> One of my customers suggested to disable the tooltips at all, at least
> until this problem is fixed. A good addition would be a method to
> enable/disable the cell tooltips, this may be useful regardless of this
> problem.
Other than this problem, I'm not sure why you would want to disable
them. The SWT Table (windows) has no way to turn them off and it hasn't
been an issue there. Hopefully we can just nail this problem and we
won't need to add that feature.
> While debugging this issues I noticed some things:
>
> I don't see a dispose listener added by GridTooltip to the parent
> widget, maybe this is why the tooltip doesn't go away at least when the
> grid is disposed. One of my customers reported this exception that seems
> related:
>
> java.lang.IllegalArgumentException: Argument not valid
> at org.eclipse.swt.SWT.error(SWT.java:3358)
> at org.eclipse.swt.SWT.error(SWT.java:3297)
> at org.eclipse.swt.SWT.error(SWT.java:3268)
> at org.eclipse.swt.widgets.Display.error(Display.java:978)
> at org.eclipse.swt.widgets.Display.map(Display.java:2390)
> at org.eclipse.swt.widgets.Display.map(Display.java:2348)
> at
> org.eclipse.nebula.widgets.grid.internal.GridToolTip$5.handl eEvent(GridToolTip.java:110)
>
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
> at
> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
This looks like a separate problem that is probably exacerbated by the
tooltip sticking around. This is an easy fix.
> Another issue that may or may not be related is that I see a repaint
> every time the mouse is moved from one cell to another, even if there
> isn't a tooltip displayed. If I understand it correctly, the tooltip is
> a new shell that overlays the grid so I don't think that a repaint is
> necessary at all.
The table is redrawn when crossing cell lines to allow cell renderers to
have hover effects. The default renderers do not have any hover
rendering so its not obvious why the redraw is needed. It is working as
designed. This is not related to the tooltip issue.
I've added the following bug to track the work to fix this. Please CC
yourself.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=203364
Regards,
-Chris
|
|
|
Re: Grid tooltips persistence [message #584720 is a reply to message #39971] |
Thu, 13 September 2007 18:24  |
Eclipse User |
|
|
|
Fixed. Please pick up the next nightly build.
Chris Gross wrote:
>> One of my customers suggested to disable the tooltips at all, at least
>> until this problem is fixed. A good addition would be a method to
>> enable/disable the cell tooltips, this may be useful regardless of
>> this problem.
> Other than this problem, I'm not sure why you would want to disable
> them. The SWT Table (windows) has no way to turn them off and it hasn't
> been an issue there. Hopefully we can just nail this problem and we
> won't need to add that feature.
>
>> While debugging this issues I noticed some things:
>>
>> I don't see a dispose listener added by GridTooltip to the parent
>> widget, maybe this is why the tooltip doesn't go away at least when
>> the grid is disposed. One of my customers reported this exception that
>> seems related:
>>
>> java.lang.IllegalArgumentException: Argument not valid
>> at org.eclipse.swt.SWT.error(SWT.java:3358)
>> at org.eclipse.swt.SWT.error(SWT.java:3297)
>> at org.eclipse.swt.SWT.error(SWT.java:3268)
>> at org.eclipse.swt.widgets.Display.error(Display.java:978)
>> at org.eclipse.swt.widgets.Display.map(Display.java:2390)
>> at org.eclipse.swt.widgets.Display.map(Display.java:2348)
>> at
>> org.eclipse.nebula.widgets.grid.internal.GridToolTip$5.handl eEvent(GridToolTip.java:110)
>>
>> at
>> org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3348)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2968)
> This looks like a separate problem that is probably exacerbated by the
> tooltip sticking around. This is an easy fix.
>
>> Another issue that may or may not be related is that I see a repaint
>> every time the mouse is moved from one cell to another, even if there
>> isn't a tooltip displayed. If I understand it correctly, the tooltip
>> is a new shell that overlays the grid so I don't think that a repaint
>> is necessary at all.
> The table is redrawn when crossing cell lines to allow cell renderers to
> have hover effects. The default renderers do not have any hover
> rendering so its not obvious why the redraw is needed. It is working as
> designed. This is not related to the tooltip issue.
>
> I've added the following bug to track the work to fix this. Please CC
> yourself.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=203364
>
> Regards,
> -Chris
|
|
|
Re: Grid tooltips persistence [message #584732 is a reply to message #39971] |
Sun, 16 September 2007 10:04  |
Eclipse User |
|
|
|
Chris Gross schrieb:
>> One of my customers suggested to disable the tooltips at all, at least
>> until this problem is fixed. A good addition would be a method to
>> enable/disable the cell tooltips, this may be useful regardless of
>> this problem.
> Other than this problem, I'm not sure why you would want to disable
> them. The SWT Table (windows) has no way to turn them off and it hasn't
> been an issue there. Hopefully we can just nail this problem and we
> won't need to add that feature.
>
This is not correct. You can turn of displaying of ToolTips in
SWT-Tables/Trees by setting setToolTipText(null). This is essential for
the tooltip support provided by JFace with 3.3-API because the content
of the ToolTip can be something completely different than the data
displayed in the cell (e.g. Name of Person in the Cell / Image in the
tooltip).
Tom
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: Grid tooltips persistence [message #584738 is a reply to message #39971] |
Mon, 17 September 2007 05:17  |
Eclipse User |
|
|
|
On 13/09/2007 22:58 Chris Gross ha scritto:
> Other than this problem, I'm not sure why you would want to disable
> them. The SWT Table (windows) has no way to turn them off and it hasn't
> been an issue there. Hopefully we can just nail this problem and we
> won't need to add that feature.
Ah, that's interesting, I was looking at the Linux SWT Table and there
aren't cell tooltips when the content is not fully shown, so I tought
that it was an addition of the Grid widget, sorry.
> I've added the following bug to track the work to fix this. Please CC
> yourself.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=203364
Thanks for the quick fix.
Regards,
Marco.
|
|
|
Re: Grid tooltips persistence [message #584749 is a reply to message #40065] |
Mon, 17 September 2007 07:01  |
Eclipse User |
|
|
|
Marco Maccaferri schrieb:
>
> On 13/09/2007 22:58 Chris Gross ha scritto:
>
>> Other than this problem, I'm not sure why you would want to disable
>> them. The SWT Table (windows) has no way to turn them off and it
>> hasn't been an issue there. Hopefully we can just nail this problem
>> and we won't need to add that feature.
>
> Ah, that's interesting, I was looking at the Linux SWT Table and there
> aren't cell tooltips when the content is not fully shown, so I tought
> that it was an addition of the Grid widget, sorry.
>
That's platform dependend:
- Win32 => ToolTip when content not fully shown
- OS-X / Linux => ToolTip not shown
Tom
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: Grid tooltips persistence [message #584761 is a reply to message #40034] |
Mon, 17 September 2007 12:45  |
Eclipse User |
|
|
|
> This is not correct. You can turn of displaying of ToolTips in
> SWT-Tables/Trees by setting setToolTipText(null). This is essential for
> the tooltip support provided by JFace with 3.3-API because the content
> of the ToolTip can be something completely different than the data
> displayed in the cell (e.g. Name of Person in the Cell / Image in the
> tooltip).
I don't see that behavior..? If I call Table.setToolTipText(null) I can
still see inplace tooltips for truncated cells. Were you thinking about
regular tooltips and not inplace tooltips perhaps?
Regards,
-Chris
|
|
|
Re: Grid tooltips persistence [message #584772 is a reply to message #40127] |
Mon, 17 September 2007 12:50  |
Eclipse User |
|
|
|
Sorry Chris it's an empty string "".
Tom
Chris Gross schrieb:
>> This is not correct. You can turn of displaying of ToolTips in
>> SWT-Tables/Trees by setting setToolTipText(null). This is essential
>> for the tooltip support provided by JFace with 3.3-API because the
>> content of the ToolTip can be something completely different than the
>> data displayed in the cell (e.g. Name of Person in the Cell / Image in
>> the tooltip).
> I don't see that behavior..? If I call Table.setToolTipText(null) I can
> still see inplace tooltips for truncated cells. Were you thinking about
> regular tooltips and not inplace tooltips perhaps?
>
> Regards,
> -Chris
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: Grid tooltips persistence [message #584792 is a reply to message #40156] |
Mon, 17 September 2007 12:51  |
Eclipse User |
|
|
|
null is for restoring the default behaviour.
Tom
Tom Schindl schrieb:
> Sorry Chris it's an empty string "".
>
> Tom
>
> Chris Gross schrieb:
>>> This is not correct. You can turn of displaying of ToolTips in
>>> SWT-Tables/Trees by setting setToolTipText(null). This is essential
>>> for the tooltip support provided by JFace with 3.3-API because the
>>> content of the ToolTip can be something completely different than the
>>> data displayed in the cell (e.g. Name of Person in the Cell / Image
>>> in the tooltip).
>> I don't see that behavior..? If I call Table.setToolTipText(null) I
>> can still see inplace tooltips for truncated cells. Were you thinking
>> about regular tooltips and not inplace tooltips perhaps?
>>
>> Regards,
>> -Chris
>
>
--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
|
|
|
Re: Grid tooltips persistence [message #584804 is a reply to message #40186] |
Mon, 17 September 2007 13:16  |
Eclipse User |
|
|
|
Ah ok. I see. I will ensure Grid works this way, except with Grid
there are tooltips for each individual cell (i.e.
setToolTipText(index,String). On those cells where a tooltip has been
set, inplace tooltips will not be shown. And if the tooltip is "", then
it won't get displayed either.
Regards,
-Chris
Tom Schindl wrote:
> null is for restoring the default behaviour.
>
> Tom
>
> Tom Schindl schrieb:
>> Sorry Chris it's an empty string "".
>>
>> Tom
>>
>> Chris Gross schrieb:
>>>> This is not correct. You can turn of displaying of ToolTips in
>>>> SWT-Tables/Trees by setting setToolTipText(null). This is essential
>>>> for the tooltip support provided by JFace with 3.3-API because the
>>>> content of the ToolTip can be something completely different than
>>>> the data displayed in the cell (e.g. Name of Person in the Cell /
>>>> Image in the tooltip).
>>> I don't see that behavior..? If I call Table.setToolTipText(null) I
>>> can still see inplace tooltips for truncated cells. Were you
>>> thinking about regular tooltips and not inplace tooltips perhaps?
>>>
>>> Regards,
>>> -Chris
>>
>>
>
>
|
|
|
Re: Grid tooltips persistence [message #589825 is a reply to message #40209] |
Mon, 12 May 2008 12:10  |
Eclipse User |
|
|
|
Hi,
We experience the same issue on Mac OS X now - tool tip doesn't
disappear as mouse leaves the grid. Also, tooltips block mouse events
from being received by grid, so I actually cannot process click on cell
when tooltip is over it. This is valid only for Mac, on Win everything
works fine. We are using rather fresh version of grid, checked out about
month or two ago.
Regards,
Stanislav
Chris Gross wrote:
> Ah ok. I see. I will ensure Grid works this way, except with Grid
> there are tooltips for each individual cell (i.e.
> setToolTipText(index,String). On those cells where a tooltip has been
> set, inplace tooltips will not be shown. And if the tooltip is "", then
> it won't get displayed either.
>
> Regards,
> -Chris
>
> Tom Schindl wrote:
>> null is for restoring the default behaviour.
>>
>> Tom
>>
>> Tom Schindl schrieb:
>>> Sorry Chris it's an empty string "".
>>>
>>> Tom
>>>
>>> Chris Gross schrieb:
>>>>> This is not correct. You can turn of displaying of ToolTips in
>>>>> SWT-Tables/Trees by setting setToolTipText(null). This is essential
>>>>> for the tooltip support provided by JFace with 3.3-API because the
>>>>> content of the ToolTip can be something completely different than
>>>>> the data displayed in the cell (e.g. Name of Person in the Cell /
>>>>> Image in the tooltip).
>>>> I don't see that behavior..? If I call Table.setToolTipText(null) I
>>>> can still see inplace tooltips for truncated cells. Were you
>>>> thinking about regular tooltips and not inplace tooltips perhaps?
>>>>
>>>> Regards,
>>>> -Chris
>>>
>>>
>>
>>
|
|
|
Goto Forum:
Current Time: Mon May 12 10:42:51 EDT 2025
Powered by FUDForum. Page generated in 0.12782 seconds
|