blob: a7f066159efb25b8678e93c2e734caafb591c46f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/****************************************************************************
* Copyright (c) 2004 Composent, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Composent, Inc. - initial API and implementation
*****************************************************************************/
package org.eclipse.ecf.core.sharedobject;
import org.eclipse.ecf.core.identity.ID;
import org.eclipse.ecf.core.sharedobject.events.RemoteSharedObjectEvent;
/**
* Event type to represent messages sent between shared objects
*
*/
public class SharedObjectMsgEvent extends RemoteSharedObjectEvent {
private static final long serialVersionUID = -8674874265514762123L;
public SharedObjectMsgEvent() {
super();
}
/**
* @param senderObj
* @param remoteCont
* @param msg
*/
public SharedObjectMsgEvent(ID senderObj, ID remoteCont, SharedObjectMsg msg) {
super(senderObj, remoteCont, msg);
}
public SharedObjectMsg getSharedObjectMsg() {
return (SharedObjectMsg) super.getData();
}
public String toString() {
StringBuffer buf = new StringBuffer("SharedObjectMsgEvent["); //$NON-NLS-1$
buf.append(getSenderSharedObjectID()).append(";").append( //$NON-NLS-1$
getRemoteContainerID()).append(";") //$NON-NLS-1$
.append(getSharedObjectMsg());
buf.append("]"); //$NON-NLS-1$
return buf.toString();
}
}
|