Lines 133-140
public final class CompletionLayout {
Link Here
|
133 |
} |
133 |
} |
134 |
|
134 |
|
135 |
public void showCompletion(List data, String title, int anchorOffset, |
135 |
public void showCompletion(List data, String title, int anchorOffset, |
136 |
ListSelectionListener listSelectionListener, String shortcutHint, int selectedIndex) { |
136 |
ListSelectionListener listSelectionListener, String additionalItemsText, String shortcutHint, int selectedIndex) { |
137 |
completionPopup.show(data, title, anchorOffset, listSelectionListener, shortcutHint, selectedIndex); |
137 |
completionPopup.show(data, title, anchorOffset, listSelectionListener, additionalItemsText, shortcutHint, selectedIndex); |
138 |
if (!visiblePopups.contains(completionPopup)) |
138 |
if (!visiblePopups.contains(completionPopup)) |
139 |
visiblePopups.push(completionPopup); |
139 |
visiblePopups.push(completionPopup); |
140 |
} |
140 |
} |
Lines 294-300
public final class CompletionLayout {
Link Here
|
294 |
private CompletionScrollPane completionScrollPane; |
294 |
private CompletionScrollPane completionScrollPane; |
295 |
|
295 |
|
296 |
public void show(List data, String title, int anchorOffset, |
296 |
public void show(List data, String title, int anchorOffset, |
297 |
ListSelectionListener listSelectionListener, String shortcutHint, int selectedIndex) { |
297 |
ListSelectionListener listSelectionListener, String additionalItemsText, String shortcutHint, int selectedIndex) { |
298 |
|
298 |
|
299 |
JTextComponent editorComponent = getEditorComponent(); |
299 |
JTextComponent editorComponent = getEditorComponent(); |
300 |
if (editorComponent == null) { |
300 |
if (editorComponent == null) { |
Lines 345-351
public final class CompletionLayout {
Link Here
|
345 |
BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(0, 1, 1, 1, Color.gray), BorderFactory.createEmptyBorder(2, 2, 2, 2)))); |
345 |
BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(0, 1, 1, 1, Color.gray), BorderFactory.createEmptyBorder(2, 2, 2, 2)))); |
346 |
label.setFont(label.getFont().deriveFont((float)label.getFont().getSize() - 2)); |
346 |
label.setFont(label.getFont().deriveFont((float)label.getFont().getSize() - 2)); |
347 |
label.setHorizontalAlignment(SwingConstants.RIGHT); |
347 |
label.setHorizontalAlignment(SwingConstants.RIGHT); |
348 |
label.setText(NbBundle.getMessage(CompletionLayout.class, "TXT_completion_shortcut_tips", shortcutHint)); //NOI18N |
348 |
label.setText(NbBundle.getMessage(CompletionLayout.class, "TXT_completion_shortcut_tips", additionalItemsText, shortcutHint)); //NOI18N |
349 |
panel.add(label, BorderLayout.SOUTH); |
349 |
panel.add(label, BorderLayout.SOUTH); |
350 |
setContentComponent(panel); |
350 |
setContentComponent(panel); |
351 |
} else { |
351 |
} else { |