protected void deleteBookMark (BookmarkNode node) { if (node.Bookmark.Document != null) { node.Bookmark.Document.BookmarkManager.RemoveMark(node.Bookmark); } else { ICSharpCode.SharpDevelop.Bookmarks.BookmarkManager.RemoveMark(node.Bookmark); } }
protected void deleteBookMark(BookmarkNode node) { if (node.Bookmark.Document != null) { node.Bookmark.Document.BookmarkManager.RemoveMark(node.Bookmark); } else { ICSharpCode.SharpDevelop.Bookmarks.BookmarkManager.RemoveMark(node.Bookmark); } }
protected override void Initialize() { Nodes.Clear(); if (marks.Count > 0) { // IDocument document = marks[0].Document; // if (document != null && document.HighlightingStrategy == null) { // document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategyForFile(fileName); // } foreach (SDBookmark mark in marks) { TreeNode newResult = new BookmarkNode(mark); Nodes.Add(newResult); } } }
public override void Run() { BookmarkNode node = BookmarkPad.Instance.CurrentNode; if (node != null) { if (node.Bookmark.Document != null) { node.Bookmark.Document.BookmarkManager.RemoveMark(node.Bookmark); } else { ICSharpCode.SharpDevelop.Bookmarks.BookmarkManager.RemoveMark(node.Bookmark); } WorkbenchSingleton.MainForm.Refresh(); } }
public void AddMark(SDBookmark mark) { int index = -1; for (int i = 0; i < marks.Count; ++i) { if (mark.LineNumber < marks[i].LineNumber) { index = i; break; } } if (index < 0) { marks.Add(mark); } else { marks.Insert(index, mark); } if (isInitialized) { BookmarkNode newNode = new BookmarkNode(mark); if (index < 0) { Nodes.Add(newNode); } else { Nodes.Insert(index, newNode); } newNode.EnsureVisible(); } SetText(); }
public void AddMark(SDBookmark mark) { int index = -1; for (int i = 0; i < marks.Count; ++i) { if (mark.LineNumber < marks[i].LineNumber) { index = i; break; } } if (index < 0) marks.Add(mark); else marks.Insert(index, mark); if (isInitialized) { BookmarkNode newNode = new BookmarkNode(mark); if (index < 0) Nodes.Add(newNode); else Nodes.Insert(index, newNode); newNode.EnsureVisible(); } SetText(); }
protected void deleteBookMark (BookmarkNode node) { ICSharpCode.SharpDevelop.Bookmarks.BookmarkManager.RemoveMark(node.Bookmark); }