Package ro.sync.ecss.extensions.api
Interface AuthorCaretListener
-
@API(type=EXTENDABLE, src=PUBLIC) public interface AuthorCaretListener
Listener for changes in the caret position of the Author editor page. Adding a caret listener starting from anAuthorAccess
:
authorAccess.getEditorAccess().addAuthorCaretListener(caretListener);
Adding a caret listener starting from aPluginWorkspace
:
WSEditor editorAccess = pluginWorkspaceAccess.getCurrentEditorAccess(StandalonePluginWorkspace.MAIN_EDITING_AREA); if (editorAccess != null && EditorPageConstants.PAGE_AUTHOR.equals(editorAccess.getCurrentPageID())) { WSAuthorEditorPage authorPageAccess = (WSAuthorEditorPage) editorAccess.getCurrentPage(); authorPageAccess.addAuthorCaretListener(caretListener); }
- See Also:
WSAuthorEditorPageBase
,AuthorAccess
,PluginWorkspace
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
caretMoved(AuthorCaretEvent caretEvent)
Called when the caret position is updated.
-
-
-
Method Detail
-
caretMoved
void caretMoved(AuthorCaretEvent caretEvent)
Called when the caret position is updated.- Parameters:
caretEvent
- TheAuthorCaretEvent
containing information about the offset and the author node holding the offset.
-
-