Class BasicEditor

java.lang.Object
org.aspectj.tools.ajbrowser.ui.BasicEditor
All Implemented Interfaces:
EditorAdapter

public class BasicEditor extends Object implements EditorAdapter
Bare-bones editor implementation used when the framework is being used standalone.
Author:
Mik Kersten
  • Constructor Details

    • BasicEditor

      public BasicEditor()
  • Method Details

    • getCurrFile

      public String getCurrFile()
      Specified by:
      getCurrFile in interface EditorAdapter
      Returns:
      full path to the file currently being edited.
    • showSourceLine

      public void showSourceLine(ISourceLocation sourceLocation, boolean highlight)
      Description copied from interface: EditorAdapter
      Seek the editor to a SourceLocation and highlight if specified.
      Specified by:
      showSourceLine in interface EditorAdapter
    • 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 interface EditorAdapter
    • pasteToCaretPos

      public void pasteToCaretPos(String text)
      Description copied from interface: EditorAdapter
      Paste text into the current caret position of the editor.
      Specified by:
      pasteToCaretPos in interface EditorAdapter
    • showSourceLine

      public void showSourceLine(String filePath, int lineNumber, boolean highlight)
      Description copied from interface: EditorAdapter
      Seek the editor to a source line in the file specified.
      Specified by:
      showSourceLine in interface EditorAdapter
    • showSourcelineAnnotation

      public void showSourcelineAnnotation(String filePath, int lineNumber, List items)
      Not implemented.
      Specified by:
      showSourcelineAnnotation in interface EditorAdapter
      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
    • addEditorViewForSourceLine

      public void addEditorViewForSourceLine(String filePath, int lineNumber)
    • saveContents

      public void saveContents() throws IOException
      Description copied from interface: EditorAdapter
      Save the contents of the current file being edited.
      Specified by:
      saveContents in interface EditorAdapter
      Throws:
      IOException
    • getPanel

      public JPanel getPanel()
    • showSourceForFile

      public void showSourceForFile(String filePath)
    • showSourceForLine

      public void showSourceForLine(int lineNumber, boolean highlight)
    • showSourceForSourceLine

      public void showSourceForSourceLine(String filePath, int lineNumber, boolean highlight)
    • getCurrSourceFilePath

      public String getCurrSourceFilePath()
    • setBreakpointRequest

      public void setBreakpointRequest(String filePath, int lineNumber, boolean isDeferred)
    • clearBreakpointRequest

      public void clearBreakpointRequest(String filePath, int lineNumber)