Page 1 of 1

Hide View by default

Posted: Mon May 18, 2015 1:05 pm
by patrick
Hi,

how to hide a view in a Workspace Access Plugin by default (after first start). I define it in the plugin.xml like this: <view id="id" initialSide="SOUTH" initialRow="0"/>.

Best regards
Patrick

Re: Hide View by default

Posted: Mon May 18, 2015 1:32 pm
by Radu
Hi Patrick,

There is no such a possibility to express this in the plugin.xml. I will add an issue because I do not see any difficulties in implementing this.
Maybe in the meantime you can call StandalonePluginWorkspace.hideView(String) when your workspace access plugin is notified that the application started. To make sure you call it only once you can save a special (key,value) pair in our persistent options storage PluginWorkspace.getOptionsStorage() so that you can remember that you have already hidden the view on the first run.

Regards,
Radu

Re: Hide View by default

Posted: Fri Dec 18, 2015 2:21 pm
by Radu
Hi,

Just to update this thread, in Oxygen 17.1 a view added via a workspace access plugin has an initial state which can be:
initialState - Specifies the initial state of the view. The allows values are: hidden, docked, autohide, and floating. By default, the view is visible and docked.
https://www.oxygenxml.com/doc/versions/ ... lugin.html

Regards,
Radu