From: Gregory.Shrago Date: Tue, 24 Feb 2015 17:55:27 +0000 (+0300) Subject: Let toolbar buttons do their work in Find popup & do not blink too much X-Git-Tag: dbe/140.2707^2~2^2~8^2 X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=f7a82077d52679fdf4758e559844dbd648228e79 Let toolbar buttons do their work in Find popup & do not blink too much --- diff --git a/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java b/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java index a2eaae64f851..342c1ea329cf 100644 --- a/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java +++ b/platform/lang-impl/src/com/intellij/find/actions/ShowUsagesAction.java @@ -1055,8 +1055,6 @@ public class ShowUsagesAction extends AnAction implements PopupAction { window.validate(); window.repaint(); - table.revalidate(); - table.repaint(); } private static Rectangle fitToScreen(@NotNull Dimension newDim, @NotNull RelativePoint popupPosition, JTable table) { diff --git a/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java b/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java index fcb584bf709f..90c4521e26c8 100644 --- a/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java +++ b/platform/platform-impl/src/com/intellij/ui/popup/AbstractPopup.java @@ -861,8 +861,8 @@ public class AbstractPopup implements JBPopup { } } }; - ListenerUtil.addMouseListener(myCaption, moveListener); - ListenerUtil.addMouseMotionListener(myCaption, moveListener); + myCaption.addMouseListener(moveListener); + myCaption.addMouseMotionListener(moveListener); final MyContentPanel saved = myContent; Disposer.register(this, new Disposable() { @Override