All Downloads are FREE. Search and download functionalities are using the official Maven repository.

editor.SimpleLineInfoManager Maven / Gradle / Ivy

There is a newer version: 1.18.1
Show newest version
package editor;

import editor.debugger.Breakpoint;
import java.awt.event.MouseEvent;

public class SimpleLineInfoManager extends AbstractLineInfoManager
{
  protected boolean isBreakpointAtLine( int iLine )
  {
    return getBreakpointAtLine( iLine ) != null;
  }

  protected Breakpoint getBreakpointAtLine( int iLine )
  {
    return getBreakpointManager().getBreakpointAtEditorLine( getEditor().getTypeAtLine( iLine ), iLine );
  }

  protected boolean isExecPointAtLine( int iLine )
  {
    return getExecPointAtLine( iLine ) != null;
  }

  protected Breakpoint getExecPointAtLine( int iLine )
  {
    return getBreakpointManager().getExecPointAtEditorLine( getEditor().getScriptPart().getContainingTypeName(), getEditor().getTypeAtLine( iLine ), iLine );
  }

  protected boolean isFramePointAtLine( int iLine )
  {
    return getFramePointAtLine( iLine ) != null;
  }

  protected Breakpoint getFramePointAtLine( int iLine )
  {
    return getBreakpointManager().getFramePointAtEditorLine( getEditor().getScriptPart().getContainingTypeName(), getEditor().getTypeAtLine( iLine ), iLine );
  }

  public void handleLineClick( MouseEvent e, int iLine, int iX, int iY )
  {
    if( e.isPopupTrigger() )
    {
      showContextMenu( e, iLine );
    }
    else
    {
      getBreakpointManager().toggleLineBreakpoint( getEditor(), getEditor().getScriptPart().getContainingTypeName(), getEditor().getTypeAtLine( iLine ), iLine );
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy