Closedown

This commit is contained in:
x07maop
2015-08-24 17:01:21 +02:00
parent 08cfa0298a
commit 18bc1acb2a
2 changed files with 4 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ import ch.psi.utils.swing.Editor.EditorDialog;
import ch.psi.pshell.core.Controller.ControllerStateException;
import ch.psi.pshell.data.PlotDescriptor;
import ch.psi.pshell.device.Device;
import ch.psi.pshell.device.DeviceListener;
import ch.psi.pshell.device.DeviceAdapter;
import ch.psi.pshell.epics.ChannelDoubleArray;
import ch.psi.pshell.epics.ChannelInteger;
import ch.psi.pshell.plot.LinePlot;
@@ -64,11 +64,7 @@ public class EnergyScan extends Panel {
idata = (ChannelDoubleArray) getController().getDevicePool().getByName("idata");
fdata = (ChannelDoubleArray) getController().getDevicePool().getByName("fdata");
getController().getDevicePool().getByName("count").addListener(new DeviceListener() {
@Override
public void onStateChanged(Device device, State state, State former) {
}
getController().getDevicePool().getByName("count").addListener(new DeviceAdapter() {
@Override
public void onValueChanged(Device device, Object value, Object former) {
update();
@@ -284,7 +280,7 @@ public class EnergyScan extends Panel {
prop.load(new FileInputStream(getConfigFile().toFile()));
String selection = comboSetup.getSelectedItem().toString();
String val = prop.getProperty(selection);
String[] tokens = val.split(" ");
String[] tokens = val.split(";");
if (tokens.length != 8) {
throw new Exception("Invalid file format");
}