This commit is contained in:
Konstantin Bulenkov
2011-07-15 01:15:44 +04:00
parent addee2b48f
commit fb8ed461ad
2 changed files with 2 additions and 2 deletions
@@ -300,7 +300,7 @@ public class ClasspathPanelImpl extends JPanel implements ClasspathPanel {
return "&" + value.getIndex() + " " + value.getTitle();
}
});
final RelativePoint point = getPointUnderButton();
final RelativePoint point = getPointBelowButton();
if (point == null) {
popup.showInBestPositionFor(e.getDataContext());
} else {
@@ -83,7 +83,7 @@ public abstract class AnActionButton extends AnAction implements ShortcutProvide
|| (myContextComponent.isVisible() && UIUtil.getParentOfType(JLayeredPane.class, myContextComponent) != null);
}
public final RelativePoint getPointUnderButton() {
public final RelativePoint getPointBelowButton() {
Container c = myContextComponent;
ActionToolbar toolbar = null;
while ((c = c.getParent()) != null) {