From: Jan S. <st...@us...> - 2002-02-26 00:44:54
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions In directory usw-pr-cvs1:/tmp/cvs-serv7343 Modified Files: SnapshotAction.java Log Message: Refactoring of snapshot action. Index: SnapshotAction.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/actions/SnapshotAction.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** SnapshotAction.java 27 Jan 2002 23:18:26 -0000 1.1 --- SnapshotAction.java 26 Feb 2002 00:44:51 -0000 1.2 *************** *** 27,31 **** import org.openide.util.actions.CallableSystemAction; - import net.sourceforge.javaprofiler.jpi.Snapshot; import net.sourceforge.javaprofiler.module.data.Session; import net.sourceforge.javaprofiler.module.data.ProfilerData; --- 27,30 ---- *************** *** 41,46 **** Session session=ProfilerData.getData().currentSession(); if (session!=null) { ! Snapshot snapshot=session.getVM().createSnapshot(); ! ProfilerData.getData().addSnapshot(new net.sourceforge.javaprofiler.module.data.Snapshot(snapshot)); } } --- 40,44 ---- Session session=ProfilerData.getData().currentSession(); if (session!=null) { ! session.createSnapshot(); } } *************** *** 67,70 **** --- 65,71 ---- /* * $Log$ + * Revision 1.2 2002/02/26 00:44:51 stolis + * Refactoring of snapshot action. + * * Revision 1.1 2002/01/27 23:18:26 stolis * Snapshot action. |