Initial Commit
[packages] / xemacs-packages / jde / java / src / jde / debugger / command / CancelTraceMethods.java
1 package jde.debugger.command;
2
3 import jde.debugger.JDEException;
4 import jde.debugger.Etc;
5
6
7 /**
8  * 'cancel_trace_methods' command.
9  * <p>
10  *
11  * <b>Syntax: </b>
12  * <pre>
13  * cancel_trace_methods <u>requestID</u>
14  * </pre>
15  *
16  * <b>Comments:</b>
17  * <ul>
18  * <li> <u>requestID</u> is returned in the trace methods reply
19  * </ul>
20  *
21  * Copyright (c) 2000, 2001, 2003    Paul Kinnucan
22  * 
23  * @author Paul Kinnucan
24  * @version $Revision: 1.2 $
25  *
26  */
27 public class CancelTraceMethods extends DebugProcessCommand {
28   
29   /**
30    *
31    * @exception jde.debugger.JDEException <description>
32    */
33   public void doCommand() throws JDEException {
34     if (m_args.size() < 1)
35       throw new JDEException("Insufficient arguments");
36         
37     m_debugger.deleteIdentifiableRequest(Etc.safeGetLong(m_args.remove(0), "request ID"));
38         
39     m_debugger.signalCommandResult(m_cmdID, null, CMD_OK);
40   }
41     
42   public Object clone() {return new CancelTraceMethods();}
43     
44 } // CancelTraceMethods
45
46 /*
47  * $Log: CancelTraceMethods.java,v $
48  * Revision 1.2  2003/01/15 05:56:26  paulk
49  * Add Petter Mahlen's changes.
50  *
51  * Revision 1.1  2001/03/24 05:48:39  paulk
52  * Initial version.
53  *
54  *
55  */
56
57 // End of CancelTraceMethods.java