/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation and others.
 * 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.ui.internal.provisional.cheatsheets;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * An editable task within a composite cheatsheet. An editable task is associated
 * with a task editor and the task editor is responsible for completing the task.
 * <p>
 * This interface is not intended to be implemented by clients.
 * </p>
 */

public interface IEditableTask extends ICompositeCheatSheetTask {
	
	/**
	 * Set the state of this task to COMPLETED
	 */
	public void complete();
	
	/**
	 * Gets a URL which can be used to open the content file for this 
	 * task if the content file can be specified by a path relative to
	 * the content file for the composite cheat sheet which contains it.
	 * @param path a relative path
	 * @throws MalformedURLException 
	 * @return a URL which represents a location relative to the
	 * location of the content file for the composite cheat sheet.
	 */
	public URL getInputUrl(String path) throws MalformedURLException;

}
