mil.dod.th.ose.gui.webapp/src/mil/dod/th/ose/gui/webapp/mp/CurrentMissionMgrImpl.java
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = {RemoteConstants.TOPIC_MESSAGE_RECEIVED};
            props.put(EventConstants.EVENT_TOPIC, topics);
            final String filterString = String.format("(%s=%s)", RemoteConstants.EVENT_PROP_NAMESPACE, 
                    Namespace.MissionProgramming.toString());
            props.put(EventConstants.EVENT_FILTER, filterString);
            
            //register the event handler that listens for the mission programming namespace responses
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
/**
         * Function to register this event helper for mission programming namespace messages.
         */
Function to register this event helper for mission programming namespace messages.
Function to register this event helper for mission programming namespace messages .
public void registerForEvents()
        {
            final BundleContext context = m_BundleUtil.getBundleContext();
            final Dictionary<String, Object> props = new Hashtable<String, Object>();
            final String[] topics = {RemoteConstants.TOPIC_MESSAGE_RECEIVED};
            props.put(EventConstants.EVENT_TOPIC, topics);
            final String filterString = String.format("(%s=%s)", RemoteConstants.EVENT_PROP_NAMESPACE, 
                    Namespace.MissionProgramming.toString());
            props.put(EventConstants.EVENT_FILTER, filterString);
            m_Registration = context.registerService(EventHandler.class, this, props);
        }
public void registerForEvents ( ) { final BundleContext context = m_BundleUtil . getBundleContext ( ) ; final Dictionary < String , Object > props = new Hashtable < String , Object > ( ) ; final String [ ] topics = { RemoteConstants . TOPIC_MESSAGE_RECEIVED } ; props . put ( EventConstants . EVENT_TOPIC , topics ) ; final String filterString = String . format ( "(%s=%s)" , RemoteConstants . EVENT_PROP_NAMESPACE , Namespace . MissionProgramming . toString ( ) ) ; props . put ( EventConstants . EVENT_FILTER , filterString ) ; m_Registration = context . registerService ( EventHandler . class , this , props ) ; }
Function to register this event helper for mission programming namespace messages.
Function to register this event helper for mission programming namespace messages .
//register the event handler that listens for the mission programming namespace responses