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

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.DesignerSupport/MonoDevelop.DesignerSupport.Projects/ComponentNodeBuilder.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
using MonoDevelop.Ide.Gui;
6
6
using MonoDevelop.Ide.Gui.Pads;
7
7
using MonoDevelop.DesignerSupport.PropertyGrid;
 
8
using MonoDevelop.Ide.Gui.Components;
8
9
 
9
10
namespace MonoDevelop.DesignerSupport.Projects
10
11
{
41
42
                        // Don't use the CurrentNode property here since it may not be properly initialized when the event is fired.
42
43
                        ITreeNavigator nav = Tree.GetNodeAtObject (obj);
43
44
                        if (nav != null) {
44
 
                                CombineEntry ce = (CombineEntry) nav.GetParentDataItem (typeof(CombineEntry), true);
 
45
                                IWorkspaceFileObject ce = (IWorkspaceFileObject) nav.GetParentDataItem (typeof(IWorkspaceFileObject), true);
45
46
                                if (ce != null) {
46
 
                                        using (IProgressMonitor mon = IdeApp.Workbench.ProgressMonitors.GetSaveProgressMonitor (false)) {
47
 
                                                ce.Save (mon);
48
 
                                        }
 
47
                                        IdeApp.ProjectOperations.Save (ce);
 
48
                                        return;
49
49
                                }
50
50
                        }
51
51
                }