Hide View by default

Post here questions and problems related to oXygen frameworks/document types.
patrick
Posts: 96
Joined: Mon May 09, 2011 11:54 am

Hide View by default

Post 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
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Hide View by default

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: Hide View by default

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply