~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Tasks/Task.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
                public virtual void JumpToPosition()
209
209
                {
210
210
                        if (!file.IsNullOrEmpty) {
211
 
                                IdeApp.Workbench.OpenDocument (file, Math.Max (1, line), Math.Max (1, column), true);
 
211
                                var doc = IdeApp.Workbench.OpenDocument (file, Math.Max (1, line), Math.Max (1, column));
 
212
                                var project = WorkspaceObject as Project;
 
213
                                if (doc != null && project != null)
 
214
                                        doc.Project = project;
212
215
                        } else if (parentObject != null) {
213
216
                                Pad pad = IdeApp.Workbench.GetPad<ProjectSolutionPad> ();
214
217
                                ProjectSolutionPad spad = pad.Content as ProjectSolutionPad;