From: Baptiste L. <gai...@fr...> - 2003-05-15 19:24:44
|
Well, I'm nearly done with the VS7 add-ins. Rename locale variable is working like a charm ;-). The nice thing is that you even get the name of the variable that was renamed in the undo combobox. The refactoring is undone/redone in a single step. The implementation of TextDocument use EditPoint instead of the user selection (TextSelection). Those allow text buffer manipulation without impacting the 'view' (no scroll, no selection being changed...) Visual Object model is fairly flexible (though the documentation could use improvement). The only weird thing I found concerns absolute character offset returned by the IDE and the text returned for a given range. The text is returned with '\r\n' at the end of each line, but only one character is counted for an end of line !!! I solved this by stripped '\r' from the text returned by the getText() like methods. Baptiste. ----- Original Message ----- From: "Baptiste Lepilleur" <gai...@fr...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Wednesday, May 14, 2003 9:59 PM Subject: [Cpptool-develop] Add-in for Visual Studio .Net 202 (vc 7.0) > I'm currently working on the add-in for vc7. It took me a while to get > started. The template code generated by the wizard is really bad (It stink > like hell ;-) ). Would you believe they used macro that did goto when a COM > function returned an error :-(. > > What I have now is command register in a 'Refactoring' menu, and a > toolbar created. The icon for the toolbar are located in what is called a > 'satellite dll' (a pure resource dll). The magic that update the registry > when the add-in is registered live in Connect::UpdateRegistry. > > I have a working implementation of TextDocument for VC7 (its character > offset based, not line based). Also, VC7 provides an UndoContext that can be > used to undo multiple action in a single step (the cool things is that you > can give it a name that appears in the combo). > > I'll tackle the command implementation soon. > > Baptiste. > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Cpptool-develop mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cpptool-develop > |