1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

fix for bug#106064

patch from  Anton Leherbauer
This commit is contained in:
David Inglis 2006-04-26 13:24:00 +00:00
parent bdebf10e1a
commit d4ee99391a

View file

@ -62,8 +62,11 @@ public class MakefileDocumentProvider extends TextFileDocumentProvider implement
/** /**
*/ */
private IMakefile createMakefile(IFile file) { private IMakefile createMakefile(IFile file) {
if (file.exists()) {
return MakeCorePlugin.getDefault().createMakefile(file); return MakeCorePlugin.getDefault().createMakefile(file);
} }
return null;
}
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.ui.editors.text.TextFileDocumentProvider#createAnnotationModel(org.eclipse.core.resources.IFile) * @see org.eclipse.ui.editors.text.TextFileDocumentProvider#createAnnotationModel(org.eclipse.core.resources.IFile)