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

<oXygen/> general issues.
SSC
Posts: 206
Location: Hamburg, Germany

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

Thu Dec 20, 2012 11:59 am

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
Simon Scholz
vogella GmbH
http://www.vogella.com
sorin_ristache
Posts: 4144

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

Fri Dec 21, 2012 4:53 pm

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

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests