[MonoDevelop] CSharpCodeGenerator.AddGlobalNamespaceImport vs local

Mike Krüger mkrueger at xamarin.com
Fri Jun 22 10:17:33 UTC 2012


Hi

Not all dialogs are stetic dialogs - some are written manually and show 
designed widgets - which dialog did you try to design ?
Stetic dialogs/widgets have a this.Build () call in the constructor.

Regards
Mike
> Weird, is there anything I need to do to enable it? I'll have another 
> look but I couldn't figure out how to open it when I was on the 
> dialog, and there was no right click option or anything.
>
> On 22 Jun 2012, at 09:44, "Mike Krüger" <mkrueger at xamarin.com 
> <mailto:mkrueger at xamarin.com>> wrote:
>
>> Hi
>>
>> There is no part that should require a linux machine - the gtk gui 
>> designer runs on mac os x as well.
>>
>> Regards
>> Mike
>>> Thanks mike.
>>>
>>> That's what I thought, but since it doesn't seem to, I thought I'd 
>>> double check.
>>>
>>> Anyhow, I'll go through that tutorial and see what I can do.
>>>
>>> On a related note - once I've got the code working I'll need to add 
>>> the new options to the policy dialog. Is there a way for me to do 
>>> that on my mac, or do I really need to do that part on a Linux machine?
>>>
>>> Cheers,
>>> Adam
>>>
>>> On 21 Jun 2012, at 22:27, "Mike Krüger" <mkrueger at xamarin.com 
>>> <mailto:mkrueger at xamarin.com>> wrote:
>>>
>>>> Hi
>>>>
>>>> Forget about both - try to do all document changes with the ast of 
>>>> the file.
>>>> See: 
>>>> http://mikemdblog.blogspot.de/2012/04/how-to-write-c-issue-provider.html
>>>>
>>>> Other than that the local import should add the using inside the 
>>>> namespace, if any.
>>>>
>>>> Regards
>>>> Mike
>>>>> Hi,
>>>>>
>>>>> Can anyone tell me what the difference is between 
>>>>> AddGlobalNamespaceImport and AddLocalNamespaceImport? So far I've 
>>>>> only seen a situation where AddGlobalNamespaceImport is called.
>>>>>
>>>>> If I alter the code to call AddLocalNamespaceImport instead (just 
>>>>> to see what it produces), it seems to place the using statement in 
>>>>> the same place, but it indents it to the level as though it was 
>>>>> inside the namespace.
>>>>>
>>>>> If possible, could someone send me a quick example of what each 
>>>>> should produce?
>>>>>
>>>>> The reason I'm asking about this is that I'm wanting to add to the 
>>>>> C# policy so that you can get it to conform to StyleCop rules 
>>>>> since that's what I normally use.
>>>>>
>>>>> Cheers,
>>>>> Adam
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Monodevelop-list mailing list
>>>>> Monodevelop-list at lists.ximian.com
>>>>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Monodevelop-list mailing list
>>> Monodevelop-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com 
>> <mailto:Monodevelop-list at lists.ximian.com>
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20120622/45a44cc7/attachment-0001.html>


More information about the Monodevelop-list mailing list