/**
 * This file is part of mycollab-web.
 *
 * mycollab-web is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * mycollab-web is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with mycollab-web.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.esofthead.mycollab.module.user.view;

import com.esofthead.mycollab.common.i18n.ShellI18nEnum;
import com.esofthead.mycollab.module.mail.service.ExtMailService;
import com.esofthead.mycollab.shell.view.MainWindowContainer;
import com.esofthead.mycollab.shell.view.SystemUIChecker;
import com.esofthead.mycollab.spring.ApplicationContextUtil;
import com.esofthead.mycollab.vaadin.AppContext;
import com.esofthead.mycollab.vaadin.mvp.ScreenData;
import com.esofthead.mycollab.vaadin.ui.AbstractPresenter;
import com.esofthead.mycollab.vaadin.ui.NotificationUtil;
import com.vaadin.ui.ComponentContainer;
import javafx.application.Application;

/**
 * 
 * @author MyCollab Ltd.
 * @since 1.0
 */
public class ForgotPasswordPresenter extends
		AbstractPresenter<ForgotPasswordView> {
	private static final long serialVersionUID = 1L;

	public ForgotPasswordPresenter() {
		super(ForgotPasswordView.class);
	}

	@Override
	protected void onGo(ComponentContainer container, ScreenData<?> data) {
		MainWindowContainer windowContainer = (MainWindowContainer) container;
		windowContainer.removeAllComponents();

		windowContainer.addComponent(view.getWidget());

        ExtMailService extMailService = ApplicationContextUtil.getSpringBean(ExtMailService.class);
        if (!extMailService.isMailSetupValid()) {
            NotificationUtil.showErrorNotification(AppContext
                    .getMessage(ShellI18nEnum.WINDOW_SMTP_CONFIRM_SETUP_FOR_USER));
        }

		AppContext.addFragment("user/forgotpassword", AppContext
				.getMessage(ShellI18nEnum.OPT_FORGOT_PASSWORD_VIEW_TITLE));
	}
}

@@ -928,66 +928,8 @@
 er;%0A
-import com.esofthead.mycollab.shell.view.SystemUIChecker;%0A
 impo
@@ -1248,55 +1248,16 @@
 ner;
-%0Aimport javafx.application.Application;
 %0A%0A/**%0A *
  %0A *
@@ -1252,17 +1252,16 @@
 %0A%0A/**%0A *
- 
 %0A * @aut

Remove redundant imports