Package jetbrains.communicator.idea

Examples of jetbrains.communicator.idea.IdeaLocalMessage


          result.append(StringUtil.getMsg("user.tooltip", user.getName())).append("\n");
        }

        Message[] pendingMessages = myLocalMessageDispatcher.getPendingMessages(user);
        if (pendingMessages.length > 0) {
          IdeaLocalMessage ideaLocalMessage = (IdeaLocalMessage) pendingMessages[0];
          result.append(ideaLocalMessage.getTitle());
          if (result.length() > 0 && ideaLocalMessage.getComment().length() > 0) {
            result.append(": ");
          }
          result.append(ideaLocalMessage.getComment());
        }
        return result.length() == 0 ? super.getToolTipText(e) : result.toString() ;
      }
    }
View Full Code Here


  }

  private void deliverLocalMessage(User user, TreePath path, MouseEvent e) {
    Message[] pendingMessages = myLocalMessageDispatcher.getPendingMessages(user);
    if (pendingMessages.length > 0) {
      IdeaLocalMessage message = (IdeaLocalMessage) pendingMessages[0];
      if (myLocalMessageDispatcher.sendNow(user, message)) {
        myDelivered = true;
        e.consume();
        ((MyTreeUI) getUI()).invalidatePath(path);
        treeDidChange();
View Full Code Here

  private void showPopupNotification(final User from, TransportEvent event) {
    if (myMessageDispatcher.countPendingMessages() > 5) return;

    IDEFacade ideFacade = ((IDEFacade)Pico.getInstance().getComponentInstanceOfType(IDEFacade.class));
    final IdeaLocalMessage localMessage = (IdeaLocalMessage)ideFacade.createLocalMessageForIncomingEvent(event);
    if (localMessage == null) return;

    UIUtil.invokeLater(new Runnable() {
      public void run() {
        JComponent content = localMessage.getPopupComponent(from, myProject);
        Color backgroundColor = new Color(255, 255, 217);
        content.setOpaque(true);
        content.setBackground(backgroundColor);
        WindowManager.getInstance().getStatusBar(myProject).fireNotificationPopup(
          content, backgroundColor);
View Full Code Here

TOP

Related Classes of jetbrains.communicator.idea.IdeaLocalMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.