Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Athen
Athen
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 36
    • Issues 36
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • kallimachos
  • AthenAthen
  • Wiki
  • athen editorevents

Last edited by Markus Krug May 24, 2017
Page history

athen editorevents

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

Clone repository
  • ATHEN how to integrate your own view
  • athen editorevents
  • athen how to correctly write your own view
  • athen how to start as a developer
  • athen introduction to the texteditor
  • athen writing your own view
  • athen core concepts
  • athen how to`s
  • athen writing your own view in html
    • css
      • jscript
  • developer handbook
  • Home