| Modifier and Type | Field and Description |
|---|---|
| private Path | |
| private final Consumer | |
| private final Runnable | |
| private final Runnable | |
| private final Consumer | |
| private final Runnable | |
| private Path | |
| private final boolean | |
| private Thread | |
| private WatchService |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public static void | edit(String[]
the command to launch (with parameters) cmd, String initial text in the editor buffer initialText, Consumer<String> handler for error messages errorHandler, Consumer<String> handler sent the buffer contents on save saveHandler, Runnable a callback to suspend caller (shell) input suspendInteractiveInput, Runnable a callback to resume caller input resumeInteractiveInput, boolean true, if editor process termination cannot be used to
determine when done wait, Runnable a callback to prompt for newline if
wait==true promptForNewLineToEndWait)Launch an external editor. |
| private void | |
| private void | |
| private void | |
| private void |
| dir | back to summary |
|---|---|
| private Path dir | |
| errorHandler | back to summary |
|---|---|
| private final Consumer<String> errorHandler | |
| promptForNewLineToEndWait | back to summary |
|---|---|
| private final Runnable promptForNewLineToEndWait | |
| resumeInteractiveInput | back to summary |
|---|---|
| private final Runnable resumeInteractiveInput | |
| saveHandler | back to summary |
|---|---|
| private final Consumer<String> saveHandler | |
| suspendInteractiveInput | back to summary |
|---|---|
| private final Runnable suspendInteractiveInput | |
| tmpfile | back to summary |
|---|---|
| private Path tmpfile | |
| wait | back to summary |
|---|---|
| private final boolean wait | |
| watchedThread | back to summary |
|---|---|
| private Thread watchedThread | |
| watcher | back to summary |
|---|---|
| private WatchService watcher | |
| ExternalEditor | back to summary |
|---|---|
| pack-priv ExternalEditor(Consumer<String> errorHandler, Consumer<String> saveHandler, Runnable suspendInteractiveInput, Runnable resumeInteractiveInput, boolean wait, Runnable promptForNewLineToEndWait) | |
| deleteDirectory | back to summary |
|---|---|
| private void deleteDirectory() | |
| edit | back to summary |
|---|---|
| public static void edit(String[] cmd, String initialText, Consumer<String> errorHandler, Consumer<String> saveHandler, Runnable suspendInteractiveInput, Runnable resumeInteractiveInput, boolean wait, Runnable promptForNewLineToEndWait) Launch an external editor.
| |
| edit | back to summary |
|---|---|
| private void edit(String[] cmd, String initialText) | |
| launch | back to summary |
|---|---|
| private void launch(String[] cmd) throws IOException | |
| saveFile | back to summary |
|---|---|
| private void saveFile() | |
| setupWatch | back to summary |
|---|---|
| private void setupWatch(String initialText) throws IOException Creates a WatchService and registers the given directory | |