~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2012-02-05 10:49:36 UTC
  • mto: (10.3.1)
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20120205104936-4ujoylapu24cquuo
Tags: upstream-2.8.6.3+dfsg
ImportĀ upstreamĀ versionĀ 2.8.6.3+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
930
930
                
931
931
                void UpdateBreakpoints (bool forceUpdate = false)
932
932
                {
 
933
                        FilePath fp = Name;
 
934
                        
933
935
                        if (!forceUpdate) {
934
936
                                int i = 0, count = 0;
935
937
                                bool mismatch = false;
936
938
                                foreach (Breakpoint bp in DebuggingService.Breakpoints.GetBreakpoints ()) {
 
939
                                        if (fp.FullPath != bp.FileName)
 
940
                                                continue;
 
941
                                        
937
942
                                        count++;
938
943
                                        if (i < breakpointSegments.Count) {
939
944
                                                int lineNumber = widget.TextEditor.Document.OffsetToLineNumber (breakpointSegments[i].Offset);
944
949
                                                i++;
945
950
                                        }
946
951
                                }
 
952
                                
947
953
                                if (count != breakpointSegments.Count)
948
954
                                        mismatch = true;
949
955
                                
958
964
                                widget.TextEditor.Document.RemoveMarker (line, typeof (DisabledBreakpointTextMarker));
959
965
                                widget.TextEditor.Document.RemoveMarker (line, typeof (InvalidBreakpointTextMarker));
960
966
                        }
961
 
        
 
967
                        
962
968
                        breakpointSegments.Clear ();
963
969
                        foreach (Breakpoint bp in DebuggingService.Breakpoints.GetBreakpoints ()) {
 
970
                                if (fp.FullPath != bp.FileName)
 
971
                                        continue;
 
972
                                
964
973
                                lineNumbers.Add (bp.Line);
965
974
                                AddBreakpoint (bp);
966
975
                        }