| Summary: | Empty editor content for unavailable file resources when debugger steps into those source files | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Teodor Madan <teodor.madan> | ||||
| Component: | cdt-debug | Assignee: | cdt-debug-inbox <cdt-debug-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Ken Ryall <ken.ryall> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cdtdoug, pawel.1.piech | ||||
| Version: | 7.0 | ||||||
| Target Milestone: | 8.0 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Teodor Madan
Created attachment 192349 [details]
Fix
1) Fix SourceUtils.updateUnavailableResources(IFile[], IProject) to check for IFile resources to be available, if not then replace IFile handlers with ITranslationUnit objects
2)CDebugModelPresentation.getEditorInput(Object) return ExternalEditorInput for resources that are not accessible
3) AbstractToggleBreakpointAdapter.getResource(IWorkbenchPart) check for marker resource being available.
Also, not directly related, but reveled during testing
4) CompilationDirectorySourceContainer.findSourceElements(String) was throwing "UnsupportedOperationException" when having checked "Search for duplicates" and "Subdirectories are also used for compilation"
committed to HEAD *** cdt cvs genie on behalf of tmadan *** Bug 341607 - Empty editor content for unavailable file resources when debugger steps into those source files [*] AbstractToggleBreakpointAdapter.java 1.2 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/AbstractToggleBreakpointAdapter.java?root=Tools_Project&r1=1.1&r2=1.2 [*] CDebugModelPresentation.java 1.41 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java?root=Tools_Project&r1=1.40&r2=1.41 [*] SourceUtils.java 1.18 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/SourceUtils.java?root=Tools_Project&r1=1.17&r2=1.18 [*] CompilationDirectorySourceContainer.java 1.4 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CompilationDirectorySourceContainer.java?root=Tools_Project&r1=1.3&r2=1.4 *** cdt cvs genie on behalf of tmadan *** Bug 341607 - Fixed potential NPE when director is null [*] SourceUtils.java 1.19 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/SourceUtils.java?root=Tools_Project&r1=1.18&r2=1.19 |