KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > model > provisional > IViewerUpdate


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 package org.eclipse.debug.internal.ui.viewers.model.provisional;
12
13 import org.eclipse.debug.core.IRequest;
14 import org.eclipse.jface.viewers.TreePath;
15
16 /**
17  * A context sensitive viewer update request.
18  * <p>
19  * Clients are not intended to implement this interface.
20  * </p>
21  * @since 3.3
22  */

23 public interface IViewerUpdate extends IRequest {
24
25     /**
26      * Returns the context this update was requested in.
27      *
28      * @return context this update was requested in
29      */

30     public IPresentationContext getPresentationContext();
31     
32     /**
33      * Returns the model element associated with this request.
34      *
35      * @return associated model element
36      */

37     public Object JavaDoc getElement();
38     
39     /**
40      * Returns the viewer tree path to the model element associated with this
41      * request. An empty path indicates a root element.
42      *
43      * @return tree path, possibly empty
44      */

45     public TreePath getElementPath();
46 }
47
Popular Tags