/*******************************************************************************
 * Copyright (c) 2014 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/
package com.codenvy.ide.editor.codemirror.client;

import javax.inject.Inject;

import com.codenvy.ide.Resources;
import com.codenvy.ide.dto.DtoFactory;
import com.codenvy.ide.editor.common.client.texteditor.EditorWidgetFactory;
import com.codenvy.ide.editor.common.client.texteditor.EmbeddedTextEditorPartView;
import com.codenvy.ide.editor.common.client.texteditor.EmbeddedTextEditorPartViewImpl;
import com.codenvy.ide.editor.common.client.texteditor.EmbeddedTextEditorViewFactory;

public class CodeMirrorTextEditorViewFactory implements EmbeddedTextEditorViewFactory {

    @Inject
    private EditorWidgetFactory<CodeMirrorEditorWidget> widgetFactory;


    @Override
    public EmbeddedTextEditorPartView createTextEditorPartView(final Resources resources, DtoFactory dtoFactory) {
        return new EmbeddedTextEditorPartViewImpl<CodeMirrorEditorWidget>(this.widgetFactory);
    }
}

@@ -617,56 +617,56 @@
 ide.
-Resources;%0Aimport com.codenvy.ide.dto.DtoFactory
+editor.common.client.filetype.FileTypeIdentifier
 ;%0Aim
@@ -1168,16 +1168,104 @@
 actory;%0A
+    @Inject%0A    private FileTypeIdentifier                          fileTypeIdentifier;%0A
 %0A%0A    @O
@@ -1339,56 +1339,8 @@
 iew(
-final Resources resources, DtoFactory dtoFactory
 ) %7B%0A
@@ -1431,16 +1431,41 @@
 tFactory
+, this.fileTypeIdentifier
 );%0A    %7D

Update the factory after common js editor change