Package org.aspectj.ajde
Schnittstelle EditorAdapter
public interface EditorAdapter
- Autor:
- Mik Kersten
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidpasteToCaretPos(String text) Paste text into the current caret position of the editor.voidSave the contents of the current file being edited.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) Implement if inline annotations are supported by the editor.
-
Methodendetails
-
showSourceLine
Seek the editor to a source line in the file specified. -
showSourceLine
Seek the editor to a SourceLocation and highlight if specified. -
showSourceLine
void showSourceLine(int lineNumber, boolean highlight) Seek the editor to a source line in the current file. -
getCurrFile
String getCurrFile()- Gibt zurück:
- full path to the file currently being edited.
-
saveContents
Save the contents of the current file being edited.- Löst aus:
IOException
-
pasteToCaretPos
Paste text into the current caret position of the editor. -
showSourcelineAnnotation
Implement if inline annotations are supported by the editor. Make null implementation if inline annotations are not supported.- Parameter:
filePath- path to the file that should get the annotationlineNumber- line number for the annotationitems- list of relations to be rendered as the annotation
-