Пример #1
0
		public CurrentDebugLineTextMarker (MonoTextEditor editor, int offset, int length)
		{
			IconMarker = new DebugIconMarker (currentLine);
			TextMarker = new DebugTextMarker (offset, length, e => e.ColorStyle.DebuggerCurrentLineMarker, e => e.ColorStyle.DebuggerCurrentLine);
		}
Пример #2
0
		public InvalidBreakpointTextMarker (MonoTextEditor editor, int offset, int length, bool isTracepoint)
		{
			IconMarker = new DebugIconMarker (isTracepoint ? tracepoint : breakpoint);
			TextMarker = new DebugTextMarker (offset, length, e => e.ColorStyle.BreakpointMarkerInvalid);
		}
Пример #3
0
		public DebugStackLineTextMarker (MonoTextEditor editor, int offset, int length)
		{
			IconMarker = new DebugIconMarker (stackLine);
			TextMarker = new DebugTextMarker (offset, length, e => e.ColorStyle.DebuggerStackLineMarker, e => e.ColorStyle.DebuggerStackLine);
		}
Пример #4
0
 public InvalidBreakpointTextMarker(MonoTextEditor editor, int offset, int length, bool isTracepoint)
 {
     IconMarker = new DebugIconMarker(isTracepoint ? tracepoint : breakpoint);
     TextMarker = new DebugTextMarker(offset, length, e => SyntaxHighlightingService.GetColor(e.EditorTheme, EditorThemeColors.BreakpointMarkerInvalid));
 }
Пример #5
0
 public CurrentDebugLineTextMarker(MonoTextEditor editor, int offset, int length)
 {
     IconMarker = new DebugIconMarker(currentLine);
     TextMarker = new DebugTextMarker(offset, length, e => SyntaxHighlightingService.GetColor(e.EditorTheme, EditorThemeColors.DebuggerCurrentLineMarker), e => SyntaxHighlightingService.GetChunkStyle(e.EditorTheme, EditorThemeColors.DebuggerCurrentLine));
 }
Пример #6
0
 public CurrentDebugLineTextMarker(MonoTextEditor editor, int offset, int length)
 {
     IconMarker = new DebugIconMarker(currentLine);
     TextMarker = new DebugTextMarker(offset, length, e => e.ColorStyle.DebuggerCurrentLineMarker, e => e.ColorStyle.DebuggerCurrentLine);
 }
Пример #7
0
 public DebugStackLineTextMarker(MonoTextEditor editor, int offset, int length)
 {
     IconMarker = new DebugIconMarker(stackLine);
     TextMarker = new DebugTextMarker(offset, length, e => e.ColorStyle.DebuggerStackLineMarker, e => e.ColorStyle.DebuggerStackLine);
 }
Пример #8
0
 public InvalidBreakpointTextMarker(MonoTextEditor editor, int offset, int length, bool isTracepoint)
 {
     IconMarker = new DebugIconMarker(isTracepoint ? tracepoint : breakpoint);
     TextMarker = new DebugTextMarker(offset, length, e => e.ColorStyle.BreakpointMarkerInvalid);
 }
Пример #9
0
		void OnIconMarginMouseLeave (object sender, EventArgs e)
		{
			if (hoverDebugLineMarker != null) {
				Document.RemoveMarker (hoverDebugLineMarker);
				hoverDebugLineMarker = null;
			}
		}
Пример #10
0
		void OnIconMarginMouseMoved (object sender, MarginMouseEventArgs e)
		{
			if (hoverDebugLineMarker != null) {
				if (hoverDebugLineMarker.LineSegment.LineNumber != e.LineSegment.LineNumber) {
					e.Editor.Document.RemoveMarker (hoverDebugLineMarker);
					hoverDebugLineMarker = null;
				}
			}

			if (hoverDebugLineMarker == null && e.LineSegment != null && e.LineSegment.Markers.FirstOrDefault (m => m is DebugIconMarker) == null) {
				hoverDebugLineMarker = new DebugIconMarker (hoverBreakpointIcon) {
					Tooltip = GettextCatalog.GetString ("Insert Breakpoint")
				};
				e.Editor.Document.AddMarker (e.LineSegment.LineNumber, hoverDebugLineMarker);
			}
		}