Class CodeEditorView

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ISearchable

public class CodeEditorView extends ViewBase implements ISearchable
See Also:
  • Field Details

    • sed

      public final SearchBar sed
    • rep

      public final ReplaceBar rep
    • te

      public final org.fife.ui.rsyntaxtextarea.RSyntaxTextArea te
    • fileWorkingOn

      public File fileWorkingOn
    • mouseEvent

      public MouseEvent mouseEvent
    • readOnly

      public final boolean readOnly
  • Constructor Details

    • CodeEditorView

      public CodeEditorView(MCreator fa, File fs)
    • CodeEditorView

      public CodeEditorView(MCreator fa, String code, String fileName, @Nullable File fileWorkingOn, boolean readOnly)
  • Method Details

    • hideNotice

      public void hideNotice()
    • disableJumpToMode

      public void disableJumpToMode()
    • setChangeListener

      public void setChangeListener(ChangeListener changeListener)
    • reformatTheCodeOnly

      public void reformatTheCodeOnly()
    • reformatTheCodeOrganiseAndFixImports

      public void reformatTheCodeOrganiseAndFixImports()
    • saveCode

      public void saveCode()
    • reloadCode

      public void reloadCode()
      Replaces the editor contents with the current contents of the file on disk, keeps the caret line where possible and marks the editor as unchanged. Does nothing if the file does not exist.
    • centerLineInScrollPane

      public void centerLineInScrollPane()
    • showView

      public ViewBase showView()
      Overrides:
      showView in class ViewBase
    • getCodeCleanup

      public CodeCleanup getCodeCleanup()
    • getViewName

      public String getViewName()
      Specified by:
      getViewName in class ViewBase
    • getViewIcon

      public ImageIcon getViewIcon()
      Overrides:
      getViewIcon in class ViewBase
    • isFileSupported

      public static boolean isFileSupported(String fileName)
    • wasChanged

      public boolean wasChanged()
    • jumpToLine

      public void jumpToLine(int linenum)
    • getParser

      @Nullable public org.fife.rsta.ac.java.JavaParser getParser()
    • getBreakpointHandler

      @Nullable public BreakpointHandler getBreakpointHandler()
    • search

      public void search(@Nullable String searchTerm)
      Specified by:
      search in interface ISearchable