KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > RemoveRequestMonitor


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 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;
12
13 import org.eclipse.jface.viewers.TreePath;
14
15
16
17 /**
18  * Request to remove an item from a tree.
19  *
20  * @since 3.2
21  */

22 class RemoveRequestMonitor extends AbstractAddRemoveRequestMonitor {
23
24     /**
25      * Removes the given node from the given model.
26      *
27      * @param node
28      * @param path path to the element to remove
29      * @param model
30      */

31     RemoveRequestMonitor(ModelNode node, TreePath path, AsynchronousModel model) {
32         super(node, path, model);
33     }
34     
35     /* (non-Javadoc)
36      * @see org.eclipse.debug.internal.ui.viewers.AsynchronousModelRequestMonitor#performUpdate()
37      */

38     protected void performUpdate() {
39         ((AsynchronousTreeModel)getModel()).remove(getNode());
40     }
41
42 }
43
Popular Tags