How to add an action to the debugger toolbar?

I need to add an action to the debug toolwindow toolbar. I've tried
this kind of thing:

ActionGroup debugger = (ActionGroup)
ActionManager.getInstance().getAction( "DebuggerToolbar" );

In order to do something like:

if( debugger instanceof DefaultActionGroup )
{
DefaultActionGroup dag = (DefaultActionGroup) debugger;
dag.add( ... );
}

But "debugger" always comes back null. I forget where I got the
"DebuggerToolbar" string, but it's either not the right one or
impossible to use this way.

Anyone have any hints?

Thanks!
- Paul

Please sign in to leave a comment.