Bug 66923 [typing]Can delete word (Ctrl-Backspace) on read only file
When you open read-only java file, all editing functions are disabled except deleting with Ctrl-Backspace and Ctrl-Del, then it is imposible to save this file. On simple text file it works ok - it blocks all edditing functions (including Ctrl-Backspace). I am using build 200406111814
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
return;
				}
				
				
				OccurrencesFinder finder = new OccurrencesFinder(binding);
				message= finder.initialize(astRoot, selection.getOffset(), selection.getLength());
				if (message == null)
					matches= finder.perform();
			} else if (!fMarkMethodExitPoints) {
				if (!fStickyOccurrenceAnnotations)
					removeOccurrenceAnnotations();
				return;
			}
		} else if (!fMarkExceptionOccurrences) {
			if (!fStickyOccurrenceAnnotations)
				removeOccurrenceAnnotations();
			return;
		}
		
		Position[] positions= new Position[matches.size()];
		int i= 0;
		for (Iterator each= matches.iterator(); each.hasNext();) {
			ASTNode currentNode= (ASTNode)each.next();
			positions[i++]= new Position(currentNode.getStartPosition(), currentNode.getLength());
		}
		
		fOccurrencesFinderJob= new OccurrencesFinderJob(document, positions, selection);