org.eclipse.ecf.presence.collab.ui.console
Class ConsoleShare

java.lang.Object
  extended by org.eclipse.ecf.datashare.AbstractShare
      extended by org.eclipse.ecf.presence.collab.ui.AbstractCollabShare
          extended by org.eclipse.ecf.presence.collab.ui.console.ConsoleShare

public class ConsoleShare
extends AbstractCollabShare

Send/receive requests to share a specific view (identified by view ID).


Field Summary
 
Fields inherited from class org.eclipse.ecf.datashare.AbstractShare
adapter, channel
 
Constructor Summary
ConsoleShare(IChannelContainerAdapter adapter)
           
 
Method Summary
static ConsoleShare addStackShare(ID containerID, IChannelContainerAdapter channelAdapter)
           
static org.eclipse.jface.text.TextSelection getSelection()
           
static ConsoleShare getStackShare(ID containerID)
           
protected  void handleMessage(ID fromContainerID, byte[] data)
          Receive message for this channel.
static ConsoleShare removeStackShare(ID containerID)
           
 void sendShareConsoleSelection(java.lang.String senderuser, ID toID, java.lang.String consoleSelection)
           
 
Methods inherited from class org.eclipse.ecf.presence.collab.ui.AbstractCollabShare
deserialize, logError, logError, serialize
 
Methods inherited from class org.eclipse.ecf.datashare.AbstractShare
dispose, getChannel, handleChannelEvent, handleConnectEvent, handleDisconnectEvent, isDisposed, sendMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleShare

public ConsoleShare(IChannelContainerAdapter adapter)
             throws ECFException
Throws:
ECFException
Method Detail

getStackShare

public static ConsoleShare getStackShare(ID containerID)

addStackShare

public static ConsoleShare addStackShare(ID containerID,
                                         IChannelContainerAdapter channelAdapter)
                                  throws ECFException
Throws:
ECFException

getSelection

public static org.eclipse.jface.text.TextSelection getSelection()

removeStackShare

public static ConsoleShare removeStackShare(ID containerID)

sendShareConsoleSelection

public void sendShareConsoleSelection(java.lang.String senderuser,
                                      ID toID,
                                      java.lang.String consoleSelection)

handleMessage

protected void handleMessage(ID fromContainerID,
                             byte[] data)
Description copied from class: AbstractShare
Receive message for this channel. This method will be called asynchronously by an arbitrary thread when data to the associated channel is received.

Specified by:
handleMessage in class AbstractShare
Parameters:
fromContainerID - the ID of the sender container. Will not be null.
data - the data received on the channel. Will not be null.