org.aspectj.ajde
Interface EditorAdapter


public interface EditorAdapter


Method Summary
 java.lang.String getCurrFile()
           
 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 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)
          Implement if inline annotations are supported by the editor.
 

Method Detail

showSourceLine

void showSourceLine(java.lang.String filePath,
                    int lineNumber,
                    boolean highlight)
Seek the editor to a source line in the file specified.


showSourceLine

void showSourceLine(ISourceLocation sourceLocation,
                    boolean highlight)
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

java.lang.String getCurrFile()
Returns:
full path to the file currently being edited.

saveContents

void saveContents()
                  throws java.io.IOException
Save the contents of the current file being edited.

Throws:
java.io.IOException

pasteToCaretPos

void pasteToCaretPos(java.lang.String text)
Paste text into the current caret position of the editor.


showSourcelineAnnotation

void showSourcelineAnnotation(java.lang.String filePath,
                              int lineNumber,
                              java.util.List items)
Implement if inline annotations are supported by the editor. Make null implementation if inline annotations are not supported.

Parameters:
filePath - path to the file that should get the annotation
lineNumber - line number for the annotation
items - list of relations to be rendered as the annotation