Page 1 of 1

ro.sync.exml.workspace.api.editor.page.WSTextBasedEditorPage.setEditable(boolean) does not work

Posted: Thu Dec 20, 2012 11:59 am
by SSC
Hello,

we are using the eclipse version of the Oxygen Author 14.1.

I just tried to disable modifying text in the text page of the XMLEditor by using :

Code: Select all


ro.sync.exml.workspace.api.editor.page.WSTextBasedEditorPage.setEditable(false);
But though the editable flag is set I am able to modify the plain xml in the text page.

Best regards,

Simon

Re: ro.sync.exml.workspace.api.editor.page.WSTextBasedEditorPage.setEditable(boolean) does not work

Posted: Fri Dec 21, 2012 4:53 pm
by sorin_ristache
Hi Simon,

If you are sure that the Eclipse editor panel is still editable in Text mode after calling WSTextBasedEditorPage.setEditable(false) on the editor Java class corresponding to that editor panel then the probable cause would be the call to WSTextBasedEditorPage.setEditable(false) was not on the SWT (event-dispatching) thread and the SWTException (with the error code ERROR_THREAD_INVALID_ACCESS) thrown by the Eclipse platform was somehow ignored.

If this is not the case please post here (or send through the online form for bug reports) some code samples that show how you register your custom handler/listener with the Oxygen Author API and how you call WSTextBasedEditorPage.setEditable(false), since we need a way of reproducing the problem.


Regards,
Sorin