Class MessagesView

  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by org.eclipse.ecf.presence.ui.MessagesView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class MessagesView
extends org.eclipse.ui.part.ViewPart

Field Summary
static java.lang.String VIEW_ID
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
Constructor Summary
Method Summary
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
 void displayTypingNotification(ITypingMessageEvent event)
          Display a message to notify the current user that a typing event has occurred.
 void dispose()
 void openTab(IChatMessageSender messageSender, ITypingMessageSender typingSender, ID localID, ID remoteID)
          Opens a new tab for conversing with a user.
 void selectTab(IChatMessageSender messageSender, ITypingMessageSender typingSender, ID localID, ID userID)
 void setFocus()
 void showMessage(IChatMessage message)
          Display a chat message from a remote user in their designated chat box.
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
Methods inherited from interface org.eclipse.core.runtime.IAdaptable

Field Detail


public static final java.lang.String VIEW_ID
See Also:
Constant Field Values
Constructor Detail


public MessagesView()
Method Detail


public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart


public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
dispose in class org.eclipse.ui.part.WorkbenchPart


public void displayTypingNotification(ITypingMessageEvent event)
Display a message to notify the current user that a typing event has occurred.

event - the typing message event


public void openTab(IChatMessageSender messageSender,
                    ITypingMessageSender typingSender,
                    ID localID,
                    ID remoteID)
Opens a new tab for conversing with a user.

messageSender - the IChatMessageSender interface that can be used to send messages to the other user
typingSender - the ITypingMessageSender interface to notify the other user that the current user is typing a message, null if unsupported
localID - the ID of the local user
remoteID - the ID of the remote user


public void selectTab(IChatMessageSender messageSender,
                      ITypingMessageSender typingSender,
                      ID localID,
                      ID userID)


public void showMessage(IChatMessage message)
Display a chat message from a remote user in their designated chat box.

message - a chat message that has been sent to the local user


public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart