78
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2006, 2007 IBM Corporation and others.
|
|
3 * All rights reserved. This program and the accompanying materials
|
|
4 * are made available under the terms of the Eclipse Public License v1.0
|
|
5 * which accompanies this distribution, and is available at
|
|
6 * http://www.eclipse.org/legal/epl-v10.html
|
|
7 *
|
|
8 * Contributors:
|
|
9 * IBM Corporation - initial API and implementation
|
|
10 *******************************************************************************/
|
|
11 module org.eclipse.core.internal.databinding.observable.tree.IViewerUpdate;
|
81
|
12 import org.eclipse.core.internal.databinding.observable.tree.TreePath;
|
78
|
13
|
|
14 import java.lang.all;
|
|
15
|
|
16 import org.eclipse.core.runtime.IProgressMonitor;
|
|
17 import org.eclipse.core.runtime.IStatus;
|
|
18
|
|
19 /**
|
|
20 * A context sensitive viewer update request.
|
|
21 *
|
|
22 * @since 3.3
|
|
23 */
|
|
24 public interface IViewerUpdate : IProgressMonitor {
|
|
25
|
|
26 /**
|
|
27 * Sets the status of this request, possibly <code>null</code>.
|
|
28 * When a request fails, the status indicates why the request failed.
|
|
29 * A <code>null</code> status is considered to be successful.
|
|
30 *
|
|
31 * @param status request status
|
|
32 */
|
|
33 public void setStatus(IStatus status);
|
|
34
|
|
35 /**
|
|
36 * Returns the status of this request, or <code>null</code>.
|
|
37 *
|
|
38 * @return request status or <code>null</code>
|
|
39 */
|
|
40 public IStatus getStatus();
|
|
41
|
|
42 /**
|
|
43 * Returns the model element corresponding to the given tree path.
|
|
44 * Returns the root element for the empty path.
|
|
45 *
|
|
46 * @param path viewer tree path
|
|
47 * @return corresponding model element
|
|
48 */
|
|
49 public Object getElement(TreePath path);
|
|
50 }
|