Tek*_*row 2 java ide intellij-idea
在搜索论坛和 stackoverflow 后,我无法弄清楚此检查亮点试图提醒我什么:
选择/悬停在突出显示的文本上除了标准上下文操作之外不会返回任何内容。
最初,这些变量是在构造函数之前声明和实例化的。(重现所采取的操作)当我使用上下文操作“将初始化移动到构造函数”时,构造函数中的初始化突出显示为深绿色。请参阅附图。
有人知道这是怎么回事吗?
例子:
public class HoaQueueEditorDialog extends ListDialogBase implements Mutable {
private static final String SAVE = "Save";
private static final String CANCEL = "Cancel";
private static final String CHAR_DELIMITER = ",";
private static final String[] COL_NAMES = {"Workflow Step Name"};
private static final Color NORM_BACKGROUND = TRexUIManager.getColor(TRexUIManager.CONTENT_BACKGROUND);
private static final Color NORM_FOREGROUND = Color.black;
private static final int[] COL_WIDTHS = {325};
private static final ArrayList<AppOptionsUtil.WorkflowStepInfo> SUPPORTED_STEPS_LIST = AppOptionsUtil.getDisplayHoaInfoWfStepsSupportedList();
// UI Elements
private TButton saveButton;
private TButton cancelButton;
private JPanel parentPanel;
private JPanel buttonPanelRight;
private JPanel buttonPanelLeft;
// Stores the data necessary to build a table row and it's corresponding checkbox object.
protected HashMap<AppOptionsUtil.WorkflowStepInfo, TCheckBox> checkBoxMap;
private TTable wfQueuesTable;
private DefaultTableModel tableModel;
private TChangeListener changeListener = null;
private boolean escKeyPressedInsideYesNoCancel = false;
private String originalAppOptionValues = null;
private String returnAppOptionValues = null;
public HoaQueueEditorDialog() {
try {
this.tableModel = new DefaultTableModel(new Object[][]{{}}, COL_NAMES);
this.wfQueuesTable = new TTable();
wfQueuesTable.setModel(tableModel);
wfQueuesTable.setBackground(NORM_BACKGROUND);
wfQueuesTable.setRowHeight(42);
wfQueuesTable.getSelectionModel().addListSelectionListener(new DocumentTableSelectionListener());
init();
initMVC();
this.setResizable(true);
} catch (Exception ex) {
TRexToolkit.showErrorMessage("Error initializing Document Print Screen.", "Error", ex);
}
buttonPanelLeft = new JPanel(new FlowLayout(LEFT));
buttonPanelRight = new JPanel(new FlowLayout(RIGHT));
parentPanel = new JPanel();
}
Run Code Online (Sandbox Code Playgroud)
Bas*_*ers 15
IntelliJ IDEA 正在突出显示当您调用意图时它所做的更改Move initialization to constructor
。由于更改距离光标很远,否则您可能看不到它们。按Escape将取消突出显示。
归档时间: |
|
查看次数: |
7072 次 |
最近记录: |