Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'providers/bundles')
-rw-r--r--providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java24
1 files changed, 7 insertions, 17 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java
index c8cfeddba..425d48ef5 100644
--- a/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java
+++ b/providers/bundles/org.eclipse.ecf.provider.remoteservice/src/org/eclipse/ecf/provider/remoteservice/generic/RegistrySharedObject.java
@@ -175,24 +175,14 @@ public class RegistrySharedObject extends AbstractSharedObject {
*/
}
- protected Event handleSharedObjectMsgEvent(ISharedObjectMessageEvent event) {
- Object data = null;
- if (event instanceof RemoteSharedObjectEvent) {
- RemoteSharedObjectEvent rsoe = (RemoteSharedObjectEvent) event;
- data = rsoe.getData();
- if (data instanceof SharedObjectMsgEvent) {
- SharedObjectMsgEvent some = (SharedObjectMsgEvent) data;
- try {
- some.getSharedObjectMsg().invoke(this);
- } catch (Exception e) {
- messageError(MSG_INVOKE_ERROR_CODE,
- MSG_INVOKE_ERROR_MESSAGE, e);
- }
-
- }
+ protected boolean handleSharedObjectMsg(SharedObjectMsg msg) {
+ try {
+ msg.invoke(this);
+ } catch (Exception e) {
+ messageError(MSG_INVOKE_ERROR_CODE,
+ MSG_INVOKE_ERROR_MESSAGE, e);
}
-
- return event;
+ return false;
}
private void messageError(int code, String message, Throwable exception) {

Back to the top