| Summary: | Override indicator is not shown when file is opened from CVS/git history | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Andrew Gvozdev <angvoz.dev> |
| Component: | cdt-editor | Assignee: | Project Inbox <cdt-editor-inbox> |
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> |
| Severity: | normal | ||
| Priority: | P3 | CC: | kosashi, malaperle, mober.at+eclipse, yevshif, zeratul976 |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=483386 | ||
| Whiteboard: | |||
|
Description
Andrew Gvozdev
Many features are not available like Outline, marking occurrences, hyperlinks, etc. This could be a more general problem. I tried opening a java file from the git history and the majority of the editor features worked. It seems JDT handles this by creating a "fake" compilation unit, see CompilationUnitDocumentProvider.createFakeCompiltationUnit. I have started porting the code blindly to CDT, I'm not sure how far I'll get. CQ:WIND00275014 See also bug 483386, which is a similar request for semantic highlighting. I wrote some analysis in bug 483386 comment 2.(In reply to Marc-André Laperle from comment #2) (In reply to Marc-André Laperle from comment #2) > It seems JDT handles this by creating a "fake" compilation unit, see > CompilationUnitDocumentProvider.createFakeCompiltationUnit. I have started > porting the code blindly to CDT, I'm not sure how far I'll get. Do you have some work in progress to share, in case someone would like to pick this up? (In reply to Nathan Ridge from comment #5) > (In reply to Marc-André Laperle from comment #2) > > It seems JDT handles this by creating a "fake" compilation unit, see > > CompilationUnitDocumentProvider.createFakeCompiltationUnit. I have started > > porting the code blindly to CDT, I'm not sure how far I'll get. > > Do you have some work in progress to share, in case someone would like to > pick this up? Unfortunately, this was a long time ago and I don't have the work any more. But there was not that much value to it as it was mostly copy/pasted code from JDT with tons of unresolved errors. I think looking at CompilationUnitDocumentProvider.createFakeCompiltationUnit is still a valid place to start. |