/******************************************************************************* * Copyright (c) 2012-2017 Codenvy, S.A. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Codenvy, S.A. - initial API and implementation *******************************************************************************/ package org.eclipse.che.ide.ext.git.client.add; import org.eclipse.che.ide.api.mvp.View; /** * The view of {@link AddToIndexPresenter}. * * @author <a href="mailto:aplotnikov@codenvy.com">Andrey Plotnikov</a> */ public interface AddToIndexView extends View<AddToIndexView.ActionDelegate> { /** Needs for delegate some function into CloneRepository view. */ interface ActionDelegate { /** Performs any actions appropriate in response to the user having pressed the Add button. */ void onAddClicked(); /** Performs any actions appropriate in response to the user having pressed the Cancel button. */ void onCancelClicked(); } /** * Set content into message field. * * @param htmlMessage * content of the message in html format */ void setMessage(String htmlMessage); /** @return <code>true</code> if new file must be added to index, and <code>false</code> otherwise */ boolean isUpdated(); /** * Set state of add new file. * * @param isUpdated * <code>true</code> to add new file to index, <code>false</code> don't do it */ void setUpdated(boolean isUpdated); /** Close dialog. */ void close(); /** Show dialog. */ void showDialog(); }