Static Get Author Access
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 16
- Joined: Tue Aug 05, 2014 8:36 pm
Static Get Author Access
Post by ArbitraryName »
Hello,
I am pretty new to development in oxygen. Sorry if this question is shockingly naïve.
I have been working with a framework plugin and passing in the author access by implementing the 'AuthorOperation' interface and passing in the active AuthorAccess object. This is working pretty well but corrupting the meaningfulness of my interfaces.
I would prefer to know about some context engine I can tap into to get that AuthorOperation. Basically I am trying to free up my plugin interfaces from 'knowing' too much about oxygen.
Is there anything like that? Where from within a plugin I can call out to find the AuthorAccess I need?
Or does anyone else have a strategy for this they have found to be fruitful?
I am pretty new to development in oxygen. Sorry if this question is shockingly naïve.
I have been working with a framework plugin and passing in the author access by implementing the 'AuthorOperation' interface and passing in the active AuthorAccess object. This is working pretty well but corrupting the meaningfulness of my interfaces.
I would prefer to know about some context engine I can tap into to get that AuthorOperation. Basically I am trying to free up my plugin interfaces from 'knowing' too much about oxygen.
Is there anything like that? Where from within a plugin I can call out to find the AuthorAccess I need?
Or does anyone else have a strategy for this they have found to be fruitful?
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Static Get Author Access
Hi,
The AuthorAccess cannot be obtained by static means.
In an opened Oxygen application there can be multiple XML files opened. Each of them has its own separate AuthorAccess instance. So AuthorAccess is the API access you have to a particular XML document opened in the Author visual editor mode.
We have singleton access to the entire application via ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace() which can be used to obtain access to each opened editor and for each opened editor get particular access to all the editor modes (Text/Grid/Author).
I do not understand this remark:
Regards,
Radu
The AuthorAccess cannot be obtained by static means.
In an opened Oxygen application there can be multiple XML files opened. Each of them has its own separate AuthorAccess instance. So AuthorAccess is the API access you have to a particular XML document opened in the Author visual editor mode.
We have singleton access to the entire application via ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace() which can be used to obtain access to each opened editor and for each opened editor get particular access to all the editor modes (Text/Grid/Author).
I do not understand this remark:
What type of plugin are you creating? Is it a Workspace Access plugin? Of course your plugin will depend on Oxygen API.This is working pretty well but corrupting the meaningfulness of my interfaces.
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”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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