fixing indicator prefix
This commit is contained in:
parent
3bbab79d67
commit
9caec21e36
Binary file not shown.
|
@ -55,7 +55,7 @@ public class FragmentDialogConsumer implements ConfigurationConsumer {
|
||||||
hasIndicators = true;
|
hasIndicators = true;
|
||||||
indicatorPanel.append("indicatorPanel = " + getPanelName() + ", 2\n");
|
indicatorPanel.append("indicatorPanel = " + getPanelName() + ", 2\n");
|
||||||
}
|
}
|
||||||
indicatorPanel.append("\tindicator = {" + configField.getName() + "}, \"No\", \"Yes\"\n");
|
indicatorPanel.append("\tindicator = {" + prefix + configField.getName() + "}, \"No\", \"Yes\"\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ public class FragmentDialogConsumerTest {
|
||||||
"struct speed_density_s\n" +
|
"struct speed_density_s\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"float Tcharge_coff\n" +
|
"float Tcharge_coff\n" +
|
||||||
|
"bit bit_of_sd\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"! speed_density_s\n" +
|
"! speed_density_s\n" +
|
||||||
"end_struct\n" +
|
"end_struct\n" +
|
||||||
|
@ -40,6 +41,7 @@ public class FragmentDialogConsumerTest {
|
||||||
state.readBufferedReader(outputChannels, fragmentDialogConsumer);
|
state.readBufferedReader(outputChannels, fragmentDialogConsumer);
|
||||||
|
|
||||||
assertEquals("indicatorPanel = ac_stateIndicatorPanel, 2\n" +
|
assertEquals("indicatorPanel = ac_stateIndicatorPanel, 2\n" +
|
||||||
|
"\tindicator = {sd_bit_of_sd}, \"No\", \"Yes\"\n" +
|
||||||
"\tindicator = {sd_present}, \"No\", \"Yes\"\n" +
|
"\tindicator = {sd_present}, \"No\", \"Yes\"\n" +
|
||||||
"\tindicator = {sd_present2}, \"No\", \"Yes\"\n" +
|
"\tindicator = {sd_present2}, \"No\", \"Yes\"\n" +
|
||||||
"\tindicator = {sd_present3}, \"No\", \"Yes\"\n" +
|
"\tindicator = {sd_present3}, \"No\", \"Yes\"\n" +
|
||||||
|
|
Loading…
Reference in New Issue