Added mechanism to display help of additional (undeclared) options.
This commit is contained in:
@@ -8,7 +8,6 @@ import ch.psi.pshell.epics.ChannelDouble;
|
||||
import ch.psi.pshell.epics.Epics;
|
||||
import ch.psi.pshell.imaging.Overlay;
|
||||
import ch.psi.pshell.imaging.Overlays;
|
||||
import ch.psi.pshell.imaging.Source;
|
||||
import ch.psi.pshell.workbench.App;
|
||||
import ch.psi.pshell.framework.Context;
|
||||
import ch.psi.pshell.framework.Panel;
|
||||
@@ -115,6 +114,7 @@ public class ScreenPanelSLS extends Panel implements CamServerViewer.CamServerVi
|
||||
Logger.getLogger(ScreenPanelSLS.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}).start();
|
||||
startTimer(2000);
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(ScreenPanelSLS.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
@@ -150,6 +150,7 @@ public class ScreenPanelSLS extends Panel implements CamServerViewer.CamServerVi
|
||||
|
||||
@Override
|
||||
public void onStop() {
|
||||
stopTimer();
|
||||
super.onStop();
|
||||
}
|
||||
|
||||
@@ -199,23 +200,12 @@ public class ScreenPanelSLS extends Panel implements CamServerViewer.CamServerVi
|
||||
|
||||
@Override
|
||||
protected void onTimer() {
|
||||
//for (Device dev : new Device[]{screen, exposure}) {
|
||||
// if (dev != null) {
|
||||
// dev.request();
|
||||
// }
|
||||
//}
|
||||
|
||||
checkAppState();
|
||||
|
||||
if (App.hasArgument("s")) {
|
||||
try {
|
||||
((Source) getDevice("image")).initialize();
|
||||
} catch (IOException ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
} catch (InterruptedException ex) {
|
||||
logger.log(Level.SEVERE, null, ex);
|
||||
for (Device dev : new Device[]{screen, exposure, flStep, mirror, ledPower}) {
|
||||
if ((dev != null) && (dev.getState().isNormal())) {
|
||||
dev.request();
|
||||
}
|
||||
}
|
||||
}
|
||||
checkAppState();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user