Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-ui-dev] shall CView be updated on file-save, only or like the Outline View

Hi,
while looking at https://bugs.eclipse.org/bugs/show_bug.cgi?id=147694 
I found out that the CView displays translation units based on working
copies. Therefore initially it reflects whatever you have in your
editor,
even if it is dirty.
Unfortunately it does not listen to working-copy change notifications,
so
when you do more changes, they are not reflected in the view unless you
save the editor to disk.
This is not only inconsistent, it also causes the CView to hold invalid
elements after you close the editor (the working copy is then
destroyed).

There are two ways to resolve this issue:

A) Handle the working-copy notification
B) Display the CModel based on the content saved to disk, only.

For those interested in the discussion, please join 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=147694 

Markus.


Back to the top