From: Xuan B. <med...@us...> - 2008-01-23 20:55:23
|
Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/tm4j1 In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12186/src/org/tm4j/topicmap/tmdm/tm4j1 Modified Files: AssociationImpl.java Log Message: More support for unspecified association types. Index: AssociationImpl.java =================================================================== RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/tm4j1/AssociationImpl.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AssociationImpl.java 23 Jan 2008 20:40:25 -0000 1.4 --- AssociationImpl.java 23 Jan 2008 20:55:24 -0000 1.5 *************** *** 158,162 **** */ public void setType(Topic type) throws PropertyVetoException { ! getRepresentedObject().setType(getContainer().externalToUnmerged(type)); } --- 158,162 ---- */ public void setType(Topic type) throws PropertyVetoException { ! getRepresentedObject().setType((type!=null)?getContainer().externalToUnmerged(type):getContainer().getInternalUnspecifiedTopic()); } |