ITextEditor editor= fEditor;
if (prov instanceof IStorageDocumentProvider && inp instanceof IStorageEditorInput) {
IStorageEditorInput input= (IStorageEditorInput) inp;
IStorageDocumentProvider provider= (IStorageDocumentProvider) prov;
if (doc == null)
if (force || fDocumentRead)
doc= new Document();
else