/******************************************************************************* * 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.command.editor.page.goal; import org.eclipse.che.ide.api.command.CommandGoal; import org.eclipse.che.ide.api.mvp.View; import java.util.Set; /** * The view of {@link GoalPage}. * * @author Artem Zatsarynnyi */ public interface GoalPageView extends View<GoalPageView.ActionDelegate> { /** Set the list of goals which are available to set for command. */ void setAvailableGoals(Set<CommandGoal> goals); /** Sets the command's goal value. */ void setGoal(String goalId); /** The action delegate for this view. */ interface ActionDelegate { /** * Called when command goal has been changed. * * @param goalId * new value of the command goal */ void onGoalChanged(String goalId); /** Called when creating new goal is requested. */ void onCreateGoal(); } }