IDEA-89428 Quick Documentation Info (Cmd+Mouse over): nothing happens on clicking Pin button on Mac OS

This commit is contained in:
Denis.Zhdanov
2012-08-06 10:17:20 +04:00
parent 3813cc2729
commit cf83db31b8
@@ -820,6 +820,14 @@ public class CtrlMouseHandler extends AbstractProjectComponent {
pane.mouseExited(e);
}
}
@Override
public void mouseClicked(MouseEvent e) {
QuickDocInfoPane pane = quickDocPaneRef.get();
if (pane != null) {
pane.mouseClicked(e);
}
}
};
Ref<Consumer<String>> newTextConsumerRef = new Ref<Consumer<String>>();
JComponent label = HintUtil.createInformationLabel(docInfo.text, hyperlinkListener, mouseListener, newTextConsumerRef);
@@ -1018,6 +1026,11 @@ public class CtrlMouseHandler extends AbstractProjectComponent {
processStateChangeIfNecessary(e.getLocationOnScreen(), false);
}
public void mouseClicked(@NotNull MouseEvent e) {
// TODO den check the processing.
int i = 1;
}
private void processStateChangeIfNecessary(@NotNull Point mouseScreenLocation, boolean mouseEntered) {
// Don't show 'view quick doc' buttons if docked quick doc control is already active.
if (myDocumentationManager.hasActiveDockedDocWindow()) {