/*
 * CODENVY CONFIDENTIAL
 * __________________
 *
 * [2013] - [2014] Codenvy, S.A.
 * All Rights Reserved.
 *
 * NOTICE:  All information contained herein is, and remains
 * the property of Codenvy S.A. and its suppliers,
 * if any.  The intellectual and technical concepts contained
 * herein are proprietary to Codenvy S.A.
 * and its suppliers and may be covered by U.S. and Foreign Patents,
 * patents in process, and are protected by trade secret or copyright law.
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from Codenvy S.A..
 */
package com.codenvy.ide.ext.datasource.client.sqllauncher;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class SqlRequestLauncherViewImpl extends Composite implements SqlRequestLauncherView {

    private ActionDelegate actionDelegate;

    @UiField
    AcceptsOneWidget       editorZone;

    @UiField
    AcceptsOneWidget       resultZone;

    @UiField
    Label                  selectDatasourceLabel;

    @UiField
    ListBox                datasourceList;

    @UiField
    Label                  resultLimitLabel;

    @UiField
    TextBox                resultLimitInput;

    @UiField
    Button                 executeButton;


    @Inject
    public SqlRequestLauncherViewImpl(final SqlRequestLauncherViewImplUiBinder uiBinder,
                                      final SqlRequestLauncherConstants constants) {
        initWidget(uiBinder.createAndBindUi(this));
        selectDatasourceLabel.setText(constants.selectDatasourceLabel());
        resultLimitLabel.setText(constants.resultLimitLabel());
        executeButton.setText(constants.executeButtonLabel());
    }

    @Override
    public void setDelegate(final ActionDelegate delegate) {
        this.actionDelegate = delegate;
    }

    @Override
    public void setResultLimit(int newResultLimit) {
        this.resultLimitInput.setValue(Integer.toString(newResultLimit));
    }

    @Override
    public AcceptsOneWidget getEditorZone() {
        return editorZone;
    }

    @UiHandler("executeButton")
    void handleExecuteClick(final ClickEvent e) {

    }

    interface SqlRequestLauncherViewImplUiBinder extends UiBinder<Widget, SqlRequestLauncherViewImpl> {
    }
}

@@ -1248,16 +1248,126 @@
 nject;%0A%0A
+/**%0A * Implementation of the view component of the SQL request launcher.%0A * %0A * @author %22Micka%C3%ABl Leduque%22%0A */%0A
 public c
@@ -1493,24 +1493,57 @@
 nDelegate;%0A%0A
+    /** The SQL edition zone. */%0A
     @UiField
@@ -1579,24 +1579,63 @@
 ditorZone;%0A%0A
+    /** The request result display. */%0A
     @UiField
@@ -1671,24 +1671,82 @@
 esultZone;%0A%0A
+    /** The label for the datasource selection widget. */%0A
     @UiField
@@ -1789,32 +1789,76 @@
 tasourceLabel;%0A%0A
+    /** the datasource selection widget. */%0A
     @UiField%0A   
@@ -1894,24 +1894,82 @@
 ourceList;%0A%0A
+    /** The label for the request result limit widget. */%0A
     @UiField
@@ -2011,24 +2011,68 @@
 imitLabel;%0A%0A
+    /** The request result limit widget. */%0A
     @UiField
@@ -2114,24 +2114,79 @@
 imitInput;%0A%0A
+    /** The button that commands request execution. */%0A
     @UiField
@@ -2843,16 +2843,22 @@
 ltLimit(
+final 
 int newR
@@ -3042,24 +3042,133 @@
 one;%0A    %7D%0A%0A
+    /**%0A     * Handler for clicks on the execute button.%0A     * %0A     * @param event the click event%0A     */%0A
     @UiHandl
@@ -3233,16 +3233,20 @@
 kEvent e
+vent
 ) %7B%0A%0A   
@@ -3245,24 +3245,90 @@
 ) %7B%0A%0A    %7D%0A%0A
+    /**%0A     * The UiBinder interface for this component.%0A     */%0A
     interfac

Add javadoc