Added mechanism to display help of additional (undeclared) options.
This commit is contained in:
@@ -2,4 +2,4 @@ action.custom-1=rpm
|
||||
action.custom-1.args=--configure-on-demand -w -x check -x test rpm
|
||||
action.custom-2=publish
|
||||
action.custom-2.args=--configure-on-demand -w -x check -x test publish
|
||||
action.debug.args=debug --args="-b -d -l -k -g -q -statusbar -size=1000x700 -console_log=SEVERE -m ./src/main/pkg -laf=dark -pipeline_server localhost:8889 -camera_server localhost:8888 -epics_config ch.psi.jcae.ContextFactory.addressList=localhost:54321"
|
||||
action.debug.args=debug --args="-b -d -l -k -g -q -statusbar -size=1000x700 -console_log=SEVERE -m ./src/main/pkg -laf=dark -pipeline_server localhost:8889 -camera_server localhost:8888 -epics_config ch.psi.jcae.ContextFactory.addressList=localhost:54321e"
|
||||
|
||||
@@ -40,57 +40,57 @@ public class Correlation extends Panel {
|
||||
public void onInitialize(int runCount) {
|
||||
if (runCount==0){
|
||||
super.onInitialize(runCount);
|
||||
if (App.hasArgument("dx")) {
|
||||
textDevX.setText(App.getArgumentValue("dx"));
|
||||
if (App.hasAdditionalArgument("dx")) {
|
||||
textDevX.setText(App.getAdditionalArgumentValue("dx"));
|
||||
}
|
||||
if (App.hasArgument("dy")) {
|
||||
textDevY.setText(App.getArgumentValue("dy"));
|
||||
if (App.hasAdditionalArgument("dy")) {
|
||||
textDevY.setText(App.getAdditionalArgumentValue("dy"));
|
||||
}
|
||||
try{
|
||||
if (App.hasArgument("dxtype")) {
|
||||
comboTypeX.setSelectedIndex(Integer.valueOf(App.getArgumentValue("dxtype")));
|
||||
if (App.hasAdditionalArgument("dxtype")) {
|
||||
comboTypeX.setSelectedIndex(Integer.valueOf(App.getAdditionalArgumentValue("dxtype")));
|
||||
}
|
||||
} catch (Exception ex){
|
||||
System.err.println(ex.getMessage());
|
||||
}
|
||||
try{
|
||||
if (App.hasArgument("dytype")) {
|
||||
comboTypeY.setSelectedIndex(Integer.valueOf(App.getArgumentValue("dytype")));
|
||||
if (App.hasAdditionalArgument("dytype")) {
|
||||
comboTypeY.setSelectedIndex(Integer.valueOf(App.getAdditionalArgumentValue("dytype")));
|
||||
}
|
||||
} catch (Exception ex){
|
||||
System.err.println(ex.getMessage());
|
||||
}
|
||||
try{
|
||||
if (App.hasArgument("interval")) {
|
||||
spinnerInterval.setValue(Double.valueOf(App.getArgumentValue("interval")));
|
||||
if (App.hasAdditionalArgument("interval")) {
|
||||
spinnerInterval.setValue(Double.valueOf(App.getAdditionalArgumentValue("interval")));
|
||||
}
|
||||
} catch (Exception ex){
|
||||
System.err.println(ex.getMessage());
|
||||
}
|
||||
try{
|
||||
if (App.hasArgument("window")) {
|
||||
spinnerWindow.setValue(Integer.valueOf(App.getArgumentValue("window")));
|
||||
if (App.hasAdditionalArgument("window")) {
|
||||
spinnerWindow.setValue(Integer.valueOf(App.getAdditionalArgumentValue("window")));
|
||||
}
|
||||
} catch (Exception ex){
|
||||
System.err.println(ex.getMessage());
|
||||
}
|
||||
try{
|
||||
if (App.hasArgument("align")) {
|
||||
checkAlign.setSelected(App.getBoolArgumentValue("align"));
|
||||
if (App.hasAdditionalArgument("align")) {
|
||||
checkAlign.setSelected(App.getBoolAdditionalArgumentValue("align"));
|
||||
}
|
||||
} catch (Exception ex){
|
||||
System.err.println(ex.getMessage());
|
||||
}
|
||||
try{
|
||||
if (App.hasArgument("linear")) {
|
||||
checkLinear.setSelected(App.getBoolArgumentValue("linear"));
|
||||
if (App.hasAdditionalArgument("linear")) {
|
||||
checkLinear.setSelected(App.getBoolAdditionalArgumentValue("linear"));
|
||||
}
|
||||
} catch (Exception ex){
|
||||
System.err.println(ex.getMessage());
|
||||
}
|
||||
try{
|
||||
if (App.hasArgument("quadratic")) {
|
||||
checkQuadratic.setSelected(App.getBoolArgumentValue("quadratic"));
|
||||
if (App.hasAdditionalArgument("quadratic")) {
|
||||
checkQuadratic.setSelected(App.getBoolAdditionalArgumentValue("quadratic"));
|
||||
}
|
||||
} catch (Exception ex){
|
||||
System.err.println(ex.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user