Mercurial > projects > dwt2
view org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/observable/tree/IViewerUpdate.d @ 81:383ce7bd736b
package imports
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 14 Apr 2009 11:41:56 +0200 |
parents | 0a55d2d5a946 |
children |
line wrap: on
line source
/******************************************************************************* * Copyright (c) 2006, 2007 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 *******************************************************************************/ module org.eclipse.core.internal.databinding.observable.tree.IViewerUpdate; import org.eclipse.core.internal.databinding.observable.tree.TreePath; import java.lang.all; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; /** * A context sensitive viewer update request. * * @since 3.3 */ public interface IViewerUpdate : IProgressMonitor { /** * Sets the status of this request, possibly <code>null</code>. * When a request fails, the status indicates why the request failed. * A <code>null</code> status is considered to be successful. * * @param status request status */ public void setStatus(IStatus status); /** * Returns the status of this request, or <code>null</code>. * * @return request status or <code>null</code> */ public IStatus getStatus(); /** * Returns the model element corresponding to the given tree path. * Returns the root element for the empty path. * * @param path viewer tree path * @return corresponding model element */ public Object getElement(TreePath path); }