[MonoDevelop] Using binding Ambiences

Alejandro Serrano trupill at yahoo.es
Thu Jun 8 15:03:43 EDT 2006


Hi,
I've been looking for the reason that makes Completion window show 
members always as if the loaded binding was CSharp (I mean, showing 
"string Clone ()" even in VB binding). I subclassed AbstractAmbience, 
added to the add-in xml, but it does not matter: both VB, Boo and any 
other binding continue showing it as in C#.
I thought it would be a matter in CompletionData.cs, but then I saw in 
Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Ambience this piece 
of code:

"        public AmbienceReflectionDecorator CurrentAmbience {
            get {
                string language = 
Runtime.Properties.GetProperty(ambienceProperty, "CSharp");
                AmbienceReflectionDecorator ard = 
(AmbienceReflectionDecorator) ambiences [language];
                if (ard == null) {
                    ard = new 
AmbienceReflectionDecorator((IAmbience)Runtime.AddInService.GetTreeNode("/SharpDevelop/Workbench/Ambiences").BuildChildItem(language, 
this));
                    ambiences [language] = ard;
                }
                return ard;
            }
        } "

It seems that it is always getting "CSharp" from the ambienceProperty. 
Can anyone point me on the right direction to solve it or rewriting it 
fro working OK?

Thanks in advance,
Alejandro Serrano

		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com


More information about the Monodevelop-list mailing list