From: Jan S. <st...@us...> - 2002-02-26 00:34:25
|
Update of /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module In directory usw-pr-cvs1:/tmp/cvs-serv4950 Modified Files: ProfilerSettingsBeanInfo.java ProfilerSettings.java Log Message: Snapshot_on_exit property added. Index: ProfilerSettingsBeanInfo.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/ProfilerSettingsBeanInfo.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** ProfilerSettingsBeanInfo.java 14 Oct 2001 22:15:22 -0000 1.1.1.1 --- ProfilerSettingsBeanInfo.java 26 Feb 2002 00:34:22 -0000 1.2 *************** *** 43,50 **** workspace.setShortDescription(bundle.getString("HINT_workspace")); workspace.setPropertyEditorClass(WorkspaceEditor.class); ! return new PropertyDescriptor[] {workspace}; } catch (IntrospectionException ie) { ! if (Boolean.getBoolean ("netbeans.debug.exceptions")) ! ie.printStackTrace (); return null; } --- 43,52 ---- workspace.setShortDescription(bundle.getString("HINT_workspace")); workspace.setPropertyEditorClass(WorkspaceEditor.class); ! PropertyDescriptor snapshotOnExit=new PropertyDescriptor(ProfilerSettings.PROP_SNAPSHOT_ON_EXIT, ProfilerSettings.class); ! snapshotOnExit.setDisplayName(bundle.getString("PROP_snapshotOnExit")); ! snapshotOnExit.setShortDescription(bundle.getString("HINT_snapshotOnExit")); ! return new PropertyDescriptor[] {workspace, snapshotOnExit}; } catch (IntrospectionException ie) { ! ie.printStackTrace (); return null; } *************** *** 68,71 **** --- 70,76 ---- /* * $Log$ + * Revision 1.2 2002/02/26 00:34:22 stolis + * Snapshot_on_exit property added. + * * Revision 1.1.1.1 2001/10/14 22:15:22 stolis * The very first version of profiler module. Index: ProfilerSettings.java =================================================================== RCS file: /cvsroot/javaprofiler/module/net/sourceforge/javaprofiler/module/ProfilerSettings.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -r1.1.1.1 -r1.2 *** ProfilerSettings.java 14 Oct 2001 22:15:16 -0000 1.1.1.1 --- ProfilerSettings.java 26 Feb 2002 00:34:22 -0000 1.2 *************** *** 31,38 **** */ public class ProfilerSettings extends SystemOption { ! public static final String PROP_WORKSPACE="workspace"; protected void initialize () { setWorkspace("profiling"); } --- 31,40 ---- */ public class ProfilerSettings extends SystemOption { ! public static final String PROP_WORKSPACE="workspace"; ! public static final String PROP_SNAPSHOT_ON_EXIT="snapshotOnExit"; protected void initialize () { setWorkspace("profiling"); + setSnapshotOnExit(true); } *************** *** 59,62 **** --- 61,72 ---- putProperty(PROP_WORKSPACE, workspace, true); } + + public boolean getSnapshotOnExit() { + return ((Boolean)getProperty(PROP_SNAPSHOT_ON_EXIT)).booleanValue(); + } + + public void setSnapshotOnExit(boolean snapshotOnExit) { + putProperty(PROP_SNAPSHOT_ON_EXIT, new Boolean(snapshotOnExit), true); + } } *************** *** 64,67 **** --- 74,80 ---- /* * $Log$ + * Revision 1.2 2002/02/26 00:34:22 stolis + * Snapshot_on_exit property added. + * * Revision 1.1.1.1 2001/10/14 22:15:16 stolis * The very first version of profiler module. |