Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] CElements adapting to IResource

Hi,
currently most of the CElements can be adapted to IResources. This makes
perfectly sense for translation units, folders or projects. However, it
is problematic for others as the context menu of classes, functions,
vars,
etc. gets populated with actions that apply for files, only. 
For example select a function in the CView and choose 'Delete' from
the context menu. This deletes the entire file.

I plan to change that. Doing so it is possible that I break code that
obtains the enclosing resource from an ICElement by means of the
adaptable
mechanism rather than using a direct call to ICElement.getResource().
I believe we have enough time until 4.0 to find all related problems and

fix them.

Is that ok for you?
Markus.



Back to the top