mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
lookup shown assertions & advertiser addon
This commit is contained in:
@@ -159,7 +159,7 @@ public class LookupImpl extends LightweightHint implements Lookup, Disposable {
|
||||
getComponent().add(myScrollPane, BorderLayout.NORTH);
|
||||
myScrollPane.setBorder(null);
|
||||
|
||||
myAdComponent = new Advertiser(this);
|
||||
myAdComponent = new Advertiser();
|
||||
JComponent adComponent = myAdComponent.getAdComponent();
|
||||
adComponent.setBorder(new EmptyBorder(0, 1, 1, 2 + relevanceSortIcon.getIconWidth()));
|
||||
getComponent().add(adComponent, BorderLayout.SOUTH);
|
||||
@@ -706,12 +706,16 @@ public class LookupImpl extends LightweightHint implements Lookup, Disposable {
|
||||
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) return;
|
||||
|
||||
myAdComponent.showRandomText();
|
||||
|
||||
getComponent().setBorder(null);
|
||||
updateScrollbarVisibility();
|
||||
|
||||
Point p = calculatePosition(getComponent());
|
||||
HintManagerImpl.getInstanceImpl().showEditorHint(this, myEditor, p, HintManagerImpl.HIDE_BY_ESCAPE | HintManagerImpl.UPDATE_BY_SCROLLING, 0, false,
|
||||
HintManagerImpl.createHintHint(myEditor, p, this, HintManager.UNDER).setAwtTooltip(false));
|
||||
LOG.assertTrue(isVisible(), "!visible, disposed=" + myDisposed);
|
||||
LOG.assertTrue(myList.isShowing(), "!showing, disposed=" + myDisposed);
|
||||
|
||||
final JLayeredPane layeredPane = getComponent().getRootPane().getLayeredPane();
|
||||
layeredPane.add(myIconPanel, 42, 0);
|
||||
|
||||
Reference in New Issue
Block a user