better parameter name

This commit is contained in:
rusefi 2019-08-31 22:30:32 -04:00
parent 7475ed222a
commit db394161cf
2 changed files with 5 additions and 4 deletions

View File

@ -38,9 +38,9 @@ public class LiveDocPanel {
private static final int LIVE_DATA_PRECISION = 2; private static final int LIVE_DATA_PRECISION = 2;
@NotNull @NotNull
static JPanel createPanel(String title, String instancePrefix, final int id, Field[] values, Request[] content) { static JPanel createPanel(String title, String settingsInstancePrefix, final int id, Field[] values, Request[] content) {
ActionPanel ap = createComponents(title, content, values, instancePrefix); ActionPanel ap = createComponents(title, content, values, settingsInstancePrefix);
JPanel panel = ap.getPanel(); JPanel panel = ap.getPanel();
LiveDocHolder holder = new LiveDocHolder(id, ap.actionsList, values) { LiveDocHolder holder = new LiveDocHolder(id, ap.actionsList, values) {
@ -60,7 +60,7 @@ public class LiveDocPanel {
return c.isVisible() && (parent == null || isRecursivelyVisible(parent)); return c.isVisible() && (parent == null || isRecursivelyVisible(parent));
} }
private static ActionPanel createComponents(String title, Request[] content, Field[] values, String instancePrefix) { private static ActionPanel createComponents(String title, Request[] content, Field[] values, String settingsInstancePrefix) {
ActionPanel result = new ActionPanel(title); ActionPanel result = new ActionPanel(title);
for (Request r : content) { for (Request r : content) {
@ -88,7 +88,7 @@ public class LiveDocPanel {
}); });
} else if (r instanceof ConfigRequest) { } else if (r instanceof ConfigRequest) {
ConfigRequest request = (ConfigRequest) r; ConfigRequest request = (ConfigRequest) r;
Field field = Field.findField(Fields.VALUES, instancePrefix, request.getField()); Field field = Field.findField(Fields.VALUES, settingsInstancePrefix, request.getField());
JLabel label = new JLabel("*"); JLabel label = new JLabel("*");
label.setIcon(UiUtils.loadIcon("livedocs/setting.png")); label.setIcon(UiUtils.loadIcon("livedocs/setting.png"));

View File

@ -11,6 +11,7 @@ import javax.swing.*;
import java.awt.*; import java.awt.*;
import static com.rusefi.config.generated.Fields.LDS_CLT_INDEX; import static com.rusefi.config.generated.Fields.LDS_CLT_INDEX;
import static com.rusefi.config.generated.Fields.LDS_IAT_INDEX;
import static com.rusefi.ui.livedocs.controls.Toolbox.setTransparentLineBorder; import static com.rusefi.ui.livedocs.controls.Toolbox.setTransparentLineBorder;
public class LiveDocsSandbox { public class LiveDocsSandbox {