Hello,

I am trying to implement a feature for the "Navigator" view where you can
toggle on and off the "show inherited members" filter using a keyboard
shortcut.

When you press ctrl+f12 Navigator window is opened and you can interact
with it.What I want to do is to make change so that when you have
"Navigator" window opened and use ctrl+f12 shortcut again it should switch
"show inherited members"filter on or off depending on previous state.

The action is implemented in
org.netbeans.modules.navigator.ShowNavigatorAction
But what I see is that in Netbeans you can't execute the same action twice.
I mean when I have the "Navigator" window opened and press ctrl+f12 again -
nothing happens. Instead I hear a beep sound. So it looks like there is
something in the framework which prevents the same action to be executed.

I am looking for advice on how to allow
org.netbeans.modules.navigator.ShowNavigatorAction to be actually invoked
multiple times in a row regardless of if "Navigator" window is currently
opened or not.

Thanks,
Sergiy

Reply via email to