|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WSEditorBase
Provides access to methods related to the editor actions and information.
*********************************
EXPERIMENTAL - Subject to change
*********************************
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Method Summary | |
---|---|
boolean |
close(boolean askForSave)
Closes the current editor. |
Reader |
createContentReader()
Create a reader over the whole editor's content (exactly the XML content which gets saved on disk). |
URL |
getEditorLocation()
Get the URL representing the editor location. |
boolean |
isModified()
This method can be used to determine if the document from the editor contains unsaved modifications. |
boolean |
isNewDocument()
This method can be used to determine if the document from the editor was ever saved. |
void |
reloadContent(Reader reader)
Update the whole content of the editor with the one taken from the reader. |
void |
save()
Saves the editor content. |
void |
setModified(boolean modified)
Set the modified status of the editor document. |
Method Detail |
---|
URL getEditorLocation()
URL
representing the editor location.
null
.void save()
boolean close(boolean askForSave)
If the editor has unsaved content and askForSave
is
true
, the user will be given the opportunity to save it.
askForSave
- true
to save the editor contents if required,
and false
to discard any unsaved changes.
true
if the editor was successfully closed, and
false
if the editor is still openboolean isModified()
true
if the document in the current editor contains unsaved modifications.void setModified(boolean modified)
modified
- true
if the document in the current editor contains unsaved modifications.boolean isNewDocument()
true
if the document in the current editor is new.Reader createContentReader()
null
.for the processing instruction names
void reloadContent(Reader reader)
reader
- The reader provided by the extension.
|
Oxygen XML Editor 11.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |