KeyBindings not shown properly in popup [message #335402] |
Mon, 06 April 2009 10:13 |
Eclipse User |
|
|
|
Hello,
I made a workaround at a TreeViewer to create a selection event when a
right button mouse click is made on an already selected tree item. The
TreeViewer does not fire a selection event on default at this situation.
Therefore I have registered a mouse listener on the underlaying Tree.
This works fine for the commands, actions, etc. But the shortcuts are
not shown at the popup (on the scoped tree item). This right button
mouse click situation is the only one, where they are not shown.
But..nevertheless they work.
Do I have to initialize some revalidation on any service? Any suggestions?
This is some code from my ISelectionProvider:
public void mouseDown(MouseEvent e) {
if (e.button == 3 && e.getSource() instanceof Tree) {
Tree tree = (Tree) e.getSource();
if (viewer != null) {
setSelection(viewer.getSelection());
}
}
}
Greetings
Adam
|
|
|
Powered by
FUDForum. Page generated in 0.03783 seconds