Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CElementInfo data lost in CElement

> I am querying and caching the project ICElements in my app. From time to 
> time whenever a change is made to the project (in terms of changes to the 
> CPP source), I see in the getelementInfo call of CElement that the 
> CElementInfo is  null and hence a new CElementInfo object is created and 
> returned. This new info object doesn't contain certain data I am looking 
> for (like source info ). 
> 
> How to get access to the newly created CElements? Or is there a way to 
> update the info object contents correctly using a CDT utility? 

Perhaps you can try to use an IElementChangedListener that can be
installed using:
  CoreModel.getDefault().addElementChangedListener(listener)
this might give you a chance to keep ICElements up-to-date.

-- Wieant


Back to the top