Toolbars from Actions

Yet another question

So I have a toolwindow with a JTree and BorderLayout.CENTER and an
ActionToolbar at BoderLayout.WEST.

The actiontoolbar was created via (excuse KNode's wrapping)

ActionGroup actionGroup =
(ActionGroup)ActionManager.getInstance().getAction("JetStylePlugin");
_toolbar =
ActionManager.getInstance().createActionToolbar("JetStyleToolbar",
actionGroup, false);


I am experiencing the ActionToolbar hidding and showing itself. If I click
on the JTree, the actiontoolbar will hide... if I click on say the active
editor, it reappears.

Is this expected, and how the %#$* can I stop it from happening :)

M

3 comments
Comment actions Permalink

One other thing, I am doing a

_toolwindow.setType(ToolWindowType.DOCKED, null);

right after I register it, to ensure that the window opens pinned.. could
this be the issue?

M


0
Comment actions Permalink

At the first glance JetStylePlugin just hides its actions when some data
isn't available from context.

Regards,
Vladimir Kondratyev
_____________________
JetBrains

Mark Lussier wrote:

Yet another question

So I have a toolwindow with a JTree and BorderLayout.CENTER and an
ActionToolbar at BoderLayout.WEST.

The actiontoolbar was created via (excuse KNode's wrapping)

ActionGroup actionGroup =
(ActionGroup)ActionManager.getInstance().getAction("JetStylePlugin");
_toolbar =
ActionManager.getInstance().createActionToolbar("JetStyleToolbar",
actionGroup, false);


I am experiencing the ActionToolbar hidding and showing itself. If I click
on the JTree, the actiontoolbar will hide... if I click on say the active
editor, it reappears.

Is this expected, and how the %#$* can I stop it from happening :)

M


0
Comment actions Permalink

Vladimir Kondratyev wrote:

At the first glance JetStylePlugin just hides its actions when some data
isn't available from context.


Ahhh the code in each actions update()... That is what I get for copy and
pase :) Thanks

M


Regards,
Vladimir Kondratyev
_____________________
JetBrains

Mark Lussier wrote:

>> Yet another question
>>
>> So I have a toolwindow with a JTree and BorderLayout.CENTER and an
>> ActionToolbar at BoderLayout.WEST.
>>
>> The actiontoolbar was created via (excuse KNode's wrapping)
>>
>> ActionGroup actionGroup =
>> (ActionGroup)ActionManager.getInstance().getAction("JetStylePlugin");
>> _toolbar =
>> ActionManager.getInstance().createActionToolbar("JetStyleToolbar",
>> actionGroup, false);
>>
>>
>> I am experiencing the ActionToolbar hidding and showing itself. If I
>> click on the JTree, the actiontoolbar will hide... if I click on say the
>> active editor, it reappears.
>>
>> Is this expected, and how the %#$* can I stop it from happening :)
>>
>> M

0

Please sign in to leave a comment.