public static List<SDBookmark> GetProjectBookmarks(ICSharpCode.SharpDevelop.Project.IProject project)
		{
			List<SDBookmark> projectBookmarks = new List<SDBookmark>();
			foreach (SDBookmark mark in bookmarks) {
				if (mark.IsSaved && mark.FileName != null && project.IsFileInProject(mark.FileName)) {
					projectBookmarks.Add(mark);
				}
			}
			return projectBookmarks;
		}
Exemple #2
0
		public static List<SDBookmark> GetProjectBookmarks(ICSharpCode.SharpDevelop.Project.IProject project)
		{
			WorkbenchSingleton.AssertMainThread();
			List<SDBookmark> projectBookmarks = new List<SDBookmark>();
			foreach (SDBookmark mark in bookmarks) {
				// Only return those bookmarks which belong to the specified project.
				if (mark.IsSaved && mark.FileName != null && project.IsFileInProject(mark.FileName)) {
					projectBookmarks.Add(mark);
				}
			}
			return projectBookmarks;
		}
 public IEnumerable<SDBookmark> GetProjectBookmarks(ICSharpCode.SharpDevelop.Project.IProject project)
 {
     SD.MainThread.VerifyAccess();
     List<SDBookmark> projectBookmarks = new List<SDBookmark>();
     foreach (SDBookmark mark in bookmarks) {
         // Only return those bookmarks which belong to the specified project.
         if (mark.IsSaved && mark.FileName != null && project.IsFileInProject(mark.FileName)) {
             projectBookmarks.Add(mark);
         }
     }
     return projectBookmarks;
 }