Disabling Outline Tab in the Author view
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 9448
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Disabling Outline Tab in the Author view
Hi,
Using our Plugins SDK:
http://www.oxygenxml.com/oxygen_sdk.htm ... er_Plugins
you can create a Workspace Access plugin (there is a sample plugin in the SDK for this).
The plugin can add a view component customizer which can replace the Outline with a custom swing component:
Do you want to disable the Outline only in the Author page (and have it working in the Text page)?
If so, on the customizer you can probably return a JPanel which has a card layout and shows either the Outline if the current selected editor is opened in the Text page or a custom label if not.
You can add a WSEditorListener to be notified when an opened editor gets selected and to each editor you can add a page changed listener.
Regards,
Radu
Using our Plugins SDK:
http://www.oxygenxml.com/oxygen_sdk.htm ... er_Plugins
you can create a Workspace Access plugin (there is a sample plugin in the SDK for this).
The plugin can add a view component customizer which can replace the Outline with a custom swing component:
Code: Select all
pluginWorkspaceAccess.addViewComponentCustomizer(new ViewComponentCustomizer() {
/**
* @see ro.sync.exml.workspace.api.standalone.ViewComponentCustomizer#customizeView(ro.sync.exml.workspace.api.standalone.ViewInfo)
*/
@Override
public void customizeView(ViewInfo viewInfo) {
if("Outline".equals(viewInfo.getViewID())) {
viewInfo.setComponent(new javax.swing.JLabel("Outline not available"));
}
}
});
If so, on the customizer you can probably return a JPanel which has a card layout and shows either the Outline if the current selected editor is opened in the Text page or a custom label if not.
You can add a WSEditorListener to be notified when an opened editor gets selected and to each editor you can add a page changed listener.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9448
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Disabling Outline Tab in the Author view
Hi,
We currently only have API to show a view using:
StandalonePluginWorkspace.showView(String, boolean)
We will consider adding API to hide a view in a future version. I will update this thread when the new API becomes available.
Regards,
Radu
We currently only have API to show a view using:
StandalonePluginWorkspace.showView(String, boolean)
We will consider adding API to hide a view in a future version. I will update this thread when the new API becomes available.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9448
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Disabling Outline Tab in the Author view
Hi,
We released Oxygen 15.0 a couple of days ago.
In Oxygen 15.0 we added this extra API:
Regards,
Radu
We released Oxygen 15.0 a couple of days ago.
In Oxygen 15.0 we added this extra API:
Code: Select all
StandalonePluginWorkspace.hideView(String)
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service