Search in sources :

Example 6 with MessagesView

use of org.eclipse.ecf.presence.ui.MessagesView in project ecf by eclipse.

the class XMPPHyperlink method openMessagesView.

private void openMessagesView(IChatManager chatManager, ID localID, ID targetID, String localName) throws PartInitException {
    final IChatMessageSender icms = chatManager.getChatMessageSender();
    final ITypingMessageSender itms = chatManager.getTypingMessageSender();
    final IWorkbenchWindow ww = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    final MessagesView view = (MessagesView) ww.getActivePage().showView(MessagesView.VIEW_ID);
    view.selectTab(icms, itms, localID, targetID, localName);
}
Also used : MessagesView(org.eclipse.ecf.presence.ui.MessagesView)

Aggregations

MessagesView (org.eclipse.ecf.presence.ui.MessagesView)6 PartInitException (org.eclipse.ui.PartInitException)2 IWorkbenchSiteProgressService (org.eclipse.ui.progress.IWorkbenchSiteProgressService)2 IContainer (org.eclipse.ecf.core.IContainer)1 IContainerManager (org.eclipse.ecf.core.IContainerManager)1 IPresenceContainerAdapter (org.eclipse.ecf.presence.IPresenceContainerAdapter)1 IChatManager (org.eclipse.ecf.presence.im.IChatManager)1 IChatMessage (org.eclipse.ecf.presence.im.IChatMessage)1 IRoster (org.eclipse.ecf.presence.roster.IRoster)1 IRosterEntry (org.eclipse.ecf.presence.roster.IRosterEntry)1 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)1 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)1