ATHENs Editor Events
This page is an overview of the events, that are currently available to all classes that extend AEditorSubordinateViewPart
Editor Lifecycle Events
Those are events that correlate with the lifecycle of a document or the editor itself
public void onEditorClosed(Event e) {
Called whenever the editor is closed
public void onEditorInputChanged(AnnotationEditorWidget widget) {
Called whenever the document changes (Note: the class AEditorSubordinateViewPart
usually has a fix implementation that contains all you will ever need, so you usually dont need to implement this
Editor Styling related
public void onEditorStyleChanged(Event arg0) {
}
This method gets called, whenever the drawingstrategy or the layer information of a type gets changed
Editor Annotation Related
public void onAnnotationAdded(Event arg0) {
public void onAnnotationRemoved(Event arg0) {
public void onAnnotationChanged(Event arg0) {
public void onAnnotationHovered(Event arg0) {
Those methods get invoked whenever an annotation is added/removed or when it was changed. The last method is invoked everytime an annotation is hovered
Editor Responsive Events
public void onEditorDoubleClicked(Event arg0) {
public void onEditorWasScrolled(Event arg0) {
public void onEditorRightClickMenuRequested(Event arg0) {
public void onEditorCaretChanged(Event arg0) {
public void onEditorMouseUp(Event arg0) {
public void onEditorMouseDown(Event arg0) {
public void onEditorTextSelectionChanged(Event arg0) {
public void onEditorMouseMoved(Event e) {
public void onEditorKeyPressed(Event arg0) {
Those methods get called, whenever the editor was scrolled (horizontally or vertically), if the right click menu of the editor is requested or if any mouse button was pressed
When to use those methods and what is stored inside
This section gives intell about when you could use those methods and what kind of objects you can expect within those events