From: Xuan B. <med...@us...> - 2008-01-23 21:25:03
|
Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/basic In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24420/src/org/tm4j/topicmap/tmdm/basic Modified Files: BasicScopeable.java Log Message: Introduce Scopeable.replaceScope(). Index: BasicScopeable.java =================================================================== RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/basic/BasicScopeable.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BasicScopeable.java 21 Jan 2008 11:13:44 -0000 1.1 --- BasicScopeable.java 23 Jan 2008 21:25:02 -0000 1.2 *************** *** 87,90 **** --- 87,101 ---- } + public void replaceScope(Scope newScope) { + replaceScope((BasicScope) newScope); + } + + public void replaceScope(BasicScope newScope) { + BasicScope oldScope = this.scope; + + this.scope = newScope; + + getEventListener().notifyScopeReplaced(getContainingTopicMap(),this,oldScope,newScope); + } /* |