Interface CodeEditor.SaveCallback

Enclosing class:
CodeEditor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CodeEditor.SaveCallback
Callback for when editor is saved.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    save(String source, BiConsumer<Integer,String> errorConsumer)
    Fired when the editor contents are saved.
  • Method Details

    • save

      void save(String source, BiConsumer<Integer,String> errorConsumer)
      Fired when the editor contents are saved.
      Parameters:
      source - The new source code
      errorConsumer - A consumer for any errors. The first parameter is the line number and the second is the error. Multiple errors are supported