From: Jan S. <st...@us...> - 2002-02-26 00:50:13
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/data In directory usw-pr-cvs1:/tmp/cvs-serv8453 Modified Files: Snapshot.java Log Message: Added name property. Index: Snapshot.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/data/Snapshot.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Snapshot.java 27 Jan 2002 23:05:58 -0000 1.1 --- Snapshot.java 26 Feb 2002 00:50:07 -0000 1.2 *************** *** 36,40 **** * @param snapshot snapshot of some profiled process. */ ! public Snapshot(net.sourceforge.javaprofiler.jpi.Snapshot vm) { this.snapshot=snapshot; } --- 36,40 ---- * @param snapshot snapshot of some profiled process. */ ! public Snapshot(net.sourceforge.javaprofiler.jpi.Snapshot snapshot) { this.snapshot=snapshot; } *************** *** 57,64 **** --- 57,78 ---- return snapshot.getName(); } + + /** + * Sets name of this snapshot. + * + * @param name new name of this snapshot. + */ + public void setName(String name) { + String old=getName(); + snapshot.setName(name); + } + } /* * $Log$ + * Revision 1.2 2002/02/26 00:50:07 stolis + * Added name property. + * * Revision 1.1 2002/01/27 23:05:58 stolis * Wrapper for snapshot. |