@API(type=EXTENDABLE,
src=PUBLIC)
public interface AuthorCaretListener
AuthorAccess
:
authorAccess.getEditorAccess().addAuthorCaretListener(caretListener);Adding a caret listener starting from a
PluginWorkspace
:
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); }
WSAuthorEditorPageBase
,
AuthorAccess
,
PluginWorkspace
Modifier and Type | Method and Description |
---|---|
void |
caretMoved(AuthorCaretEvent caretEvent)
Called when the caret position is updated.
|
void caretMoved(AuthorCaretEvent caretEvent)
caretEvent
- The AuthorCaretEvent
containing information about the offset
and the author node holding the offset.© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.