diff options
author | Mike Krüger <mkrueger@novell.com> | 2011-06-19 20:45:56 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2011-06-19 20:45:56 +0400 |
commit | 9a5746028b24fd50fd587f7cb95a8a74ff82c747 (patch) | |
tree | 1a5f11bcd8c77cb38ca7cfe124cf859a3c3594ce /main/src/addins/MonoDevelop.AssemblyBrowser | |
parent | 3d03fd1ba6f695d9146068337cb72eaabd1783b1 (diff) |
Refactored ambiences / tried to track illigal instruction.
Diffstat (limited to 'main/src/addins/MonoDevelop.AssemblyBrowser')
4 files changed, 10 insertions, 10 deletions
diff --git a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomEventNodeBuilder.cs b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomEventNodeBuilder.cs index a4c52dc762..b291bc8e9c 100644 --- a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomEventNodeBuilder.cs +++ b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomEventNodeBuilder.cs @@ -61,7 +61,7 @@ namespace MonoDevelop.AssemblyBrowser public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { var evt = (IEvent)dataObject; - label = Ambience.GetString (evt, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat); + label = Ambience.GetString (GetContent (treeBuilder), evt, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat); if (evt.IsPrivate || evt.IsInternal) label = DomMethodNodeBuilder.FormatPrivate (label); icon = ImageService.GetPixbuf (evt.GetStockIcon (), Gtk.IconSize.Menu); diff --git a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomFieldNodeBuilder.cs b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomFieldNodeBuilder.cs index ece6ac2b00..d91977843a 100644 --- a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomFieldNodeBuilder.cs +++ b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomFieldNodeBuilder.cs @@ -62,10 +62,10 @@ namespace MonoDevelop.AssemblyBrowser public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { var field = (IField)dataObject; - label = Ambience.GetString (field, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat); + label = Ambience.GetString (GetContent (treeBuilder), field, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat); if (field.IsPrivate || field.IsInternal) label = DomMethodNodeBuilder.FormatPrivate (label); - icon = ImageService.GetPixbuf (field.GetStockIcon (), Gtk.IconSize.Menu); + icon = ImageService.GetPixbuf (((IEntity)field).GetStockIcon (), Gtk.IconSize.Menu); } public override int CompareObjects (ITreeNavigator thisNode, ITreeNavigator otherNode) @@ -87,7 +87,7 @@ namespace MonoDevelop.AssemblyBrowser var field = (IField)navigator.DataItem; StringBuilder result = new StringBuilder (); result.Append ("<span font_family=\"monospace\">"); - result.Append (Ambience.GetString (field, OutputFlags.AssemblyBrowserDescription)); + result.Append (Ambience.GetString (GetContent (navigator), field, OutputFlags.AssemblyBrowserDescription)); result.Append ("</span>"); result.AppendLine (); DomMethodNodeBuilder.PrintDeclaringType (result, navigator); @@ -112,7 +112,7 @@ namespace MonoDevelop.AssemblyBrowser var field = (IField)navigator.DataItem; StringBuilder result = new StringBuilder (); result.Append ("<big>"); - result.Append (Ambience.GetString (field, OutputFlags.AssemblyBrowserDescription)); + result.Append (Ambience.GetString (GetContent (navigator), field, OutputFlags.AssemblyBrowserDescription)); result.Append ("</big>"); result.AppendLine (); diff --git a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomMethodNodeBuilder.cs b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomMethodNodeBuilder.cs index d997576223..acd4f9e79d 100644 --- a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomMethodNodeBuilder.cs +++ b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomMethodNodeBuilder.cs @@ -104,7 +104,7 @@ namespace MonoDevelop.AssemblyBrowser var method = (IMethod)navigator.DataItem; StringBuilder result = new StringBuilder (); result.Append ("<span font_family=\"monospace\">"); - result.Append (Ambience.GetString (method, OutputFlags.AssemblyBrowserDescription)); + result.Append (Ambience.GetString (GetContent (navigator), method, OutputFlags.AssemblyBrowserDescription)); result.Append ("</span>"); result.AppendLine (); PrintDeclaringType (result, navigator); @@ -216,7 +216,7 @@ namespace MonoDevelop.AssemblyBrowser var method = (IMethod)navigator.DataItem; StringBuilder result = new StringBuilder (); result.Append ("<big>"); - result.Append (Ambience.GetString (method, OutputFlags.AssemblyBrowserDescription | OutputFlags.IncludeConstraints)); + result.Append (Ambience.GetString (GetContent (navigator), method, OutputFlags.AssemblyBrowserDescription | OutputFlags.IncludeConstraints)); result.Append ("</big>"); result.AppendLine (); diff --git a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomPropertyNodeBuilder.cs b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomPropertyNodeBuilder.cs index bf1dab94bc..1fa7cbae6f 100644 --- a/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomPropertyNodeBuilder.cs +++ b/main/src/addins/MonoDevelop.AssemblyBrowser/MonoDevelop.AssemblyBrowser/DomPropertyNodeBuilder.cs @@ -63,7 +63,7 @@ namespace MonoDevelop.AssemblyBrowser public override void BuildNode (ITreeBuilder treeBuilder, object dataObject, ref string label, ref Gdk.Pixbuf icon, ref Gdk.Pixbuf closedIcon) { var property = (IProperty)dataObject; - label = Ambience.GetString (property, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat); + label = Ambience.GetString (GetContent (treeBuilder), property, OutputFlags.ClassBrowserEntries | OutputFlags.IncludeMarkup | OutputFlags.CompletionListFomat); if (property.IsPrivate || property.IsInternal) label = DomMethodNodeBuilder.FormatPrivate (label); icon = ImageService.GetPixbuf (property.GetStockIcon (), Gtk.IconSize.Menu); @@ -102,7 +102,7 @@ namespace MonoDevelop.AssemblyBrowser var property = (IProperty)navigator.DataItem; StringBuilder result = new StringBuilder (); result.Append ("<span font_family=\"monospace\">"); - result.Append (Ambience.GetString (property, OutputFlags.AssemblyBrowserDescription)); + result.Append (Ambience.GetString (GetContent (navigator), property, OutputFlags.AssemblyBrowserDescription)); result.Append ("</span>"); result.AppendLine (); DomMethodNodeBuilder.PrintDeclaringType (result, navigator); @@ -139,7 +139,7 @@ namespace MonoDevelop.AssemblyBrowser var property = (IProperty)navigator.DataItem; StringBuilder result = new StringBuilder (); result.Append ("<big>"); - result.Append (Ambience.GetString (property, OutputFlags.AssemblyBrowserDescription)); + result.Append (Ambience.GetString (GetContent (navigator), property, OutputFlags.AssemblyBrowserDescription)); result.Append ("</big>"); result.AppendLine (); |