This commit is contained in:
sfop
2016-12-16 08:33:18 +01:00
parent bab567fbfd
commit 4f1850787c
7 changed files with 40 additions and 29 deletions

View File

@@ -52,7 +52,7 @@ public class GunSolenoidAlignment extends Panel {
@Override
public void onInitialize(int runCount) {
progressBar.setValue(0);
getController().addScanListener(scanListener);
getContext().addScanListener(scanListener);
centroidPlot.getAxis(Plot.AxisId.X).setLabel("Centroid Excursion");
}
@@ -100,7 +100,7 @@ public class GunSolenoidAlignment extends Panel {
//Add ELOG entry
if (checkElog.isSelected()) {
String file = Paths.get(getController().getSetup().getContextPath(), "CentroidPlot.jpg").toString();
String file = Paths.get(getContext().getSetup().getContextPath(), "CentroidPlot.jpg").toString();
try {
Thread.sleep(250); //Some time to plot update
centroidPlot.saveSnapshot(file , "jpg");