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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEditorViewForSourceLine(String filePath, int lineNumber)voidclearBreakpointRequest(String filePath, int lineNumber)getPanel()voidpasteToCaretPos(String text)Paste text into the current caret position of the editor.voidSave the contents of the current file being edited.voidsetBreakpointRequest(String filePath, int lineNumber, boolean isDeferred)voidshowSourceForFile(String filePath)voidshowSourceForLine(int lineNumber, boolean highlight)voidshowSourceForSourceLine(String filePath, int lineNumber, boolean highlight)voidshowSourceLine(int lineNumber, boolean highlight)Seek the editor to a source line in the current file.voidshowSourceLine(String filePath, int lineNumber, boolean highlight)Seek the editor to a source line in the file specified.voidshowSourceLine(ISourceLocation sourceLocation, boolean highlight)Seek the editor to a SourceLocation and highlight if specified.voidshowSourcelineAnnotation(String filePath, int lineNumber, List items)Not implemented.
-
Constructor Details
-
BasicEditor
public BasicEditor()
-
-
Method Details
-
getCurrFile
- Specified by:
getCurrFilein interfaceEditorAdapter- Returns:
- full path to the file currently being edited.
-
showSourceLine
Description copied from interface:EditorAdapterSeek the editor to a SourceLocation and highlight if specified.- Specified by:
showSourceLinein interfaceEditorAdapter
-
showSourceLine
public void showSourceLine(int lineNumber, boolean highlight)Description copied from interface:EditorAdapterSeek the editor to a source line in the current file.- Specified by:
showSourceLinein interfaceEditorAdapter
-
pasteToCaretPos
Description copied from interface:EditorAdapterPaste text into the current caret position of the editor.- Specified by:
pasteToCaretPosin interfaceEditorAdapter
-
showSourceLine
Description copied from interface:EditorAdapterSeek the editor to a source line in the file specified.- Specified by:
showSourceLinein interfaceEditorAdapter
-
showSourcelineAnnotation
Not implemented.- Specified by:
showSourcelineAnnotationin 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:EditorAdapterSave the contents of the current file being edited.- Specified by:
saveContentsin interfaceEditorAdapter- Throws:
IOException
-
getPanel
-
showSourceForFile
-
showSourceForLine
public void showSourceForLine(int lineNumber, boolean highlight) -
showSourceForSourceLine
-
getCurrSourceFilePath
-
setBreakpointRequest
-
clearBreakpointRequest
-