NetBeans terminal provides "ideopen" command to open a local path this fails on windows by matthiasblaesing · Pull Request #8996 · apache/netbeans (original) (raw)
ideopen is provided by the NetBeans terminal.
It is a function installed into the running shell, which in turn yields an escape sequence, which is caught by the NetBeans Infrastructure. From my understanding the magic starts in org.netbeans.lib.terminalemulator.InterpProtoANSIX. The dispatch happens in org.netbeans.lib.terminalemulator.InterpProtoANSIX.InterpTypeProtoANSIX.ACT_DONE_COLLECT_BEL. From my understanding this is a statemachine, that reacts to the characters pushed from the application to the terminal and that state machine has a special case for "external commands".
Modules can register external commands and will then be called. The only implementation of this, I'm aware of is ideopen.
I learned this recently, but the idea is nice as there is no need to mess with path or JAVA_HOME and there is even a code path to support remote files, if the rfs modules from CND is present.