@@ -0,0 +1,3562 @@
+/*%0A * Copyright 2014 Codenvy, S.A.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.codenvy.ide.ext.datasource.client.common.interaction;%0A%0Aimport javax.annotation.Nullable;%0Aimport javax.validation.constraints.NotNull;%0A%0Aimport com.codenvy.ide.ext.datasource.client.common.confirmwindow.CancelCallback;%0Aimport com.codenvy.ide.ext.datasource.client.common.confirmwindow.ConfirmCallback;%0Aimport com.codenvy.ide.ext.datasource.client.common.confirmwindow.ConfirmWindow;%0Aimport com.codenvy.ide.ext.datasource.client.common.messagewindow.MessageWindow;%0Aimport com.google.gwt.user.client.ui.IsWidget;%0Aimport com.google.inject.assistedinject.Assisted;%0A%0A/**%0A * Factory for %7B@link MessageWindow%7D and %7B@link ConfirmWindow%7D components.%0A * %0A * @author %22Micka%C3%ABl Leduque%22%0A */%0Apublic interface DialogFactory %7B%0A%0A    /**%0A     * Create a confirm window with only text as content.%0A     * %0A     * @param title the window title%0A     * @param content the window content/text%0A     * @param confirmCallback the callback used on OK%0A     * @param cancelCallback the callback used on cancel%0A     * @return a %7B@link ConfirmWindow%7D instance%0A     */%0A    ConfirmWindow createConfirmWindow(@NotNull @Assisted(%22title%22) String title,%0A                                      @NotNull @Assisted(%22message%22) String content,%0A                                      @Nullable ConfirmCallback confirmCallback,%0A                                      @Nullable CancelCallback cancelCallback);%0A%0A    /**%0A     * Create a confirm window with a widget as content.%0A     * %0A     * @param title the window title%0A     * @param content the window content%0A     * @param confirmCallback the callback used on OK%0A     * @param cancelCallback the callback used on cancel%0A     * @return a %7B@link ConfirmWindow%7D instance%0A     */%0A    ConfirmWindow createConfirmWindow(@NotNull String title,%0A                                      @NotNull IsWidget content,%0A                                      @Nullable ConfirmCallback confirmCallback,%0A                                      @Nullable CancelCallback cancelCallback);%0A%0A    /**%0A     * Create a message window with only text as content.%0A     * %0A     * @param title the window title%0A     * @param content the window content/text%0A     * @param confirmCallback the callback used on OK%0A     * @return a %7B@link ConfirmWindow%7D instance%0A     */%0A    MessageWindow createMessageWindow(@NotNull @Assisted(%22title%22) String title,%0A                                      @NotNull @Assisted(%22message%22) String content,%0A                                      @Nullable ConfirmCallback confirmCallback);%0A%0A    /**%0A     * Create a message window with a widget as content.%0A     * %0A     * @param title the window title%0A     * @param content the window content%0A     * @param confirmCallback the callback used on OK%0A     * @return a %7B@link ConfirmWindow%7D instance%0A     */%0A    MessageWindow createMessageWindow(@NotNull String title,%0A                                      @NotNull IsWidget content,%0A                                      @Nullable ConfirmCallback confirmCallback);%0A%7D%0A

Create factory for both message and confirmation window - #153