[MonoDevelop] Generics support - Part 2 (PATCH)

Matej Urbas matej.urbas at gmail.com
Fri Jul 28 08:07:26 EDT 2006

On Mon, 2006-07-24 at 13:58 +0200, Lluis Sanchez wrote:
> > To solve this, I suggest the following (a short term solution):
> > 
> > - we introduce a new method in IAmbience - namely 'string
> > ConvertName(IClass)', which only removes the suffix and perhaps adds the
> > generic parameters (e.g.: enclosed in '<' and '>' for C#).
> I think that by providing the correct ConversionFlags combination we can
> already get this text using the existing 'Convert' method. And if not,
> maybe we should add new flags.

I have introduced a new flag, namely 'ShowGenericParameters'. I have
changed CSharpAmbience.cs to use it and it does just what we would

> > 
> > - we introduce a new property in the CodeCompletionWindow which contains
> > the correct 'completionString'. Now, it seems, that MonoDevelop uses the
> > string which is used in the code completion popup to display names, but
> > the problem is that characters '<' and '>' get replaced by '&lt;' and
> > '&gt;' - which makes no sense in the SourceEditor...
> This looks like a bug. I don't see the need of using the pango formatted
> text in the completion window. We should check what's wrong there.

Yup. Check out the attached patch and you'll see where the problem was
(ListWindow.cs). But do we really have to use a Pango.Layout for this?

Besides generics, I've been playing with the WelcomePage a little.
Actually, I would like to change the welcome page to that it will not
use XSL files anymore, but would rather draw a widget that would look
just as well (or even better) than what we have now. Such a welcome page
would give us greater freedom of i18n and user interaction. Hell, we
could even use Cairo to draw some fancy stuff (with shadows - yummy!)
and perhaps include some 3D animation as well :D Oh, and don't forget
about the new logo! Yummy!

Oh, apropos, I really like the 3D logo (that wrist workout thingy) :D I
forgot who did it... but it really looks nice.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MonoDevelop-Generics-Part3.diff
Type: text/x-patch
Size: 25201 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20060728/51df4455/attachment-0001.bin 

More information about the Monodevelop-list mailing list