question: void processDisplayedChainChanged ( ) { List < ExecutionUnit > processes ; OperatorChain op = model . getDisplayedChain ( ) ; if ( op == null ) { processes = Collections . < ExecutionUnit > emptyList ( ) ; } else { processes = new LinkedList < > ( op . getSubprocesses ( ) ) ; } model . setProcesses ( processes ) ; model . fireProcessesChanged ( ) ; if ( view . isShowing ( ) ) { autoFit ( ) ; } }
target:  Makes sure the current processes are up to date when the displayed chain changes. Also auto fits in case the view is actually being shown right now.