Bug 98327 [misc] File not saved on disk after "resave" editor context
N20060604-0010 - create project, package, A.java - open A.java in editor - go to OS explorer - delete A.java on disk - go back to workbench and activate editor observe: you get a dialog asking you whether you want to save the content - say yes observe: the dialog claims that the file exists. Strange, since I just deleted it. Say yes for override observe: the file doesn't end up on disk. You get an editor that the file doesn't exist.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java
private IProblem fProblem;
			private Image fImage;
			private boolean fQuickFixImagesInitialized= false;
			private int fLayer= IAnnotationAccessExtension.DEFAULT_LAYER;
			public ProblemAnnotation(IProblem problem, ICompilationUnit cu) {
				fProblem= problem;
				fCompilationUnit= cu;
				if (JavaSpellingReconcileStrategy.SPELLING_PROBLEM_ID == fProblem.getID()) {
					setType(SPELLING_ANNOTATION_TYPE);
					fLayer= WARNING_LAYER;
				} else if (IProblem.Task == fProblem.getID()) {
					setType(JavaMarkerAnnotation.TASK_ANNOTATION_TYPE);
					fLayer= TASK_LAYER;
				} else if (fProblem.isWarning()) {
					setType(JavaMarkerAnnotation.WARNING_ANNOTATION_TYPE);
					fLayer= WARNING_LAYER;
				} else if (fProblem.isError()) {
					setType(JavaMarkerAnnotation.ERROR_ANNOTATION_TYPE);
					fLayer= ERROR_LAYER;
				} else {
					setType(JavaMarkerAnnotation.INFO_ANNOTATION_TYPE);
					fLayer= INFO_LAYER;
				}
			}
			/*
			 * @see org.eclipse.jface.text.source.IAnnotationPresentation#getLayer()
			 */
			public int getLayer() {
				return fLayer;
			}