public void handleNotification(INotification note) {
   String name = note.getName();
   if (name == SeqNotifications.TEMPO_UPDATED) {
     getView().updateTempo((Float) note.getBody());
   } else if (name == SeqNotifications.PLAYBACK_CHANGED) {
     getView().updatePlayButtonState((SequencerEnums.Playback) note.getBody());
   } else if (note.getName() == SeqNotifications.RESOLUTION_UPDATED) {
     getView().updateResolution((Integer) note.getBody());
   } else if (name == SeqNotifications.MIDI_DEVICES_UPDATED) {
     getView().updateMidiDevices((MidiDevice.Info[]) note.getBody());
   } else if (name == SeqNotifications.MIDI_OUT_DEVICE_OPENED) {
     getView().setMidiOutDevice((MidiDevice.Info) note.getBody());
   } else if (name == SeqNotifications.MIDI_OUT_DEVICE_ENABLED) {
     getView().updateMidiOutEnabled((Boolean) note.getBody());
   } else if (name == SeqNotifications.OSC_DEVICE_ENABLED) {
     getView().updateOscEnabled((Boolean) note.getBody());
   } else if (name == SeqNotifications.OSC_PORT_UPDATED) {
     getView().updateOscPort((Integer) note.getBody());
   }
 }
 @Override
 public void handleNotification(INotification notification) {
   switch (notification.getName()) {
     case ApplicationConstants.MEDIATOR_INIT:
       DataSourcesProxy proxy =
           (DataSourcesProxy) getFacade().retrieveProxy(CyclistNames.DATA_SOURCES_PROXY);
       _ds = proxy.getDefaultSimulationDataStream();
       if (_ds != null) {
         getViewComponent().setWaiting(true);
         getViewComponent().itemsProperty().bind(_ds.getFacilities());
       }
       break;
     case ApplicationConstants.DEFAULT_SIMULATION_SOURCE:
       _ds = (SimulationDataStream) notification.getBody();
       getViewComponent().setWaiting(true);
       getViewComponent().itemsProperty().bind(_ds.getFacilities());
       break;
   }
   ;
 }
 /** Save a project as an XML file. */
 @Override
 public final void execute(final INotification notification) {
   Document document = createXML();
   printXML(document);
   saveFile(document, notification.getName());
 }