mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/controller/ControllerMgrImpl.java
private void flushControllerList()
    {
        final Map<Integer, Set<RemoteChannel>> channels = m_RemoteChannelLookup.getAllChannels();
                
        for (ControllerModel model : new ArrayList<ControllerModel>(m_Controllers))
        {
            if (!channels.containsKey(model.getId()) || channels.get(model.getId()).isEmpty())
            {
                // controller has no channels, so remove controller from list
                removeControllerAndPostEvent(model);
            }
        }
    }
/**
     * Remove any controller models from the list that do not exist in the channel lookup anymore.
     */
Remove any controller models from the list that do not exist in the channel lookup anymore.
Remove any controller models from the list that do not exist in the channel lookup anymore .
private void flushControllerList()
    {
        final Map<Integer, Set<RemoteChannel>> channels = m_RemoteChannelLookup.getAllChannels();
        for (ControllerModel model : new ArrayList<ControllerModel>(m_Controllers))
        {
            if (!channels.containsKey(model.getId()) || channels.get(model.getId()).isEmpty())
            {
                removeControllerAndPostEvent(model);
            }
        }
    }
private void flushControllerList ( ) { final Map < Integer , Set < RemoteChannel > > channels = m_RemoteChannelLookup . getAllChannels ( ) ; for ( ControllerModel model : new ArrayList < ControllerModel > ( m_Controllers ) ) { if ( ! channels . containsKey ( model . getId ( ) ) || channels . get ( model . getId ( ) ) . isEmpty ( ) ) { removeControllerAndPostEvent ( model ) ; } } }
Remove any controller models from the list that do not exist in the channel lookup anymore.
Remove any controller models from the list that do not exist in the channel lookup anymore .
// controller has no channels, so remove controller from list