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();
  }
}

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 ( ) ; } }
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 .
