diff options
author | Lluis Sanchez <lluis@xamarin.com> | 2014-01-20 19:32:53 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2014-10-21 18:39:14 +0400 |
commit | f73b2a9990495587d514aa1856919c21170a3940 (patch) | |
tree | 9842411ee8644ead5915a715ee7e53984a601df4 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskService.cs | |
parent | a2046b6331a271e8203df7d3d0f14500d33d60fa (diff) |
Initial drop of the new project model
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskService.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskService.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskService.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskService.cs index e29aefd2d3..6432322c8b 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskService.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/TaskService.cs @@ -104,7 +104,7 @@ namespace MonoDevelop.Ide.Tasks /// <summary> /// Shows a description of the task in the status bar /// </summary> - public static void ShowStatus (Task t) + public static void ShowStatus (UserTask t) { if (t == null) IdeApp.Workbench.StatusBar.ShowMessage (GettextCatalog.GetString ("No more errors or warnings")); @@ -125,8 +125,8 @@ namespace MonoDevelop.Ide.Tasks // Load User Tasks from xml file if (File.Exists (fileToLoad)) { XmlDataSerializer serializer = new XmlDataSerializer (new DataContext ()); - List<Task> ts = (List<Task>) serializer.Deserialize (fileToLoad, typeof(List<Task>)); - foreach (Task t in ts) { + List<UserTask> ts = (List<UserTask>) serializer.Deserialize (fileToLoad, typeof(List<UserTask>)); + foreach (UserTask t in ts) { t.WorkspaceObject = e.Item; userTasks.Add (t); } @@ -157,11 +157,11 @@ namespace MonoDevelop.Ide.Tasks return combinePath.Combine (item.FileName.FileNameWithoutExtension + ".usertasks"); } - internal static void SaveUserTasks (IWorkspaceObject item) + internal static void SaveUserTasks (WorkspaceObject item) { string fileToSave = GetUserTasksFilename ((WorkspaceItem)item); try { - List<Task> utasks = new List<Task> (userTasks.GetItemTasks (item, true)); + List<UserTask> utasks = new List<UserTask> (userTasks.GetItemTasks (item, true)); if (utasks.Count == 0) { if (File.Exists (fileToSave)) File.Delete (fileToSave); @@ -177,7 +177,7 @@ namespace MonoDevelop.Ide.Tasks public static event EventHandler<TaskEventArgs> JumpedToTask; - internal static void InformJumpToTask (Task task) + internal static void InformJumpToTask (UserTask task) { EventHandler<TaskEventArgs> handler = JumpedToTask; if (handler != null) |