Identifying the Version Running
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 16
- Joined: Tue Aug 05, 2014 8:36 pm
Identifying the Version Running
Post by ArbitraryName »
Hello All,
I am wondering if there is some static property I can access from the plugin workspace which will tell me if the user is in oxygen Author, developer etc.
Thanks!
AN
I am wondering if there is some static property I can access from the plugin workspace which will tell me if the user is in oxygen Author, developer etc.
Thanks!
AN
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Identifying the Version Running
Post by alex_jitianu »
Hello,
You can look at a system property: System.getProperty("com.oxygenxml.app.descriptor"). Possible values are:
- ro.sync.exml.AuthorFrameDescriptor
- ro.sync.exml.DeveloperFrameDescriptor
- ro.sync.exml.EditorFrameDescriptor
Other than expecting a specific value, all these values are class names that extend ro.sync.ui.application.ApplicationMainFrameDescriptor. So you could instantiate an object using reflection and then use the ApplicationMainFrameDescriptor API to detect the distribution.
Another possible API is the ro.sync.exml.workspace.api.WorkspaceUtilities.getLicenseInformationProvider(). Use ro.sync.exml.workspace.api.license.LicenseInformationProvider.getComponents() to see which components are licensed.
Best regards,
Alex
You can look at a system property: System.getProperty("com.oxygenxml.app.descriptor"). Possible values are:
- ro.sync.exml.AuthorFrameDescriptor
- ro.sync.exml.DeveloperFrameDescriptor
- ro.sync.exml.EditorFrameDescriptor
Other than expecting a specific value, all these values are class names that extend ro.sync.ui.application.ApplicationMainFrameDescriptor. So you could instantiate an object using reflection and then use the ApplicationMainFrameDescriptor API to detect the distribution.
Another possible API is the ro.sync.exml.workspace.api.WorkspaceUtilities.getLicenseInformationProvider(). Use ro.sync.exml.workspace.api.license.LicenseInformationProvider.getComponents() to see which components are licensed.
Best regards,
Alex
-
- Posts: 16
- Joined: Tue Aug 05, 2014 8:36 pm
Re: Identifying the Version Running
Post by ArbitraryName »
Thanks that is great!
However it appears to not be set for me in developer... Although in author it has the value I expected (from your options) I am not seeing anything in Oxygen Developer.
Do you know why that would be?
However it appears to not be set for me in developer... Although in author it has the value I expected (from your options) I am not seeing anything in Oxygen Developer.
Do you know why that would be?
-
- Posts: 16
- Joined: Tue Aug 05, 2014 8:36 pm
Re: Identifying the Version Running
Post by ArbitraryName »
Correction, it is not working in oxygen editor* but is in author and descriptor.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Identifying the Version Running
Hi,
That's right. For Editor the property has not been set in some of the launchers because it is considered default.
So if you find the property set, check it against the known values for Author, Developer and Editor. If it's not set, then it's the Editor (default).
Regards,
Adrian
That's right. For Editor the property has not been set in some of the launchers because it is considered default.
So if you find the property set, check it against the known values for Author, Developer and Editor. If it's not set, then it's the Editor (default).
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
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