public class BasicEditor extends java.lang.Object implements EditorAdapter
Constructor and Description |
---|
BasicEditor() |
Modifier and Type | Method and Description |
---|---|
void |
addEditorViewForSourceLine(java.lang.String filePath,
int lineNumber) |
void |
clearBreakpointRequest(java.lang.String filePath,
int lineNumber) |
java.lang.String |
getCurrFile() |
java.lang.String |
getCurrSourceFilePath() |
javax.swing.JPanel |
getPanel() |
void |
pasteToCaretPos(java.lang.String text)
Paste text into the current caret position of the editor.
|
void |
saveContents()
Save the contents of the current file being edited.
|
void |
setBreakpointRequest(java.lang.String filePath,
int lineNumber,
boolean isDeferred) |
void |
showSourceForFile(java.lang.String filePath) |
void |
showSourceForLine(int lineNumber,
boolean highlight) |
void |
showSourceForSourceLine(java.lang.String filePath,
int lineNumber,
boolean highlight) |
void |
showSourceLine(int lineNumber,
boolean highlight)
Seek the editor to a source line in the current file.
|
void |
showSourceLine(ISourceLocation sourceLocation,
boolean highlight)
Seek the editor to a SourceLocation and highlight if specified.
|
void |
showSourceLine(java.lang.String filePath,
int lineNumber,
boolean highlight)
Seek the editor to a source line in the file specified.
|
void |
showSourcelineAnnotation(java.lang.String filePath,
int lineNumber,
java.util.List items)
Not implemented.
|
public java.lang.String getCurrFile()
getCurrFile
in interface EditorAdapter
public void showSourceLine(ISourceLocation sourceLocation, boolean highlight)
EditorAdapter
showSourceLine
in interface EditorAdapter
public void showSourceLine(int lineNumber, boolean highlight)
EditorAdapter
showSourceLine
in interface EditorAdapter
public void pasteToCaretPos(java.lang.String text)
EditorAdapter
pasteToCaretPos
in interface EditorAdapter
public void showSourceLine(java.lang.String filePath, int lineNumber, boolean highlight)
EditorAdapter
showSourceLine
in interface EditorAdapter
public void showSourcelineAnnotation(java.lang.String filePath, int lineNumber, java.util.List items)
showSourcelineAnnotation
in interface EditorAdapter
filePath
- path to the file that should get the annotationlineNumber
- line number for the annotationitems
- list of relations to be rendered as the annotationpublic void addEditorViewForSourceLine(java.lang.String filePath, int lineNumber)
public void saveContents() throws java.io.IOException
EditorAdapter
saveContents
in interface EditorAdapter
java.io.IOException
public javax.swing.JPanel getPanel()
public void showSourceForFile(java.lang.String filePath)
public void showSourceForLine(int lineNumber, boolean highlight)
public void showSourceForSourceLine(java.lang.String filePath, int lineNumber, boolean highlight)
public java.lang.String getCurrSourceFilePath()
public void setBreakpointRequest(java.lang.String filePath, int lineNumber, boolean isDeferred)
public void clearBreakpointRequest(java.lang.String filePath, int lineNumber)