Class OpenConsoleLog
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
com.iizigo.handler.OpenConsoleLog
Help > IIZI > Open iiziGo Log: shows a box that names the IIZI Console's log file and warns that a log can hold values the user may not want to share, and on OK opens the file in the platform's text editor:
notepad.exe on Windows, open -t (the default text editor) on macOS, xdg-open elsewhere. When the editor cannot be started, a box names the file's path so that the user can find it (order CC-IIZIGO-CONSOLE-LOG-FILE, ruling L-4).- Author:
- Christopher Mindus
Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionstatic String[]The command that opens the file in the platform's text editor.execute(ExecutionEvent event) Shows the box and opens the log file on OK.static ProcessStarts the platform's text editor on the file.static StringThe text of the box shown before the file opens: the file's path and the warning.Methods inherited from class AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabledMethods inherited from class EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IHandler
getHandlerLabel
Field Details
TITLE
Constructor Details
OpenConsoleLog
public OpenConsoleLog()Eclipse default constructor.
Method Details
execute
Shows the box and opens the log file on OK.- Parameters:
event- The execution event.- Throws:
ExecutionException- Never.
message
command
The command that opens the file in the platform's text editor.- Parameters:
file- The file.isWindows- Windows:notepad.exe.isMac- macOS:open -t, the default text editor; neither:xdg-open.- Returns:
- The command and its arguments.
launch
Starts the platform's text editor on the file.- Parameters:
file- The file.- Returns:
- The editor process (on Windows and macOS a launcher that ends at once).
- Throws:
IOException- If the editor cannot be started.