org.eclipse.ecf.example.clients.applications
Class ChatRoomRobotApplication
java.lang.Object
org.eclipse.ecf.example.clients.applications.ChatRoomRobotApplication
- All Implemented Interfaces:
- IMessageReceiver, IIMMessageListener, org.eclipse.equinox.app.IApplication
public class ChatRoomRobotApplication
- extends java.lang.Object
- implements org.eclipse.equinox.app.IApplication, IMessageReceiver, IIMMessageListener
To be started as an application. Go to Run->Run..., create a new Eclipse
Application, select org.eclipse.ecf.example.clients.robot as the application
and make sure you have all required plug-ins.
Fields inherited from interface org.eclipse.equinox.app.IApplication |
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChatRoomRobotApplication
public ChatRoomRobotApplication()
start
public java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context)
throws java.lang.Exception
- Specified by:
start
in interface org.eclipse.equinox.app.IApplication
- Throws:
java.lang.Exception
handleMessage
public void handleMessage(IChatMessage chatMessage)
- Specified by:
handleMessage
in interface IMessageReceiver
handleMessageEvent
public void handleMessageEvent(IIMMessageEvent messageEvent)
- Description copied from interface:
IIMMessageListener
- Handle message event (reception of chat, typing, or object message).
- Specified by:
handleMessageEvent
in interface IIMMessageListener
- Parameters:
messageEvent
- the event instance to handle. Will not be null
.
stop
public void stop()
- Specified by:
stop
in interface org.eclipse.equinox.app.IApplication