473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CodeModelEvents available for C# also?

Is it possible to intercept changes in the CodeModel of a C# project
I found the (late-bound) CodeModelEvents object and connect to it as follows

codeModelEvents = (Microsoft.VisualStudio.VCCodeModel.CodeModelEvent s)DTE.Events.GetObject("CodeModelEvents")
codeModelEvents.Added += new Microsoft.VisualStudio.VCCodeModel._dispCodeModelE vents_AddedEventHandler(OnCodeModelAdded)
codeModelEvents.Changed += new Microsoft.VisualStudio.VCCodeModel._dispCodeModelE vents_ChangedEventHandler(OnCodeModelChanged)
codeModelEvents.Removed += new Microsoft.VisualStudio.VCCodeModel._dispCodeModelE vents_RemovedEventHandler(OnCodeModelRemoved)

(note i'm keeping the reference to codeModelEvents
however, the event handlers never get called when i'm making changes to a C# project i've loaded with my addin active. I suspect this event source works with C++ projects only (as the namespace name suggests). Is this true? Is there any means to get updated about C# code model changes? The class browser gets updated as you change class and/or method names, so i suspect there must be any events emitted by the code model

Thoma
Nov 15 '05 #1
0 1242

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Zac | last post by:
I've been googling all day and I haven't seen anyone else having this problem, so I thought I'd check to see if I'm unique or I should be expecting this behavior. I've recompiled and reinstalled...
4
by: Rick Thomas | last post by:
http://wingide.com/wingide
0
by: Anthony Baxter | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Due to a goof in the packaging scripts, the Windows installer that was released on Friday for 2.4a3 broke file associations for .py files. There's...
7
by: mr_burns | last post by:
hi, in html, how do i create a pop up description box for text. i want, in the same way that when you write the image alt tag and the user rolls the cursor over the image a pop up box appears,...
2
by: Jukka K. Korpela | last post by:
(Discussion started in c.i.w.a.h. under Subject "image alt style pop up for text", now changed to discussing the use of a title="..." attribute to create a popup info text, and how to make it...
0
by: Nikki Locke | last post by:
Archive-name: C++-faq/libraries/part1 Comp-lang-c++-archive-name: C++-faq/libraries/part1 Available C++ Libraries FAQ =========================== Introduction ~~~~~~~~~~~~ Dos and don'ts -...
7
by: Office Drone | last post by:
I'm a bit confused about memory usage, and for some reason I wasn't able to find a single point-of-call to get the amount of memory available. If we take, for instance, the Windows platform: ...
5
by: radek jedrasiak | last post by:
Hi all, this is about an idea for a language feature. Any feedback welcome. To start with: This is about a language feature, which would allow to filter the set of available members of a...
3
by: Juan R. | last post by:
In http://canonicalscience.blogspot.com/2006/04/scientific-language-canonml-is.html] I presented some generic requirements for a markup language for science and mathematics. Basic features of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.