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

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/GuiBuilderView.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-02-02 11:39:59 UTC
  • mfrom: (1.4.4 upstream)
  • mto: (1.5.1 sid)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20100202113959-n3u848nfj35yyd03
* New upstream release
* debian/control:
  + Standards version 3.8.4 (no changes needed)
* debian/patches/remove_support_for_non_debian_functionality.patch,
  debian/patches/remove_support_for_soft_debugger.patch,
  debian/patches/remove_support_for_moonlight.patch,
  debian/rules:
  + Split patch into two pieces, to make it easier to enable either
    SDB or Moonlight support with a rebuild
* debian/monodevelop-moonlight.install,
  debian/monodevelop-debugger-sdb.install,
  debian/control:
  + Create packaging data for the Soft Debugger addin and Moonlight addin -
    and comment them out of debian/control as we can't provide them on
    Debian for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
452
452
                        
453
453
                void CheckReference (ComponentToolboxNode node)
454
454
                {
455
 
                                if (node.Reference == null)
456
 
                                        return;
457
 
                                
458
 
                                ProjectReference pref;
459
 
                                
460
 
                                // If the class name includes an assembly name it means that the
461
 
                                // widget is implemented in another assembly, not in the one that
462
 
                                // has the objects.xml file.
463
 
                                int i = node.ClassName.IndexOf (',');
464
 
                                if (i != -1) {
465
 
                                        string asm = node.ClassName.Substring (i+1).Trim ();
466
 
                                        asm = gproject.Project.AssemblyContext.GetAssemblyFullName (asm, gproject.Project.TargetFramework);
467
 
                                        if (asm == null)
468
 
                                                return;
469
 
                                        if (gproject.Project.AssemblyContext.GetPackagesFromFullName (asm).Length > 0) {
470
 
                                                pref = new ProjectReference (ReferenceType.Gac, asm);
471
 
                                        } else {
472
 
                                                asm = gproject.Project.AssemblyContext.GetAssemblyLocation (asm, gproject.Project.TargetFramework);
473
 
                                                pref = new ProjectReference (ReferenceType.Assembly, asm);
474
 
                                        }
475
 
                                }
476
 
                                else
477
 
                                        pref = new ProjectReference (node.ReferenceType, node.Reference);
478
 
                                
479
 
                                foreach (ProjectReference pr in gproject.Project.References) {
480
 
                                        if (pr.Reference == pref.Reference)
481
 
                                                return;
482
 
                                }
483
 
                                gproject.Project.References.Add (pref);
 
455
                        if (node.Reference == null)
 
456
                                return;
 
457
                        
 
458
                        ProjectReference pref;
 
459
                        
 
460
                        // If the class name includes an assembly name it means that the
 
461
                        // widget is implemented in another assembly, not in the one that
 
462
                        // has the objects.xml file.
 
463
                        int i = node.ClassName.IndexOf (',');
 
464
                        if (i != -1) {
 
465
                                string asm = node.ClassName.Substring (i+1).Trim ();
 
466
                                if (asm == "gtk-sharp")
 
467
                                        // If we are adding a widget to a window, the project must already have a gtk# reference
 
468
                                        return;
 
469
                                
 
470
                                asm = gproject.Project.AssemblyContext.GetAssemblyFullName (asm, gproject.Project.TargetFramework);
 
471
                                if (asm == null)
 
472
                                        return;
 
473
                                if (gproject.Project.AssemblyContext.GetPackagesFromFullName (asm).Length > 0) {
 
474
                                        pref = new ProjectReference (ReferenceType.Gac, asm);
 
475
                                } else {
 
476
                                        asm = gproject.Project.AssemblyContext.GetAssemblyLocation (asm, gproject.Project.TargetFramework);
 
477
                                        pref = new ProjectReference (ReferenceType.Assembly, asm);
 
478
                                }
 
479
                        }
 
480
                        else
 
481
                                pref = new ProjectReference (node.ReferenceType, node.Reference);
 
482
                        
 
483
                        foreach (ProjectReference pr in gproject.Project.References) {
 
484
                                if (pr.Reference == pref.Reference)
 
485
                                        return;
 
486
                        }
 
487
                        gproject.Project.References.Add (pref);
484
488
                }
485
489
                
486
490
                Widget MonoDevelop.DesignerSupport.IOutlinedDocument.GetOutlineWidget ()