我们可以使用ComboViewer
来监听鼠标悬停事件吗?我想基本上在工具提示中显示组合框中列表的悬停值
示例:
我有一个值为“a”,“b”和“c”的组合列表。当我将鼠标移到“b”上时,我需要在工具提示中显示“b”。
viewer.setContentProvider(ArrayContentProvider.getInstance());
viewer.setInput({"a", "b", "c"})
viewer.getCombo().addMouseMoveListener(new MouseMoveListener(){
public void mouseMove(MouseEvent event){
// here i need a logic to read identify on which value the mouse is over.
}
});