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
请先登录再写评论。
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
At the first glance JetStylePlugin just hides its actions when some data
isn't available from context.
Regards,
Vladimir Kondratyev
_____________________
JetBrains
Mark Lussier wrote:
Vladimir Kondratyev wrote:
Ahhh the code in each actions update()... That is what I get for copy and
pase :) Thanks
M
>> 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