IEditorConnector editorConnector = EditorConnectorManager.getInstance()
.getEditorConnectorForExtension(file.getFileExtension());
if (editorConnector == null)
return null;
ITutorialDocument document = editorConnector.loadDocument(file);
if (document == null)
return null;
return new Tuple<ITutorialDocument, IEditorConnector>(document,