~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/DebugCommands.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-01-07 19:06:58 UTC
  • mto: (1.6.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20100107190658-z9z95lgk4kwfes7p
ImportĀ upstreamĀ versionĀ 2.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                ShowBreakpointProperties,
64
64
                ExpressionEvaluator,
65
65
                SelectExceptions,
66
 
                ShowCurrentExecutionLine
 
66
                ShowCurrentExecutionLine,
 
67
                AddTracepoint
67
68
        }
68
69
 
69
70
        internal class DebugHandler: CommandHandler
335
336
                }
336
337
        }
337
338
        
 
339
        internal class AddTracepointHandler: CommandHandler
 
340
        {
 
341
                protected override void Run ()
 
342
                {
 
343
                        DebuggingService.ShowAddTracepointDialog (
 
344
                            IdeApp.Workbench.ActiveDocument.FileName,
 
345
                            IdeApp.Workbench.ActiveDocument.TextEditor.CursorLine);
 
346
                }
 
347
                
 
348
                protected override void Update (CommandInfo info)
 
349
                {
 
350
                        info.Visible = DebuggingService.IsFeatureSupported (DebuggerFeatures.Tracepoints);
 
351
                        info.Enabled = IdeApp.Workbench.ActiveDocument != null && 
 
352
                                        IdeApp.Workbench.ActiveDocument.TextEditor != null &&
 
353
                                        IdeApp.Workbench.ActiveDocument.FileName != FilePath.Null &&
 
354
                                        !DebuggingService.Breakpoints.IsReadOnly;
 
355
                }
 
356
        }
 
357
        
338
358
        internal class EnableDisableBreakpointHandler: CommandHandler
339
359
        {
340
360
                protected override void Run ()