Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » KeyBindings not shown properly in popup
KeyBindings not shown properly in popup [message #335402] Mon, 06 April 2009 10:13
Eclipse UserFriend
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
Previous Topic:Plug-in not properly uninstalled / updated
Next Topic:Showing Views Shortlist?
Goto Forum:
  


Current Time: Wed Apr 23 23:22:48 EDT 2025

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

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

Back to the top