Chat Plugin RFE - need help from a master

Hi all,

I'm pretty new to plugins for intellij - I wrote the chat plugin to see if I could work it out and it seems to work great, but the same RFE keeps appearing from users...

I made the chat tool window activate when the user receives a message. Some users find this behaviour annoying, and would rather have the tool window anchor highlight or something similar to inform the user that there is an unread message without taking the focus away from the editor. The problem is I can't for the life of me figure out to do that within the bounds of openapi :(

I have not seen anyone else do this in the plugins I've downloaded so I'm not even sure if it's possible. Can anyone help me?

Thanks in advance,
Andrew

1 comment
Comment actions Permalink

Hi,

There are two obvious ways to implement some kind of indication:

1. use toolbar button. change the icon in AnAction.update method implementation depending on the number of pending messages
2. change icon of the toolwindow, instead of popping the window up.
3. activate toolwindow when new message arrives and deactivate when user hides toolwindow, so the window button in toolwindow bar will be visible only when there are new messages.

Unfortunately, both toolbar anb toolwindows bar could be hidden, so user will never know that there are new messages. I think in IDEA 4.1. there probably will be more powerfull statusbar API that will allow to provide custom components to the status bar.

Alexander Kitaev.
http://tmate.org/

0

Please sign in to leave a comment.