Package org.aspectj.tools.ajbrowser.ui
Class BasicEditor
java.lang.Object
org.aspectj.tools.ajbrowser.ui.BasicEditor
- All Implemented Interfaces:
EditorAdapter
Bare-bones editor implementation used when the framework is being used
standalone.
- Author:
- Mik Kersten
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEditorViewForSourceLine(String filePath, int lineNumber)
void
clearBreakpointRequest(String filePath, int lineNumber)
getPanel()
void
pasteToCaretPos(String text)
Paste text into the current caret position of the editor.void
Save the contents of the current file being edited.void
setBreakpointRequest(String filePath, int lineNumber, boolean isDeferred)
void
showSourceForFile(String filePath)
void
showSourceForLine(int lineNumber, boolean highlight)
void
showSourceForSourceLine(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(String filePath, int lineNumber, boolean highlight)
Seek the editor to a source line in the file specified.void
showSourceLine(ISourceLocation sourceLocation, boolean highlight)
Seek the editor to a SourceLocation and highlight if specified.void
showSourcelineAnnotation(String filePath, int lineNumber, List items)
Not implemented.
-
Constructor Details
-
BasicEditor
public BasicEditor()
-
-
Method Details
-
getCurrFile
- Specified by:
getCurrFile
in interfaceEditorAdapter
- Returns:
- full path to the file currently being edited.
-
showSourceLine
Description copied from interface:EditorAdapter
Seek the editor to a SourceLocation and highlight if specified.- Specified by:
showSourceLine
in interfaceEditorAdapter
-
showSourceLine
public void showSourceLine(int lineNumber, boolean highlight)Description copied from interface:EditorAdapter
Seek the editor to a source line in the current file.- Specified by:
showSourceLine
in interfaceEditorAdapter
-
pasteToCaretPos
Description copied from interface:EditorAdapter
Paste text into the current caret position of the editor.- Specified by:
pasteToCaretPos
in interfaceEditorAdapter
-
showSourceLine
Description copied from interface:EditorAdapter
Seek the editor to a source line in the file specified.- Specified by:
showSourceLine
in interfaceEditorAdapter
-
showSourcelineAnnotation
Not implemented.- Specified by:
showSourcelineAnnotation
in interfaceEditorAdapter
- Parameters:
filePath
- path to the file that should get the annotationlineNumber
- line number for the annotationitems
- list of relations to be rendered as the annotation
-
addEditorViewForSourceLine
-
saveContents
Description copied from interface:EditorAdapter
Save the contents of the current file being edited.- Specified by:
saveContents
in interfaceEditorAdapter
- Throws:
IOException
-
getPanel
-
showSourceForFile
-
showSourceForLine
public void showSourceForLine(int lineNumber, boolean highlight) -
showSourceForSourceLine
-
getCurrSourceFilePath
-
setBreakpointRequest
-
clearBreakpointRequest
-