extending c# editor

Hi,

I want to make a vs package for am AOP tool. Wat I'm interested in is in displaying in a tool window what aspects apply to the file it's being edited.

I would like it to be something like the "class view" in visual studio but displaying something else. I don't know how to connect the editor with the toolbox, to catch events as editing or saving.

I don't want to make a custom editor, because it's intended tu use with the c# editor, maybe extending this editor

 

Thanks, Diego



Answer this question

extending c# editor

  • Justin Lee

    DTE is a service provider, so you will QS for SID_DTE with an interface of IID_DTE2, then call the Events2 property and connect to the event that you want.

    Craig



  • Darko01

    There is no way for you to derive from the C# editor, but you can use events fired by the automation model (DocumentEvents) to see when a document is open, TextDocumentKeyPressEvents to see when the buffer is modified and reflect those changes to your tool window, etc.

    Craig



  • Katee

    I'm new to visual studio SDK, how do I get a reference to the objects wich fire these events
    (I'm extending  visual  studio 2005 and using SDK  october 2005)

    Diego.

  • extending c# editor