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
Hide View by default
Re: Hide View by default
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Hide View by default
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:
https://www.oxygenxml.com/doc/versions/17.1/ug-editor/#concepts/workspace-access-plugin.html
Regards,
Radu
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
<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