[MonoDevelop] text editor patch for simple class/member selector
lluis at ximian.com
Mon Jan 8 08:19:42 EST 2007
El dt 02 de 01 del 2007 a les 18:51 +0900, en/na atsushi eno va
> Happy new year guys,
> Here is a patch for simple class/member selector to jump there in the
> text editor.
> There are some FIXMEs I put on the source, so there are chances to
> improve the patch, that I need some hints:
> - Member type icons: I need to get icons for Pixbuf column (not in
> this patch). I could find icon storage functionalitu in TreeViewPad.
> Probably I could make some refactoring and split it into [somewhere?]
> and share the same storage?
To get the icons of members you can use IdeApp.Services.Icons.GetIcon
(member). It returns the icon name to use for the provided member.
> - Better member list formatting. Is there a way to get decent format
> like "Foo(int x, int y)" to distinguish overloads, or do I need to
> implement it by myself?
Yes, you should use an MonoDevelop.Projects.Ambience.Ambience object to
properly format the members, since it provides language specific
formatting. SourceEditorView has a GetAmbience method you can use for
> - Is there already a way to get localized string for ClassType (such
> as "class" and "struct") ? I believe yes but don't know where.
> Here is a screenshot:
> Please review and/or feel free to commit it. It is somewhat functional.
What I miss in this patch is a class selector, since there can be more
than one class in the same file. It would be also very useful to always
show in the combo the member where the cursor is positioned. AFAIR
somebody provided such a patch, but I don't remember what happened to
More information about the Monodevelop-list