[MonoDevelop] Removing SourceEditor{View, Buffer} dependancy
from CompletionListWindow.
Lluis Sanchez
lluis at ximian.com
Fri Jun 17 06:04:39 EDT 2005
El dj 16 de 06 del 2005 a les 20:29 -0700, en/na Peter Johanson va
escriure:
> Hey all,
>
> In my quest to get code completion for the boo shell in the boo addin
> working, I've need to refactor a lot of the CompletionListWindow stuff
> to remove the dependancy on SourceEditor{View,Buffer}. Ultimately, I
> think the completion window stuff should be moving to somewhere in the
> MD core somewhere, so any addin can take advantage of it.
>
> Right now, the change requires that people use a normal Gtk.TextView in
> conjunction with the CompletionListWindow. Do people find this
> reasonable? Do we want to try to abstract this out into a usable
> interface that people can implement for arbitrary things?
Making it independent from SourceEditor is a first step, but we
certainly need to be independent from TextView as well. For example, it
would be nice to have completion in a text entry, which could be used in
a "Go to declaration" dialog, or an "Add watch" dialog.
Of course, we should be able to reuse the completion window if we decide
to switch to another text editor.
I think the best solution is to define an adaptor interface for code
completable editors, and provide an implementation for Gtk.TextView
(which could be used by the main editor and the boo shell). We can later
write adaptors for other editors when needed. This code could go to
MonoDevelop.Base/Gui.
>
> No changelog entry included in the patch, as I'm mainly interested in
> feedback or problems with the changes, so I can refine this more.
>
> -pete
>
> PS - A taste of what I mean when I say completion for the boo shell:
> http://www.tenslashsix.com/images/md-boo/md-boo-shell-completion1.png
>
More information about the Monodevelop-list
mailing list