package com.codenvy.ide.ext.datasource.client.sqleditor;

import com.codenvy.ide.api.editor.CodenvyTextEditor;
import com.codenvy.ide.api.editor.DocumentProvider;
import com.codenvy.ide.api.editor.EditorPartPresenter;
import com.codenvy.ide.api.editor.EditorProvider;
import com.codenvy.ide.api.notification.NotificationManager;
import com.google.inject.Inject;
import com.google.inject.Provider;

public class SqlEditorProvider implements EditorProvider {

    private final DocumentProvider            documentProvider;

    private final Provider<CodenvyTextEditor> editorProvider;

    private final NotificationManager         notificationManager;

    @Inject
    public SqlEditorProvider(final DocumentProvider documentProvider,
                             final Provider<CodenvyTextEditor> editorProvider,
                             final NotificationManager notificationManager) {
        this.documentProvider = documentProvider;
        this.editorProvider = editorProvider;
        this.notificationManager = notificationManager;
    }

    @Override
    public EditorPartPresenter getEditor() {
        CodenvyTextEditor textEditor = editorProvider.get();
        textEditor.initialize(new SqlEditorConfiguration(), documentProvider, notificationManager);
        return textEditor;
    }

}

@@ -197,26 +197,21 @@
 .EditorP
-artPresent
+rovid
 er;%0Aimpo
@@ -236,36 +236,45 @@
 .api.editor.
+Text
 EditorP
-rovid
+artPresent
 er;%0Aimport c
@@ -322,24 +322,64 @@
 ionManager;%0A
+import com.codenvy.ide.util.loging.Log;%0A
 import com.g
@@ -1114,16 +1114,20 @@
  public 
+Text
 EditorPa
@@ -1148,24 +1148,108 @@
 tEditor() %7B%0A
+        Log.info(SqlEditorProvider.class, %22New instance of SQL editor requested.%22);%0A
         Code

Change actual return type of SQL editor provider