<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Radu,<div><br></div><div>Thanks for the 'ro.sync.util.Resource.getBuildNumber()' method call, this does just what I want. </div><div><br></div><div>It appears that the build numbers have the form 'YYYYmmddhh', where:</div><div> 'YYYY' is a 4-digit year</div><div> 'mm' is a 2-digit month of the year (between 01-12)</div><div> 'dd' is a 2-digit day of the month (between 01-31)</div><div> 'hh' is a 2-digit hour of the day (between 00-23)</div><div><br></div><div>I have coded my OxygenVersion object with this semantics.</div><div><br></div><div>Best regards,</div><div>Anthony.</div><div><div><div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="font-size: 12px; "><b>--</b></div><div style="font-size: 13px; "><b>Michael Anthony Smith</b></div><div style="font-size: 12px; ">Senior Software Engineer</div><div style="font-size: 12px; "><br></div><div style="font-size: 14px; "><b><font>DeltaXML Ltd</font><font> </font></b><span style="font-family: Arial, sans-serif; font-size: 13px; "><i>"Experts in information change"</i></span></div><div style="font-size: 12px; "><b><br></b></div><div style="font-size: 12px; "><b>T</b>:<span class="Apple-tab-span" style="white-space: pre; "> </span>+44 1684 532 140 </div><div style="font-size: 12px; "><b>E</b>:<span class="Apple-tab-span" style="white-space: pre; "> </span><a href="mailto:anthony.smith@deltaxml.com">anthony.smith@deltaxml.com</a> </div><div style="font-size: 12px; "><b>W</b>:<span class="Apple-tab-span" style="white-space: pre; "> </span><a href="http://www.deltaxml.com/">http://www.deltaxml.com</a></div><div style="font-size: 11px; ">Malvern Hills Science Park, Malvern, Worcs, WR14 3SZ, UK</div><div style="font-size: 11px; ">Registered in England 02528681 Reg. Office: Monsell House, WR8 0QN, UK</div></div></div></div>
</div>
<br><div><div>On 7 Apr 2014, at 13:42, "Oxygen XML Editor Support (Radu Coravu) " <<a href="mailto:support@oxygenxml.com">support@oxygenxml.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Michael,<br><br>We'll consider adding this new API in the <br>ro.sync.exml.workspace.api.WorkspaceUtilities interface for a new version.<br><br>But in the meantime you can call the static method:<br><br><blockquote type="cite">ro.sync.util.Resource.getBuildNumber()<br></blockquote><br>The method is not obfuscated in our code and it should return the <br>application's build number.<br><br>Regards,<br>Radu<br><br>Radu Coravu<br><oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger<br><a href="http://www.oxygenxml.com">http://www.oxygenxml.com</a><br><br>On 4/7/2014 12:46 PM, Michael Anthony Smith wrote:<br><blockquote type="cite">A workspace plugin can obtain the version string associated with the<br>oXygen Editor/Author/Developer that it is being run in by using the<br>getVersion method of the StandalonePluginWorkspace object that is<br>provided to it. It would be useful if we could also obtain the build<br>number (and possibly the release date)* from within a plugin, so that<br>its behaviour can be adjusted depending on the build-number (or release<br>date).<br><br>*The build numbers alone are probably fine, as they are likely to be<br>monotonically increasing, so we can simply test to see if the current<br>build number is greater than a specified build number to determine if it<br>is later release.<br><br>Example: If a feature of a plugin is known to work with some, but not<br>all patch releases of a given oXygen release, then it would be possible<br>to tailor the behaviour of the plugin to:<br>(1) switch off the feature for oXygen patch releases that it is known<br>not to work in;<br>(2) let the user know why a given feature is not available; and potentially<br>(3) let the user know that in order to get access to the feature they<br>need to get the latest version of say the '15.2' version of oXygen.<br><br>Best regards,<br>Anthony.<br>*--*<br>*Michael Anthony Smith*<br>Senior Software Engineer<br><br>*DeltaXML Ltd*/"Experts in information change"/<br>*<br>*<br>*T*:+44 1684 532 140<br>*E*:anthony.smith@deltaxml.com <mailto:anthony.smith@deltaxml.com><br>*W*:http://www.deltaxml.com<br>Malvern Hills Science Park, Malvern, Worcs, WR14 3SZ, UK<br>Registered in England 02528681 Reg. Office: Monsell House, WR8 0QN, UK<br><br><br>_______________________________________________<br>oXygen-sdk mailing list<br>oXygen-sdk@oxygenxml.com<br>http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk<br><br></blockquote>_______________________________________________<br>oXygen-sdk mailing list<br>oXygen-sdk@oxygenxml.com<br>http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk<br></blockquote></div><br></div></div></body></html>