Bug 22281 Notify user explicity when trying to type in a read-only editor
If you have a binary class that has attached source and you try to edit the file there is no indication that this file is read only in the editor. This may confuse many users. (like me) There should be some kind of notification that this file is read only. (Maybe as a line at bottom of the editor, or in the status bar, or an infopop that automatically comes up when you start to type, or in the editor's title (but this won't work as well since it can be obscured by other editor tabs))
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditor.java
}
			private void updateCodeView(StyledText styledText, IClassFile classFile) {
				String content= null;
				int flags= IClassFileReader.FIELD_INFOS | IClassFileReader.METHOD_INFOS | IClassFileReader.SUPER_INTERFACES | IClassFileReader.METHOD_BODIES;
				IClassFileReader classFileReader= ToolFactory.createDefaultClassFileReader(classFile, flags);
				if (classFileReader != null) {
					IClassFileDisassembler disassembler= ToolFactory.createDefaultClassFileDisassembler();
					content= disassembler.disassemble(classFileReader, "\n"); 
				}
				styledText.setText(content == null ? "" : content); 
			}
		}
		/**
		 *  Updater that takes care of minimizing changes of the editor input.
		 */
		private class InputUpdater implements Runnable {
			
			private boolean fPosted= false;
			
			private IClassFileEditorInput fClassFileEditorInput;
			public InputUpdater() {
			}
			/*
			 * @see Runnable#run()
			 */
			public void run() {
				IClassFileEditorInput input;
				synchronized (this) {
					input= fClassFileEditorInput;
				}