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 an
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);
}
-
Method Summary
Modifier and TypeMethodDescriptionvoidcaretMoved(AuthorCaretEvent caretEvent) Called when the caret position is updated.
-
Method Details
-
caretMoved
Called when the caret position is updated.- Parameters:
caretEvent- TheAuthorCaretEventcontaining information about the offset and the author node holding the offset.
-