how to add tooltip on the entries and NOT on the combo in JFace ComboViewer

前端 未结 1 1877
忘了有多久
忘了有多久 2021-01-14 03:42

I am loading my ComboViewer with over one thousand elements.

Some elements are longer than the width of underlying combo.

I want to

1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-14 04:21

    If you are using a ComboViewer and you provide your own CCombo instance, you can get children of the CCombo and one of them should be a List control that it shows as a dropdown menu. You can add your MouseTrackListener to this List control and show tooltip depending on which item the mouse is hovering.

    0 讨论(0)
提交回复
热议问题