Result view for a plugin

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, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/

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,

Oxygen XML Editor Support wrote: Hi,
Sorry, we do not (yet) have such an API but I added an improvement request for it.
Great, thanks! That will be a valuable way to report information to the user when a plugin is performing a non-trivial action.
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)
Interesting. So if I am right, I create my own view, write into it, and show it automatically when the action is fired. But I couldn't find how to create the view in the first place. Any pointer? Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/

Hi Florent, The plugin.xml from the sample plugin WorkspaceAccess has a construct like: <view id="SampleWorkspaceAccessID" initialSide="WEST" initialRow="0"/> This means that it reserves place for a view in the WEST part of the application area. Then in the CustomWorkspaceAccessPluginExtension sample Java class there is some code which adds a view component customizer:
pluginWorkspaceAccess.addViewComponentCustomizer....
and receives a callback for that ID, allowing it to contribute with a panel to it. In the future, maybe you can pose API customization questions on the Oxygen SDK list in order not to annoy our regular non-API developer users:
Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 1/30/2013 3:29 PM, Florent Georges wrote:
Oxygen XML Editor Support wrote:
Hi,
Sorry, we do not (yet) have such an API but I added an improvement request for it.
Great, thanks! That will be a valuable way to report information to the user when a plugin is performing a non-trivial action.
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)
Interesting. So if I am right, I create my own view, write into it, and show it automatically when the action is fired. But I couldn't find how to create the view in the first place. Any pointer?
Regards,

Oxygen XML Editor Support wrote:
The plugin.xml from the sample plugin WorkspaceAccess has a construct like: [...]
Good enough for now, sure, thanks!
In the future, maybe you can pose API customization questions on the Oxygen SDK list
Yes, I figured my mistake out too late... Sorry about that. Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
participants (2)
-
Florent Georges
-
Oxygen XML Editor Support