- if (aPort->IsParam() || aPort->IsInLine() || myPort->isStream())
- aText = aText + "=" + aPort->ToString();
+ if (aPort->IsParam() || aPort->IsInLine() || myPort->isStream()) {
+ // mkr : modifications to avoid displaying long IOR's values on nodes' ports,
+ // display ports type from corresponding XML catalog instead.
+ QString aPortValue = aPort->ToString();
+ QString aPortType = aPort->Type();
+ if ( aPortType.compare("string") // not "string" type
+ &&
+ aPortValue.find("IOR:") >= 0 ) // has IOR:... in value
+ aText = aText + "=" + aPortType;
+ else
+ aText = aText + "=" + aPortValue;
+ }