[oXygen-sdk] Use ComponentsValidatorPluginExtension only when Oxygen Author?
Tony Graham
tony at antennahouse.com
Thu Jul 4 03:43:38 CDT 2019
On 03/07/2019 10:46, Oxygen XML Editor Support (Radu Coravu) wrote:
> The components validator plugin's "getComponentsValidator" method is
> called too early, when the
> "PluginWorkspaceProvider.getPluginWorkspace()" singleton object is
> not yet built. Maybe instead you could look at a Java system property
> called "com.oxygenxml.app.descriptor" which for Oxygen XML Editor
> should have the value "ro.sync.exml.EditorFrameDescriptor".
That worked, thank you.
// Menu items, etc., are not disabled in Oxygen XML Editor.
boolean isEditor =
System.getProperty("com.oxygenxml.app.descriptor").equals("ro.sync.exml.EditorFrameDescriptor");
Regards,
Tony Graham.
--
XML Division
Antenna House, Inc.
tony at antennahouse.com
More information about the oXygen-sdk
mailing list