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 final IClassFile fFile;
			private ScrolledComposite fScrolledComposite;
			private Color fBackgroundColor;
			private Color fForegroundColor;
			private Color fSeparatorColor;
			private List fBannerLabels= new ArrayList();
			private List fHeaderLabels= new ArrayList();
			private Font fFont;
			/**
			 * Creates a source attachment form for a class file.
			 */
			public SourceAttachmentForm(IClassFile file) {
				fFile= file;
			}
			/**
			 * Returns the package fragment root of this file.
			 */
			private IPackageFragmentRoot getPackageFragmentRoot(IClassFile file) {
				IJavaElement element= file.getParent();
				while (element != null && element.getElementType() != IJavaElement.PACKAGE_FRAGMENT_ROOT)
					element= element.getParent();
				return (IPackageFragmentRoot) element;
			}
			/**
			 * Creates the control of the source attachment form.
			 */
			public Control createControl(Composite parent) {