|
|
@ -152,7 +152,32 @@ class FormulaAutoCompletePopupWindow extends JWindow implements CaretListener, |
|
|
|
|
|
|
|
|
|
|
|
list.setCellRenderer(new DelegatingCellRenderer()); |
|
|
|
list.setCellRenderer(new DelegatingCellRenderer()); |
|
|
|
list.addListSelectionListener(this); |
|
|
|
list.addListSelectionListener(this); |
|
|
|
list.addMouseListener(this); |
|
|
|
list.addMouseListener(new MouseListener() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mouseEntered(MouseEvent e) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public void mouseExited(MouseEvent e) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
JPanel contentPane = new JPanel(new BorderLayout()); |
|
|
|
JPanel contentPane = new JPanel(new BorderLayout()); |
|
|
|
JScrollPane sp = new JScrollPane(list, |
|
|
|
JScrollPane sp = new JScrollPane(list, |
|
|
@ -373,9 +398,6 @@ class FormulaAutoCompletePopupWindow extends JWindow implements CaretListener, |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
if (e.getClickCount() == 2 && e.getButton() == 1) { |
|
|
|
if (e.getClickCount() == 2 && e.getButton() == 1) { |
|
|
|
insertSelectedCompletion(); |
|
|
|
insertSelectedCompletion(); |
|
|
|
refreshInstallComp(); |
|
|
|
|
|
|
|
} else if (e.getClickCount() == 1) { |
|
|
|
|
|
|
|
refreshInstallComp(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -389,6 +411,7 @@ class FormulaAutoCompletePopupWindow extends JWindow implements CaretListener, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
|
|
|
refreshInstallComp(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -818,6 +841,7 @@ class FormulaAutoCompletePopupWindow extends JWindow implements CaretListener, |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
if (isVisible()) { |
|
|
|
if (isVisible()) { |
|
|
|
selectNextItem(); |
|
|
|
selectNextItem(); |
|
|
|
|
|
|
|
refreshInstallComp(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -994,6 +1018,7 @@ class FormulaAutoCompletePopupWindow extends JWindow implements CaretListener, |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
if (isVisible()) { |
|
|
|
if (isVisible()) { |
|
|
|
selectPreviousItem(); |
|
|
|
selectPreviousItem(); |
|
|
|
|
|
|
|
refreshInstallComp(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|