Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tooltip for a table column
Tooltip for a table column [message #460854] Thu, 08 September 2005 22:36 Go to next message
Anima Gupta is currently offline Anima GuptaFriend
Messages: 44
Registered: July 2009
Member
Hi -

I have a TableViewer with many columns so have used abbr for the column
header. I want a tooltip to be displayed when someone hovers over a
table column (not the table item) -

any ideas?

thanks!

Anima.
Re: Tooltip for a table column [message #460914 is a reply to message #460854] Fri, 09 September 2005 15:16 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Anima,

API for doing this was added very recently, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=4572 . Its first appearance
in a milestone build will be in 3.2M2.

Grant

"Anima Gupta" <agupta@netflix.com> wrote in message
news:dfqee4$dv8$1@news.eclipse.org...
> Hi -
>
> I have a TableViewer with many columns so have used abbr for the column
> header. I want a tooltip to be displayed when someone hovers over a
> table column (not the table item) -
>
> any ideas?
>
> thanks!
>
> Anima.
>
Re: Tooltip for a table column [message #460916 is a reply to message #460914] Fri, 09 September 2005 21:41 Go to previous messageGo to next message
Anima Gupta is currently offline Anima GuptaFriend
Messages: 44
Registered: July 2009
Member
Thanks a bunch!

I was trying to do this by displaying the column name in the status line
which is controlled by adding Listener -

TableColumn column = table.getColumn(0);
column.addListener(SWT.MouseHover, new Listener(){
public void handleEvent(Event e){
getViewSite().getActionBars().getStatusLineManager().setMess age(columnToolTips[0]);
}
});


But unfortunately that does not work? Is there something wrong I am
doing? Any other ideas?

thanks!

Anima.



Grant Gayed wrote:
> Anima,
>
> API for doing this was added very recently, see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=4572 . Its first appearance
> in a milestone build will be in 3.2M2.
>
> Grant
>
> "Anima Gupta" <agupta@netflix.com> wrote in message
> news:dfqee4$dv8$1@news.eclipse.org...
>
>>Hi -
>>
>>I have a TableViewer with many columns so have used abbr for the column
>>header. I want a tooltip to be displayed when someone hovers over a
>>table column (not the table item) -
>>
>>any ideas?
>>
>>thanks!
>>
>>Anima.
>>
>
>
>
Re: Tooltip for a table column [message #460917 is a reply to message #460916] Fri, 09 September 2005 21:48 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
No, that's another request, see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=17871 .

Grant

"Anima Gupta" <agupta@netflix.com> wrote in message
news:43220188.4090600@netflix.com...
> Thanks a bunch!
>
> I was trying to do this by displaying the column name in the status line
> which is controlled by adding Listener -
>
> TableColumn column = table.getColumn(0);
> column.addListener(SWT.MouseHover, new Listener(){
> public void handleEvent(Event e){
>
getViewSite().getActionBars().getStatusLineManager().setMess age(columnToolTi
ps[0]);
> }
> });
>
>
> But unfortunately that does not work? Is there something wrong I am
> doing? Any other ideas?
>
> thanks!
>
> Anima.
>
>
>
> Grant Gayed wrote:
> > Anima,
> >
> > API for doing this was added very recently, see
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=4572 . Its first
appearance
> > in a milestone build will be in 3.2M2.
> >
> > Grant
> >
> > "Anima Gupta" <agupta@netflix.com> wrote in message
> > news:dfqee4$dv8$1@news.eclipse.org...
> >
> >>Hi -
> >>
> >>I have a TableViewer with many columns so have used abbr for the column
> >>header. I want a tooltip to be displayed when someone hovers over a
> >>table column (not the table item) -
> >>
> >>any ideas?
> >>
> >>thanks!
> >>
> >>Anima.
> >>
> >
> >
> >
>
Re: Tooltip for a table column [message #460919 is a reply to message #460917] Fri, 09 September 2005 22:05 Go to previous messageGo to next message
Anima Gupta is currently offline Anima GuptaFriend
Messages: 44
Registered: July 2009
Member
Thanks Grant once again -

So, then there is no way to display an expanded column name then, except
to use explicit mouse click ?

Anima.

Grant Gayed wrote:
> No, that's another request, see
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=17871 .
>
> Grant
>
> "Anima Gupta" <agupta@netflix.com> wrote in message
> news:43220188.4090600@netflix.com...
>
>>Thanks a bunch!
>>
>>I was trying to do this by displaying the column name in the status line
>>which is controlled by adding Listener -
>>
>>TableColumn column = table.getColumn(0);
>>column.addListener(SWT.MouseHover, new Listener(){
>> public void handleEvent(Event e){
>>
>
> getViewSite().getActionBars().getStatusLineManager().setMess age(columnToolTi
> ps[0]);
>
>> }
>>});
>>
>>
>>But unfortunately that does not work? Is there something wrong I am
>>doing? Any other ideas?
>>
>>thanks!
>>
>>Anima.
>>
>>
>>
>>Grant Gayed wrote:
>>
>>>Anima,
>>>
>>>API for doing this was added very recently, see
>>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=4572 . Its first
>
> appearance
>
>>>in a milestone build will be in 3.2M2.
>>>
>>>Grant
>>>
>>>"Anima Gupta" <agupta@netflix.com> wrote in message
>>>news:dfqee4$dv8$1@news.eclipse.org...
>>>
>>>
>>>>Hi -
>>>>
>>>>I have a TableViewer with many columns so have used abbr for the column
>>>>header. I want a tooltip to be displayed when someone hovers over a
>>>>table column (not the table item) -
>>>>
>>>>any ideas?
>>>>
>>>>thanks!
>>>>
>>>>Anima.
>>>>
>>>
>>>
>>>
>
>
Re: Tooltip for a table column [message #460940 is a reply to message #460919] Mon, 12 September 2005 14:40 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Yes, that's currently the case.

Grant

"Anima Gupta" <agupta@netflix.com> wrote in message
news:4322072C.3000008@netflix.com...
> Thanks Grant once again -
>
> So, then there is no way to display an expanded column name then, except
> to use explicit mouse click ?
>
> Anima.
>
> Grant Gayed wrote:
> > No, that's another request, see
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=17871 .
> >
> > Grant
> >
> > "Anima Gupta" <agupta@netflix.com> wrote in message
> > news:43220188.4090600@netflix.com...
> >
> >>Thanks a bunch!
> >>
> >>I was trying to do this by displaying the column name in the status line
> >>which is controlled by adding Listener -
> >>
> >>TableColumn column = table.getColumn(0);
> >>column.addListener(SWT.MouseHover, new Listener(){
> >> public void handleEvent(Event e){
> >>
> >
> >
getViewSite().getActionBars().getStatusLineManager().setMess age(columnToolTi
> > ps[0]);
> >
> >> }
> >>});
> >>
> >>
> >>But unfortunately that does not work? Is there something wrong I am
> >>doing? Any other ideas?
> >>
> >>thanks!
> >>
> >>Anima.
> >>
> >>
> >>
> >>Grant Gayed wrote:
> >>
> >>>Anima,
> >>>
> >>>API for doing this was added very recently, see
> >>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=4572 . Its first
> >
> > appearance
> >
> >>>in a milestone build will be in 3.2M2.
> >>>
> >>>Grant
> >>>
> >>>"Anima Gupta" <agupta@netflix.com> wrote in message
> >>>news:dfqee4$dv8$1@news.eclipse.org...
> >>>
> >>>
> >>>>Hi -
> >>>>
> >>>>I have a TableViewer with many columns so have used abbr for the
column
> >>>>header. I want a tooltip to be displayed when someone hovers over a
> >>>>table column (not the table item) -
> >>>>
> >>>>any ideas?
> >>>>
> >>>>thanks!
> >>>>
> >>>>Anima.
> >>>>
> >>>
> >>>
> >>>
> >
> >
>
Previous Topic:table and keyboard...
Next Topic:TreeViewer inline editing
Goto Forum:
  


Current Time: Tue Oct 24 07:47:18 GMT 2017

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

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