~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
27
//
28
28
 
29
 
 
30
 
using System;
31
 
using MonoDevelop.Core.Gui;
32
 
using MonoDevelop.Ide.Codons;
33
29
using MonoDevelop.Ide.Gui;
34
30
using MonoDevelop.Projects;
35
31
using MonoDevelop.Projects.Dom;
36
32
using MonoDevelop.Projects.Dom.Parser;
 
33
using MonoDevelop.Ide;
37
34
 
38
35
namespace MonoDevelop.GtkCore.GuiBuilder
39
36
{
40
 
        public class GuiBuilderDisplayBinding : DefaultDisplayBinding
 
37
        public class GuiBuilderDisplayBinding : DisplayBinding
41
38
        {
42
39
                bool excludeThis = false;
43
40
                
53
50
                                return false;
54
51
                        
55
52
                        excludeThis = true;
56
 
                        IDisplayBinding db = DisplayBindingService.GetBindingForUri (fileName);
 
53
                        var db = DisplayBindingService.GetDefaultBindingForUri (fileName);
57
54
                        excludeThis = false;
58
55
                        return db != null;
59
56
                }
61
58
                public override IViewContent CreateContentForUri (string fileName)
62
59
                {
63
60
                        excludeThis = true;
64
 
                        IDisplayBinding db = DisplayBindingService.GetBindingForUri (fileName);
 
61
                        var db = DisplayBindingService.GetDefaultBindingForUri (fileName);
65
62
                        GuiBuilderView view = new GuiBuilderView (db.CreateContentForUri (fileName), GetWindow (fileName));
66
63
                        excludeThis = false;
67
64
                        return view;