[archstudio-commits] svn commit: r7060 - /archstudio4/trunk/edu.uci.isr.archstudio4.comp.xarchcs/src/edu/uci/isr/archstudio4/comp/xarchcs/changesetidview/ChangeSetIdViewImpl.java

archstudio-commits-owner at uci.edu archstudio-commits-owner at uci.edu
Thu May 1 19:13:56 PDT 2008


Author: shendric
Date: Thu May  1 19:13:55 2008
New Revision: 7060

Log:
Fixed: file creation did not initialize view

Modified:
    archstudio4/trunk/edu.uci.isr.archstudio4.comp.xarchcs/src/edu/uci/isr/=
archstudio4/comp/xarchcs/changesetidview/ChangeSetIdViewImpl.java

Modified: archstudio4/trunk/edu.uci.isr.archstudio4.comp.xarchcs/src/edu/uc=
i/isr/archstudio4/comp/xarchcs/changesetidview/ChangeSetIdViewImpl.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- archstudio4/trunk/edu.uci.isr.archstudio4.comp.xarchcs/src/edu/uci/isr/=
archstudio4/comp/xarchcs/changesetidview/ChangeSetIdViewImpl.java (original)
+++ archstudio4/trunk/edu.uci.isr.archstudio4.comp.xarchcs/src/edu/uci/isr/=
archstudio4/comp/xarchcs/changesetidview/ChangeSetIdViewImpl.java Thu May  =
1 19:13:55 2008
@@ -149,8 +149,13 @@
 		if(debug){
 			System.out.println("Got File Event: " + evt);
 		}
-		if(evt.getEventType() =3D=3D XArchFileEvent.XARCH_OPENED_EVENT){
-			ObjRef xArchRef =3D evt.getXArchRef();
+
+		ObjRef xArchRef =3D evt.getXArchRef();
+
+		switch(evt.getEventType()){
+
+		case XArchFileEvent.XARCH_CREATED_EVENT:
+		case XArchFileEvent.XARCH_OPENED_EVENT:
 			synchronized(xArchToChangeSetIdData){
 				ChangeSetIdData csIdData =3D xArchToChangeSetIdData.get(xArchRef);
 				if(csIdData =3D=3D null){
@@ -164,12 +169,14 @@
 				ChangeSetIdViewEvent initEvt =3D new ChangeSetIdViewEvent(xArchRef);
 				listeners.sendEvent(initEvt);
 			}
-		}
-		else if(evt.getEventType() =3D=3D XArchFileEvent.XARCH_CLOSED_EVENT){
-			ObjRef xArchRef =3D evt.getXArchRef();
+			break;
+
+		case XArchFileEvent.XARCH_CLOSED_EVENT:
 			synchronized(xArchToChangeSetIdData){
 				xArchToChangeSetIdData.remove(xArchRef);
 			}
+			break;
+
 		}
 	}
 =





More information about the archstudio-commits mailing list