Package foundry.veil.api.client.imgui
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.
Callback for when editor is saved.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
save
(String source, BiConsumer<Integer, String> errorConsumer) Fired when the editor contents are saved.
-
Method Details
-
save
Fired when the editor contents are saved.- Parameters:
source
- The new source codeerrorConsumer
- A consumer for any errors. The first parameter is the line number and the second is the error. Multiple errors are supported
-