Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2013-08-16 04:58:29 -0400
committerHenrik Rentz-Reichert2013-08-16 04:58:29 -0400
commita8768753865283dc60bbe1cfee002cc20c42e108 (patch)
tree4310067a83a0206e8bf2c9facc3503fd878a69d6 /runtime/org.eclipse.etrice.runtime.java/src/org/eclipse
parent8c96954212647c0234aa82c000c739ba0a55ae0a (diff)
downloadorg.eclipse.etrice-a8768753865283dc60bbe1cfee002cc20c42e108.tar.gz
org.eclipse.etrice-a8768753865283dc60bbe1cfee002cc20c42e108.tar.xz
org.eclipse.etrice-a8768753865283dc60bbe1cfee002cc20c42e108.zip
[runtime.java] improved toString of interface item broker
Diffstat (limited to 'runtime/org.eclipse.etrice.runtime.java/src/org/eclipse')
-rw-r--r--runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/InterfaceItemBroker.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/InterfaceItemBroker.java b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/InterfaceItemBroker.java
index 9175b304f..ba9be9804 100644
--- a/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/InterfaceItemBroker.java
+++ b/runtime/org.eclipse.etrice.runtime.java/src/org/eclipse/etrice/runtime/java/modelbase/InterfaceItemBroker.java
@@ -156,6 +156,9 @@ public class InterfaceItemBroker extends InterfaceItemBase implements IInterface
@Override
public String toString() {
- return "interface broker "+super.toString();
+ String peer1 = (firstPeer instanceof InterfaceItemBase)? (((InterfaceItemBase)firstPeer).getAddress().toString()+"("+firstPeer.getClass().toString()+")")
+ :(firstPeer instanceof ReplicatedInterfaceItemBase? (((ReplicatedInterfaceItemBase)firstPeer).toString()+"("+firstPeer.getClass().toString()+")"):"null");
+ String peer2 = secondPeer==null? "null":(secondPeer.getAddress().toString()+"("+secondPeer.getClass().toString()+")");
+ return "interface broker port "+getName()+" - 1. peer "+peer1+" 2. peer "+peer2;
}
}

Back to the top