[MonoDevelop] ChangeLogAddIn
Lluis Sanchez
lluis at ximian.com
Wed Dec 14 19:07:16 EST 2005
El mié, 14-12-2005 a las 23:56 +0100, Jacob Ilsø Christensen escribió:
> Hi.
>
> Thanks for the IEditableTextBuffer tip. I cannot make it insert text
> at the current cursor position though. I tried using the SelectedText
> property (as that was the only one I could find) but it always inserts
> in the top of the file when nothing is selected. How do I insert text
> at the cursor position?
You can do something like:
IEditableTextBuffer b = ...
b.InsertText (b.CursorPosition, "hello");
>
> /Jacob
>
> On 12/14/05, Lluis Sanchez <lluis at ximian.com> wrote:
> Hi,
>
> You should avoid depending on MonoDevelop.SourceEditor. You
> can insert
> text to the editor by casting document.Content to
> IEditableTextBuffer,
> which is independent from the editor, so if the editor changes
> in the
> future your add-in will work without changes.
>
> Other than that, it's ok to me.
>
> Thanks!
> Lluis.
>
> El lun, 05-12-2005 a las 22:22 +0100, Jacob Ilsø Christensen
> escribió:
> > Hi.
> >
> > I have written a small ChangeLogAddIn. The current
> functionality is to
> > add a new entry to a ChangeLog file.
> > It is invoked from the Edit menu and will only work if the
> currently
> > open file is a ChangeLog file.
> > The name and email used can be configured via the
> preferences as
> > usual.
> > Will someone try it out and let me know if this is something
> I can
> > commit?
> >
> > I plan to add these things later:
> >
> > * Make the preferences section a bit more pretty (gotta read
> up on
> > some gtk...) and follow the style of the other MonoDevelop
> preference
> > sections.
> > * Check the ChangeLog via mimetypes instead of just
> filename.
> > * Make it possible to select a number of files in the
> solution
> > explorer and when clicking Add ChangeLog Entry those files
> will be
> > added as well (with the correct path relative to the
> ChangeLog being
> > added to).
> > * Integration with the VersionControl AddIn. Clicking Add
> ChangeLog
> > Entry will create an entry in the currently open ChangeLog
> file and
> > add file entries for each modified file in the same
> directory and
> > subdirectories of the ChangeLog file.
> >
> > Sounds like something we could use?
> >
> > The patch file works as usual. The .tar.gz file should be
> unpacked in
> > the root dir of MonoDevelop.
> >
> > /Jacob
> > _______________________________________________
> > 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
More information about the Monodevelop-list
mailing list