Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » KeyBindings not shown properly in popup
KeyBindings not shown properly in popup [message #335402] Mon, 06 April 2009 14:13
Adam Lucarz is currently offline Adam LucarzFriend
Messages: 518
Registered: July 2009
Senior Member
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 Jul 17 08:47:54 GMT 2024

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

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

Back to the top