[oXygen-user] Result view for a plugin
Oxygen XML Editor Support
support at oxygenxml.com
Wed Jan 30 01:24:04 CST 2013
Hi Florent,
Sorry, we do not (yet) have such an API but I added an improvement
request for it.
We added in version 13 some API called:
> ro.sync.exml.workspace.api.editor.WSEditor.addValidationProblemsFilter(ValidationProblemsFilter)
When an XML document is edited in Oxygen, once about every 2-3 seconds
automatic validation kicks in. We also have a manual "Validate" toolbar
button. If such a filter is set up, it can add to the list of automatic
and/or manual validation problems custom error messages (or remove
messages which have been reported by the validation engine).
So if you have a custom validation action you could instead piggy-back
using the API on the manual validation action from Oxygen to run your
custom code and add errors to the Oxygen Problems result list.
But I don't know if this helps in your case.
Another workaround would be to contribute your custom view from the
plugin, add errors to it and to show it using the API:
> ro.sync.exml.workspace.api.standalone.StandalonePluginWorkspace.showView(String, boolean)
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 1/29/2013 7:06 PM, Florent Georges wrote:
> Hi,
>
> I looked into the SDK documentation and the Javadoc, but I couldn't
> find how a plugin can open a new result view, to show the results/
> errors/logs of an action in a way consistent with oXygen's own result
> views.
>
> Is this possible with a workspace access plugin?
>
> Regards,
>
>
More information about the oXygen-user
mailing list