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/AspNet | |
parent | 3d03fd1ba6f695d9146068337cb72eaabd1783b1 (diff) |
Refactored ambiences / tried to track illigal instruction.
Diffstat (limited to 'main/src/addins/AspNet')
-rw-r--r-- | main/src/addins/AspNet/MonoDevelop.AspNet.Mvc/Gui/AddViewDialog.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/addins/AspNet/MonoDevelop.AspNet.Mvc/Gui/AddViewDialog.cs b/main/src/addins/AspNet/MonoDevelop.AspNet.Mvc/Gui/AddViewDialog.cs index 336ee823ae..3e1bebcefd 100644 --- a/main/src/addins/AspNet/MonoDevelop.AspNet.Mvc/Gui/AddViewDialog.cs +++ b/main/src/addins/AspNet/MonoDevelop.AspNet.Mvc/Gui/AddViewDialog.cs @@ -272,14 +272,15 @@ namespace MonoDevelop.AspNet.Mvc.Gui class TypeDataProvider : DropDownBoxListWindow.IListDataProvider { + ITypeResolveContext ctx; Ambience ambience; public List<ITypeDefinition> List { get; private set; } public TypeDataProvider (MonoDevelop.Projects.DotNetProject project) { - var dom = TypeSystemService.GetContext (project); - List = new List<ITypeDefinition> (dom.GetTypes ()); + ctx = TypeSystemService.GetContext (project); + List = new List<ITypeDefinition> (ctx.GetTypes ()); this.ambience = AmbienceService.GetAmbience (project.LanguageName); } @@ -292,7 +293,7 @@ namespace MonoDevelop.AspNet.Mvc.Gui public string GetMarkup (int n) { - return ambience.GetString (List[n], OutputFlags.IncludeGenerics | OutputFlags.UseFullName | OutputFlags.IncludeMarkup); + return ambience.GetString (ctx, (IEntity)List[n], OutputFlags.IncludeGenerics | OutputFlags.UseFullName | OutputFlags.IncludeMarkup); } public Gdk.Pixbuf GetIcon (int n) |