# HG changeset patch # User ryall # Date 1240353662 18000 # Node ID 648636cfa8496aae56f43e21d4368d2ae461dff2 # Parent 185d5fe9a600a67fa7d6b8ccc9711eb660c31500 Syns with CDT HEAD diff -r 185d5fe9a600 -r 648636cfa849 cdt/cdt_5_0_x/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java --- a/cdt/cdt_5_0_x/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java Mon Apr 06 09:15:05 2009 -0500 +++ b/cdt/cdt_5_0_x/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDebugModelPresentation.java Tue Apr 21 17:41:02 2009 -0500 @@ -177,10 +177,15 @@ // open the file from the breakpoints view it opens in the // proper editor. IProject project = b.getMarker().getResource().getProject(); - ICProject cproject = CoreModel.getDefault().create(project); - String id = CoreModel.getRegistedContentTypeId(project, path.lastSegment()); - ExternalTranslationUnit tu = new ExternalTranslationUnit(cproject, URIUtil.toURI(path), id); - return new ExternalEditorInput( tu, new LocalFileStorage( fsfile ) ); + if (project != null) + { + ICProject cproject = CoreModel.getDefault().create(project); + String id = CoreModel.getRegistedContentTypeId(project, path.lastSegment()); + ExternalTranslationUnit tu = new ExternalTranslationUnit(cproject, URIUtil.toURI(path), id); + return new ExternalEditorInput( tu, new LocalFileStorage( fsfile ) ); + } + else + return new FileEditorInput( file ); } } }