... | ... | @@ -9,7 +9,58 @@ Those are events that correlate with the lifecycle of a document or the editor i |
|
|
```java
|
|
|
public void onEditorClosed(Event e) {
|
|
|
```
|
|
|
Called whenever the editor is closed
|
|
|
|
|
|
```java
|
|
|
public void onEditorInputChanged(AnnotationEditorWidget widget) {
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
```
|
|
|
|
|
|
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
|
|
|
|
|
|
## Editor Annotation Related
|
|
|
|
|
|
```java
|
|
|
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
|
|
|
|
|
|
|
|
|
```java
|
|
|
|
|
|
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) {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
|
|
|
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) {
|
|
|
```
|
|
|
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
|
|
|
|
|
|
|