[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Refresh tool tip on figure
|
Dynamically changing the tooltip of a *single* figure does not update the
displayed tooltip. But, as Pratik pointed out, changing the figure under
the mouse, and therefore the source of the tooltip, should work. Please
post test case code.
"Pratik Shah" <ppshah@xxxxxxxxxx> wrote in message
news:d1fnrc$g49$1@xxxxxxxxxxxxxxxxxx
> You must be doing something wrong. Maybe you didn't set up the listeners,
> etc. properly.
>
> "Diana" <dhmlau@xxxxxxxxxx> wrote in message
> news:d1cbak$dt7$1@xxxxxxxxxxxxxxxxxx
>> Hi,
>>
>> Is there a way to force the tool tip of the figure to refresh?
>>
>> I have a scenario that there are two figures: ChildFigure and
>> ParentFigure
>> which both extends from IFigure, and ParentFigure contains ChildFigure.
>> I
>> have a mouse motion listener, so that when the mouse is hover over
>> ChildFigure or ParentFigure, it gives the corresponding tool tip.
>>
>> But if I hover over ChildFigure, it shows the tool tip for ChildFigure,
>> then the mouse is moved to the ParentFigure (without hovering other
>> figures in between), the tool tip still shows the ChildFigure one.
>>
>> Thanks,
>> Diana
>>
>
>