[MonoDevelop] Coordinate system refactoring
Michael Hutchinson
m.j.hutchinson at gmail.com
Mon Jul 19 11:20:28 EDT 2010
On Mon, Jul 19, 2010 at 4:13 AM, Mike Krüger <mkrueger at novell.com> wrote:
> What I want:
>
> To be able to write:
>
> Caret.Location = member.Location.
>
> Instead of:
> Caret.Location = new DocumentLocation (member.Location.Line - 1,
> member.Location.Column - 1);
>
> And no confusion in the coordine systems in 'other parts of the IDE'.
>
> What we need:
> + A reference to Mono.TextEditor from Mono.Core & replacing DomLocation
> with DocumentLocation
I thought we were disallowing GTK refs in MonoDevelop.Core...
My suggestion would be to make DomLocation 0-based and to add an
implicit cast both ways between DocumentLocation and DomLocation.
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Monodevelop-list
mailing list