@Override
protected IDocument createDocument(Object element) throws CoreException {
if (element instanceof FileEditorInput) {
FileDocumentProvider fileProvider = new FileDocumentProvider();
IDocument res = fileProvider.getDocument(element);
fileProvider.connect(element);
res = fileProvider.getDocument(element);
return res;
}
if (element instanceof ModelingProjectEditorInput) {