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

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DisplayBinding.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:
31
31
using MonoDevelop.Ide.Codons;
32
32
using MonoDevelop.Ide.Gui;
33
33
using MonoDevelop.Core;
 
34
using MonoDevelop.Projects;
34
35
 
35
36
namespace MonoDevelop.AssemblyBrowser
36
37
{
37
 
        public class AssemblyBrowserDisplayBinding : DisplayBinding
 
38
        public class AssemblyBrowserDisplayBinding : IViewDisplayBinding
38
39
        {
39
 
                public override string Name {
 
40
                public string Name {
40
41
                        get {
41
42
                                return GettextCatalog.GetString ("Assembly Browser");
42
43
                        }
43
44
                }
44
45
                
 
46
                public bool CanUseAsDefault {
 
47
                        get { return true; }
 
48
                }
 
49
                
45
50
                AssemblyBrowserViewContent viewContent = null;
46
51
                
47
52
                AssemblyBrowserViewContent GetViewContent ()
55
60
                        return viewContent;
56
61
                }
57
62
                
58
 
                public override bool CanCreateContentForMimeType (string mimeType)
 
63
                public bool CanHandle (FilePath fileName, string mimeType, Project ownerProject)
59
64
                {
60
 
                        return mimeType == "application/x-ms-dos-executable" || mimeType == "application/x-executable" || mimeType == "application/x-msdownload";
 
65
                        return mimeType == "application/x-ms-dos-executable"
 
66
                                || mimeType == "application/x-executable"
 
67
                                || mimeType == "application/x-msdownload";
61
68
                }
62
69
                
63
 
                public override IViewContent CreateContentForMimeType (string mimeType, System.IO.Stream content)
 
70
                public IViewContent CreateContent (FilePath fileName, string mimeType, Project ownerProject)
64
71
                {
65
72
                        return GetViewContent ();
66
73
                }
67
74
        }
68
 
}
 
75
}
 
 
b'\\ No newline at end of file'