Search in sources :

Example 1 with BaseLocalMessage

use of jetbrains.communicator.idea.BaseLocalMessage 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)

Example 2 with BaseLocalMessage

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

the class ShowHistoryDialog method outputMessages.

private void outputMessages() {
    Date day = null;
    for (LocalMessage message : myFoundMessages) {
        day = printDaySeparatorIfNeeded(message, day);
        BaseLocalMessage localMessage = ((BaseLocalMessage) message);
        ConsoleUtil.outputMessage(localMessage.createConsoleMessage(myUser), myProject, myConsole);
    }
}
Also used : BaseLocalMessage(jetbrains.communicator.idea.BaseLocalMessage) LocalMessage(jetbrains.communicator.core.dispatcher.LocalMessage) BaseLocalMessage(jetbrains.communicator.idea.BaseLocalMessage) Date(java.util.Date)

Aggregations

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