Search in sources :

Example 1 with ConsoleMessage

use of jetbrains.communicator.idea.ConsoleMessage in project intellij-plugins by JetBrains.

the class MessagesTab method loadTodaysMessages.

private void loadTodaysMessages() {
    LocalMessage[] history = myLocalMessageDispatcher.getHistory(myUser, TimeUtil.getDay(new Date()));
    for (LocalMessage localMessage : history) {
        ConsoleMessage consoleMessage = ((BaseLocalMessage) localMessage).createConsoleMessage(myUser);
        outputMessage(consoleMessage);
    }
}
Also used : BaseLocalMessage(jetbrains.communicator.idea.BaseLocalMessage) LocalMessage(jetbrains.communicator.core.dispatcher.LocalMessage) BaseLocalMessage(jetbrains.communicator.idea.BaseLocalMessage) Date(java.util.Date) ConsoleMessage(jetbrains.communicator.idea.ConsoleMessage)

Aggregations

Date (java.util.Date)1 LocalMessage (jetbrains.communicator.core.dispatcher.LocalMessage)1 BaseLocalMessage (jetbrains.communicator.idea.BaseLocalMessage)1 ConsoleMessage (jetbrains.communicator.idea.ConsoleMessage)1