Relation selection dialog
[potlatch2.git] / net / systemeD / halcyon / connection / Relation.as
index 22474adb7d7ab3da3a387483e3fa31a34c19ab9d..784d6f73275a7f0c64b0587074105b4451ec1003 100644 (file)
@@ -55,6 +55,21 @@ package net.systemeD.halcyon.connection {
                        removed[0].entity.removeParent(this);
         }
 
+        public function getDescription():String {
+            var desc:String = "";
+            var relTags:Object = getTagsHash();
+            if ( relTags["type"] ) {
+                desc = relTags["type"];
+                if ( relTags[desc] )
+                    desc += " " + relTags[desc];
+            }
+            if ( relTags["ref"] )
+                desc += " " + relTags["ref"];
+            if ( relTags["name"] )
+                desc += " " + relTags["name"];
+            return desc;
+        }
+
                public override function getType():String {
                        return 'relation';
                }