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

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/AssemblyNodeBuilder.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:
91
91
                        result.AppendLine ();
92
92
                }
93
93
                
94
 
                static string GetTypeString (AssemblyKind kind)
 
94
                static string GetTypeString (ModuleKind kind)
95
95
                {
96
96
                        switch (kind) {
97
 
                        case AssemblyKind.Console:
 
97
                        case ModuleKind.Console:
98
98
                                return GettextCatalog.GetString ("Console application");
99
 
                        case AssemblyKind.Dll:
 
99
                        case ModuleKind.Dll:
100
100
                                return GettextCatalog.GetString ("Library");
101
 
                        case AssemblyKind.Windows:
 
101
                        case ModuleKind.Windows:
102
102
                                return GettextCatalog.GetString ("Application");
103
103
                        }
104
104
                        return GettextCatalog.GetString ("Unknown");
114
114
                                                      compilationUnit.AssemblyDefinition.Name.FullName));
115
115
                        result.AppendLine ();
116
116
                        result.Append (String.Format (GettextCatalog.GetString ("<b>Type:</b>\t{0}"),
117
 
                                                      GetTypeString (compilationUnit.AssemblyDefinition.Kind)));
 
117
                                                      GetTypeString (compilationUnit.AssemblyDefinition.MainModule.Kind)));
118
118
                        result.AppendLine ();
119
119
                        return result.ToString ();
120
120
                }