Bug 23440 save on TextEditor not call validateEdit ?
SaveAs by pressing close button not call validateEdit. Here is how-to : 1. Open a checked-out file by TextEditor 2. Make changes on it. So editor is marked as modified. 3. Check-in a file on Naviator, so the file is checked in. 4. Close editor. 5. Editor askes to see if the file needs to be saved. This dialog is ok. No problem. However, if yes is selected, the file is automatically checked out or save is failed. ( This depends on prefs value ) This is very confusing. Why "open checkout" option is not available in prefs ? In another words, does editor need to call validateEdit in this situation ? Need clear design on this. .
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
*/
public class CompilationUnitEditor extends JavaEditor implements IJavaReconcilingListener {
	/** 
	 * Text operation code for requesting correction assist to show correction
	 * proposals for the current position. 
	 */
	public static final int CORRECTIONASSIST_PROPOSALS= 50;
	/** 
	 * Text operation code for requesting common prefix completion. 
	 */
	public static final int CONTENTASSIST_COMPLETE_PREFIX= 60;
	
	interface ITextConverter {
		void customizeDocumentCommand(IDocument document, DocumentCommand command);
	}
	
	class AdaptedSourceViewer extends JavaSourceViewer  {
				
		private List fTextConverters;
		private boolean fIgnoreTextConverters= false;
		private JavaCorrectionAssistant fCorrectionAssistant;
		
		public AdaptedSourceViewer(Composite parent, IVerticalRuler verticalRuler, IOverviewRuler overviewRuler, boolean showAnnotationsOverview, int styles, IPreferenceStore store) {
			super(parent, verticalRuler, overviewRuler, showAnnotationsOverview, styles, store);
		}
				
		public IContentAssistant getContentAssistant() {
			return fContentAssistant;
		}