Hide View by default

Post here questions and problems related to oXygen frameworks/document types.
patrick
Posts: 96

Hide View by default

Mon May 18, 2015 1:05 pm

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: 5758

Re: Hide View by default

Mon May 18, 2015 1:32 pm

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: 5758

Re: Hide View by default

Fri Dec 18, 2015 2:21 pm

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/17.1/ug-editor/#concepts/workspace-access-plugin.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests