[oXygen-sdk] Showing errors/warnings (Oxygen XML Editor Support)

Oxygen XML Editor Support support at oxygenxml.com
Fri Mar 1 06:34:14 CST 2013


Hi Pascal,

Here are some possible solutions:

1) Create a custom errors view. The sample workspace access plugin 
implementation also comes with a custom view as an example.
When the editor is opened, you add errors to the view.
You can also force show the view using the API:

ro.sync.exml.workspace.api.standalone.StandalonePluginWorkspace.showView(String, 
boolean)

2) Add a validation problems filter to the opened editor:

ro.sync.exml.workspace.api.editor.WSEditor.addValidationProblemsFilter(ValidationProblemsFilter)

Such a filter gets called each time automatic or manual validation is 
performed. When you receive the list of problems, you can add additional 
problems to it.
You can add in the list special objects called 
AuthorDocumentPositionedInfo which are built over an AuthorNode on which 
you have identified a problem.

> http://www.oxygenxml.com/forum/post23405.html?hilit=validationproblemsfilter#p22972

The localized problems would be automatically highlighted as errors in 
the editor (just like automatic validation problems are reported).

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 3/1/2013 1:13 PM, Pascal Beutels wrote:
> Hi,
>
> They refer to the XML content.
>
> Is there a 'Console' window we can to?
>
> -Pascal
>
> ----------------------------------------------------------------------
> Date: Wed, 27 Feb 2013 11:06:53 +0200
> From: Oxygen XML Editor Support <support at oxygenxml.com>
> Subject: Re: [oXygen-sdk] Showing errors/warnings
> To: oxygen-sdk at oxygenxml.com
> Message-ID: <512DCCAD.4030501 at oxygenxml.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Pascal,
>
> We do not have additional API to show a dialog with more than one error
> message. You could probably implement a custom dialog for this.
>
> What exactly do those error messages represent? Do they refer to the XML
> content or to some problem on the CMS when opening the XML document?
>
> Regards,
> Radu
>
> Radu Coravu
> <oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
> On 2/26/2013 6:15 PM, Pascal Beutels wrote:
>> Hi,
>>
>> Is there besides just showing an error using the
>> Workspace.showErrorMessage another way available in the API for
>> showing errors (or warnings)?
>>
>> This would be useful when there are multiple errors when opening a
>> document, to provide more details on top of just an error message.
>>
>> Kind regards,
>>
>> Pascal
>>
>> *Pascal Beutels |* Developer *|*SDL Content Management Technologies
>> Division *| *+32 (0)15 400 970*|* pbeutels at sdl.com
>> image001
>>
>>
>>
>> _______________________________________________
>> oXygen-sdk mailing list
>> oXygen-sdk at oxygenxml.com
>> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>>
>
>
> ------------------------------
>
> _______________________________________________
> oXygen-sdk mailing list
> oXygen-sdk at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>
>
> End of oXygen-sdk Digest, Vol 4, Issue 17
> *****************************************
> _______________________________________________
> oXygen-sdk mailing list
> oXygen-sdk at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
>



More information about the oXygen-sdk mailing list