Unsaved edits

Post here questions and problems related to oXygen frameworks/document types.
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Unsaved edits

Post by sderrick »

We are using the Author framework, 24.0.0.2.
How do I get a list documents being edited and which documents have unsaved edits.
thanks,
Scott
sderrick
Posts: 264
Joined: Sat Jul 10, 2010 4:03 pm

Re: Unsaved edits

Post by sderrick »

I figured it out.

using Editorpage.isModified()
Scott
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Unsaved edits

Post by Radu »

Hi Scott,
Right, thanks for posting also the solution.
From a plugin you would get all editor locations "ro.sync.exml.workspace.api.PluginWorkspace.getAllEditorLocations(int)" then iterate through the URLs, obtain the editor for a particular URL "ro.sync.exml.workspace.api.PluginWorkspace.getEditorAccess(URL, int)" and then on the WSEdtorAccess call the "isModified()" method.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply