APIdia Launch Partner
Top Description Methods
sun.jvm.hotspot.ui

public Interface Editor


High-level interface describing what the debugger requires from an editor component in order to display source code. The EditorFactory is used to instantiate Editor objects.

Method Summary

Modifier and TypeMethod and Description
public void
clearBreakpointAtLine(int lineNo)

Clear a breakpoint indicator on the current (one-based) line.

public void
clearBreakpoints()

Clear all breakpoint indicators.

public int
getCurrentLineNumber()

Get (one-based) line number on which cursor is currently placed

public String
getSourceFileName()

Get name of source file being displayed

public Object
getUserData()

Get optional object of user data

public boolean
hasBreakpointAtLine(int lineNo)

Indicates whether a breakpoint indicator is visible on the current (one-based) line.

public void
highlightLineNumber(int lineNo)

Highlight a particular line number.

public void
setUserData(Object o)

Set optional object of user data

public void
showBreakpointAtLine(int lineNo)

Show a breakpoint indicator on the current (one-based) line.

public void
showLineNumber(int lineNo)

Make a particular line number visible on the screen.

public void
toFront()

Bring the given Editor to the front of all other Editors.

Method Detail

clearBreakpointAtLineback to summary
public void clearBreakpointAtLine(int lineNo)

Clear a breakpoint indicator on the current (one-based) line.

clearBreakpointsback to summary
public void clearBreakpoints()

Clear all breakpoint indicators.

getCurrentLineNumberback to summary
public int getCurrentLineNumber()

Get (one-based) line number on which cursor is currently placed

getSourceFileNameback to summary
public String getSourceFileName()

Get name of source file being displayed

getUserDataback to summary
public Object getUserData()

Get optional object of user data

hasBreakpointAtLineback to summary
public boolean hasBreakpointAtLine(int lineNo)

Indicates whether a breakpoint indicator is visible on the current (one-based) line.

highlightLineNumberback to summary
public void highlightLineNumber(int lineNo)

Highlight a particular line number.

Note

line numbers are numbered starting from 1.

setUserDataback to summary
public void setUserData(Object o)

Set optional object of user data

showBreakpointAtLineback to summary
public void showBreakpointAtLine(int lineNo)

Show a breakpoint indicator on the current (one-based) line.

showLineNumberback to summary
public void showLineNumber(int lineNo)

Make a particular line number visible on the screen.

Note

line numbers are numbered starting from 1.

toFrontback to summary
public void toFront()

Bring the given Editor to the front of all other Editors. This must also make this Editor the return value from EditorFactory.getCurrentEditor().