@@ -0,0 +1,1235 @@
+package org.concord.framework.otrunk.view;%0A%0Aimport javax.swing.JTree;%0Aimport javax.swing.tree.DefaultMutableTreeNode;%0Aimport javax.swing.tree.TreeNode;%0A%0Aimport org.concord.framework.otrunk.OTObject;%0A%0Apublic class OTObjectTree extends JTree %7B%0A%09private static final long serialVersionUID = 1L;%0A%0A%09public OTObjectTree() %7B%0A%09%09super();%0A%09%7D%0A%09%0A%09public OTObjectTree(TreeNode node) %7B%0A%09%09super(node);%0A%09%7D%0A%0A%09@Override%0A%09public String convertValueToText(Object value, boolean selected,%0A%09%09%09boolean expanded, boolean leaf, int row,%0A%09%09%09boolean hasFocus) %7B%0A%09%09if(value != null) %7B%0A%09%09%09String sValue = null;%0A%09%09%09if (value instanceof DefaultMutableTreeNode) %7B%0A%09%09%09%09value = ((DefaultMutableTreeNode)value).getUserObject();%0A%09%09%09%09if (value instanceof OTObject) %7B%0A%09%09%09%09%09sValue = getOTObjectString((OTObject) value);%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09sValue = value.toString();%0A%09%09%09%09%7D%0A%09%09%09%7D else %7B%0A%09%09%09%09sValue = value.toString();%0A%09%09%09%7D%0A%09%09%09if (sValue != null) %7B%0A%09%09%09%09return sValue;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return %22%22;%0A%09%7D%0A%09%0A%09private String getOTObjectString(OTObject obj) %7B%0A%09%09String shortClassStr = obj.otClass().getName();%0A%09%09shortClassStr = shortClassStr.substring(shortClassStr.lastIndexOf(%22.%22)+1, shortClassStr.length());%0A%09%09return shortClassStr + %22 -- %22 + obj.getName() + %22 -- %22 + obj.getGlobalId();%0A%09%7D%0A%7D%0A

Move OTObjectTree from otrunk-intrasession to framework.