/*******************************************************************************
 * 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.jseditor.client.filetype.FileTypeIdentifier;
import com.codenvy.ide.jseditor.client.texteditor.EditorWidgetFactory;
import com.codenvy.ide.jseditor.client.texteditor.EmbeddedTextEditorPartView;
import com.codenvy.ide.jseditor.client.texteditor.EmbeddedTextEditorPartViewImpl;
import com.codenvy.ide.jseditor.client.texteditor.EmbeddedTextEditorViewFactory;

public class CodeMirrorTextEditorViewFactory implements EmbeddedTextEditorViewFactory {

    @Inject
    private EditorWidgetFactory<CodeMirrorEditorWidget> widgetFactory;
    @Inject
    private FileTypeIdentifier                          fileTypeIdentifier;


    @Override
    public EmbeddedTextEditorPartView createTextEditorPartView() {
        return new EmbeddedTextEditorPartViewImpl<CodeMirrorEditorWidget>(this.widgetFactory, this.fileTypeIdentifier);
    }
}

@@ -586,24 +586,82 @@
 ct.Inject;%0A%0A
+import com.codenvy.ide.jseditor.client.JsEditorConstants;%0A
 import com.c
@@ -1289,16 +1289,94 @@
 tifier;%0A
+    @Inject%0A    private JsEditorConstants                           constants;
 %0A%0A    @O
@@ -1567,16 +1567,27 @@
 entifier
+, constants
 );%0A    %7D

Add a constants parameter to the view factory