@@ -0,0 +1,1566 @@
+package com.codenvy.ide.ext.datasource.client.sqleditor;%0A%0Aimport com.codenvy.ide.api.ui.wizard.newresource.NewResourceProvider;%0Aimport com.codenvy.ide.ext.datasource.client.SqlEditorExtension;%0Aimport com.codenvy.ide.resources.model.File;%0Aimport com.codenvy.ide.resources.model.Folder;%0Aimport com.codenvy.ide.resources.model.Project;%0Aimport com.codenvy.ide.resources.model.Resource;%0Aimport com.google.gwt.user.client.rpc.AsyncCallback;%0Aimport com.google.inject.Inject;%0A%0Apublic class SqlResourceProvider extends NewResourceProvider %7B%0A%0A    private static final String NEW_SQL_PROVIDER_ID = %22new_sql%22;%0A%0A    @Inject%0A    public SqlResourceProvider(final SqlEditorConstants constants,%0A                               final SqlEditorResources resources) %7B%0A        super(NEW_SQL_PROVIDER_ID,%0A              constants.newSqlWizardTitle(),%0A              resources.sqlFile(),%0A              SqlEditorExtension.SQL_FILE_EXTENSION);%0A    %7D%0A%0A    @Override%0A    public void create(final String name, final Folder parent,%0A                       final Project project, final AsyncCallback%3CResource%3E callback) %7B%0A        final String filename = name + %22.%22 + getExtension();%0A        project.createFile(parent, filename, %22%22, SqlEditorExtension.GENERIC_SQL_MIME_TYPE, new AsyncCallback%3CFile%3E() %7B%0A%0A            @Override%0A            public void onFailure(final Throwable caught) %7B%0A                callback.onFailure(caught);%0A            %7D%0A%0A            @Override%0A            public void onSuccess(final File result) %7B%0A                callback.onSuccess(result);%0A            %7D%0A        %7D);%0A    %7D%0A%0A%7D%0A

Create resource provider for SQL files