protected void updateMenu(){
  boolean present;
  boolean initializing;
  boolean running;
  boolean stopping;
  boolean active;
  if (m_MenuBar == null)   return;
  present=(m_Experiment != null);
  initializing=present && m_Experiment.isInitializing();
  running=present && m_Experiment.isRunning();
  stopping=present && m_Experiment.isStopping();
  active=initializing || running || stopping;
  m_MenuItemFileNew.setEnabled(!active);
  m_MenuItemFileOpen.setEnabled(!active);
  m_MenuItemFileSave.setEnabled(present && (getCurrentFile() != null));
  m_MenuItemFileSaveAs.setEnabled(present);
  m_MenuItemFileClose.setEnabled(!active);
  m_MenuItemExecutionStart.setEnabled(present && !active);
  m_MenuItemExecutionStop.setEnabled(present && running);
  for (  AbstractExperimenterMenuItem item : m_AdditionalMenuItems.keySet())   item.update(this,m_AdditionalMenuItems.get(item));
}

protected void updateMenu ( ) { boolean present ; boolean initializing ; boolean running ; boolean stopping ; boolean active ; if ( m_MenuBar == null ) return ; present = ( m_Experiment != null ) ; initializing = present && m_Experiment . isInitializing ( ) ; running = present && m_Experiment . isRunning ( ) ; stopping = present && m_Experiment . isStopping ( ) ; active = initializing || running || stopping ; m_MenuItemFileNew . setEnabled ( ! active ) ; m_MenuItemFileOpen . setEnabled ( ! active ) ; m_MenuItemFileSave . setEnabled ( present && ( getCurrentFile ( ) != null ) ) ; m_MenuItemFileSaveAs . setEnabled ( present ) ; m_MenuItemFileClose . setEnabled ( ! active ) ; m_MenuItemExecutionStart . setEnabled ( present && ! active ) ; m_MenuItemExecutionStop . setEnabled ( present && running ) ; for ( AbstractExperimenterMenuItem item : m_AdditionalMenuItems . keySet ( ) ) item . update ( this , m_AdditionalMenuItems . get ( item ) ) ; }
updates the enabled / disabled state of the menu items .
