Print

Print


Commit in java/trunk/monitoring-app/src/main/java/org/hps/monitoring/gui on MAIN
MonitoringApplication.java+9-8920 -> 921
model/ConfigurationModel.java+1-1920 -> 921
+10-9
2 modified files
Update some package locations from record-util.  Fix reported problem of configuration not loaded when using menu item.  Fix AidaAutoSave method name.

java/trunk/monitoring-app/src/main/java/org/hps/monitoring/gui
MonitoringApplication.java 920 -> 921
--- java/trunk/monitoring-app/src/main/java/org/hps/monitoring/gui/MonitoringApplication.java	2014-08-28 20:22:29 UTC (rev 920)
+++ java/trunk/monitoring-app/src/main/java/org/hps/monitoring/gui/MonitoringApplication.java	2014-08-28 20:26:15 UTC (rev 921)
@@ -78,9 +78,9 @@
 import org.hps.monitoring.subsys.et.EtSystemMonitor;
 import org.hps.monitoring.subsys.et.EtSystemStripCharts;
 import org.hps.record.DataSourceType;
-import org.hps.record.EventProcessingChain;
-import org.hps.record.EventProcessingConfiguration;
-import org.hps.record.EventProcessingThread;
+import org.hps.record.chain.EventProcessingChain;
+import org.hps.record.chain.EventProcessingConfiguration;
+import org.hps.record.chain.EventProcessingThread;
 import org.hps.record.etevent.EtConnection;
 import org.jlab.coda.et.EtAttachment;
 import org.jlab.coda.et.EtConstants;
@@ -121,7 +121,7 @@
 
     // ET connection parameters and state.
     private EtConnection connection;
-    private ConnectionStatus connectionStatus = ConnectionStatus.DISCONNECTED;
+    //private ConnectionStatus connectionStatus = ConnectionStatus.DISCONNECTED;
 
     // Event processing objects.
     private JobControlManager jobManager;
@@ -561,7 +561,7 @@
      * @param status The connection status.
      */
     private void setConnectionStatus(ConnectionStatus status) {
-        connectionStatus = status;
+        //connectionStatus = status;
         connectionStatusPanel.setConnectionStatus(status);
         log(Level.FINE, "Connection status changed to <" + status.name() + ">");
         logHandler.flush();
@@ -1345,7 +1345,7 @@
                 killSessionWatchdogThread();
 
                 // Request the event processing to stop.
-                eventProcessing.finish();
+                eventProcessing.stop();                
             }
 
             // Wait for the event processing thread to finish.  This should just return
@@ -1449,7 +1449,8 @@
             File f = fc.getSelectedFile();
             log(Level.CONFIG, "Loading settings from file <" + f.getPath() + ">");
             Configuration newConfig = new Configuration(f);
-            setConfiguration(newConfig);            
+            setConfiguration(newConfig);
+            loadConfiguration();
         }        
     }
     
@@ -1493,7 +1494,7 @@
         // Set the Configuration on the ConfigurationModel which will trigger all the PropertyChangelListeners.
         configurationModel.setConfiguration(configuration);
         
-        // Log that a new configuration was loaded.       
+        // Log that a new configuration was loaded.
         if (configuration.getFile() != null)
             log(Level.CONFIG, "Loaded configuration from file <" + configuration.getFile().getPath() + ">");
         else 

java/trunk/monitoring-app/src/main/java/org/hps/monitoring/gui/model
ConfigurationModel.java 920 -> 921
--- java/trunk/monitoring-app/src/main/java/org/hps/monitoring/gui/model/ConfigurationModel.java	2014-08-28 20:22:29 UTC (rev 920)
+++ java/trunk/monitoring-app/src/main/java/org/hps/monitoring/gui/model/ConfigurationModel.java	2014-08-28 20:26:15 UTC (rev 921)
@@ -186,7 +186,7 @@
         return config.equals(AIDA_AUTO_SAVE_PROPERTY);
     }
     
-    public void setAutoSaveAida(boolean aidaAutoSave) {
+    public void setAidaAutoSave(boolean aidaAutoSave) {
         boolean oldValue = getAidaAutoSave();
         config.set(AIDA_AUTO_SAVE_PROPERTY, aidaAutoSave);
         firePropertyChange(AIDA_AUTO_SAVE_PROPERTY, oldValue, aidaAutoSave);
SVNspam 0.1