From: Mark G. <mg...@us...> - 2004-08-26 12:35:53
|
Update of /cvsroot/gmod/apollo/src/java/apollo/gui/drawable In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23524/src/java/apollo/gui/drawable Modified Files: DrawableFeatureSet.java Log Message: REPLACE TRANSLATION annotation change event should be changed. used to not matter as it wasnt fired as an annotation change event - just passed directly to annot change log. nnow everything is being fired as an event as it should - thats how acl gets its events/transactions. REPLACE should only be for when the whole model needs replacing i think - maybe op should just be UPDATE. also i dont know if translation should be an object class. maybe the object class should be transcript and the operation should be TRANSLATION_CHANGE - or something like that - needs to be rethought. now ya hafta put all these clauses on replace events. dont have time to put in proper fix - revisit. Index: DrawableFeatureSet.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/gui/drawable/DrawableFeatureSet.java,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** DrawableFeatureSet.java 25 Aug 2004 22:52:10 -0000 1.56 --- DrawableFeatureSet.java 26 Aug 2004 12:35:44 -0000 1.57 *************** *** 380,384 **** // maybe updating comments should be separated from changing feats // have a FeatureChangeEvent.UPDATE for simpler stuff like comments ! if (ce.getObjectClass() != AnnotationChangeEvent.COMMENT) { if (parentOkay (parent, ce)) { DrawableSetI grandparent = (DrawableSetI) parent.getRefDrawable(); --- 380,386 ---- // maybe updating comments should be separated from changing feats // have a FeatureChangeEvent.UPDATE for simpler stuff like comments ! // translation should not be an object class ! if (ce.getObjectClass() != AnnotationChangeEvent.COMMENT ! && ce.getObjectClass() != AnnotationChangeEvent.TRANSLATION) { if (parentOkay (parent, ce)) { DrawableSetI grandparent = (DrawableSetI) parent.getRefDrawable(); |