Java Code Examples for com.intellij.openapi.ui.popup.Balloon#hide()

The following examples show how to use com.intellij.openapi.ui.popup.Balloon#hide() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FlutterReloadManager.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
private void removeRunNotifications(FlutterApp app) {
  final String toolWindowId = app.getMode() == RunMode.DEBUG ? ToolWindowId.DEBUG : ToolWindowId.RUN;
  final Balloon balloon = ToolWindowManager.getInstance(myProject).getToolWindowBalloon(toolWindowId);
  if (balloon != null) {
    balloon.hide();
  }
}
 
Example 2
Source File: FlutterReloadManager.java    From flutter-intellij with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
private void removeRunNotifications(FlutterApp app) {
  final String toolWindowId = app.getMode() == RunMode.DEBUG ? ToolWindowId.DEBUG : ToolWindowId.RUN;
  final Balloon balloon = ToolWindowManager.getInstance(myProject).getToolWindowBalloon(toolWindowId);
  if (balloon != null) {
    balloon.hide();
  }
}
 
Example 3
Source File: Notification.java    From consulo with Apache License 2.0 5 votes vote down vote up
public void hideBalloon() {
  if (myBalloonRef != null) {
    final Balloon balloon = myBalloonRef.get();
    if (balloon != null) {
      balloon.hide();
    }
    myBalloonRef = null;
  }
}
 
Example 4
Source File: DesktopBalloonLayoutImpl.java    From consulo with Apache License 2.0 5 votes vote down vote up
private void remove(@Nonnull Balloon balloon, boolean hide) {
  myBalloons.remove(balloon);
  BalloonLayoutData layoutData = myLayoutData.remove(balloon);
  if (layoutData != null) {
    layoutData.mergeData = null;
  }
  if (hide) {
    balloon.hide();
    fireRelayout();
  }
}
 
Example 5
Source File: MikNotification.java    From markdown-image-kit with MIT License 4 votes vote down vote up
/**
 * Hide balloon.
 *
 * @param balloon the balloon
 */
static void hideBalloon(Balloon balloon) {
    if (balloon != null) {
        balloon.hide();
    }
}
 
Example 6
Source File: ConsoleLog.java    From aem-ide-tooling-4-intellij with Apache License 2.0 4 votes vote down vote up
private static void hideBalloon(Notification notification1) {
    Balloon balloon = notification1.getBalloon();
    if(balloon != null) {
        balloon.hide(true);
    }
}
 
Example 7
Source File: DesktopBalloonLayoutImpl.java    From consulo with Apache License 2.0 4 votes vote down vote up
private void remove(@Nonnull Balloon balloon) {
  remove(balloon, false);
  balloon.hide(true);
  fireRelayout();
}
 
Example 8
Source File: EventLog.java    From consulo with Apache License 2.0 4 votes vote down vote up
private static void hideBalloon(Notification notification) {
  Balloon balloon = notification.getBalloon();
  if (balloon != null) {
    balloon.hide(true);
  }
}