01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.internal.provisional.cheatsheets;
11:
12: import java.net.MalformedURLException;
13: import java.net.URL;
14:
15: /**
16: * An editable task within a composite cheatsheet. An editable task is associated
17: * with a task editor and the task editor is responsible for completing the task.
18: * <p>
19: * This interface is not intended to be implemented by clients.
20: * </p>
21: */
22:
23: public interface IEditableTask extends ICompositeCheatSheetTask {
24:
25: /**
26: * Set the state of this task to COMPLETED
27: */
28: public void complete();
29:
30: /**
31: * Gets a URL which can be used to open the content file for this
32: * task if the content file is specified by a path.
33: * @param path the path to the content file
34: * @throws MalformedURLException
35: * @return a URL to the content file
36: */
37: public URL getInputUrl(String path) throws MalformedURLException;
38:
39: }
|