KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*******************************************************************************
2  * Copyright (c) 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
14 /**
15  * @since 3.2
16  *
17  */

18 public class TableReplaceRequestMonitor extends AsynchronousRequestMonitor {
19     
20     private Object JavaDoc fOriginal;
21     private Object JavaDoc fReplacement;
22
23     /**
24      * @param node
25      * @param model
26      */

27     TableReplaceRequestMonitor(ModelNode node, Object JavaDoc element, Object JavaDoc replacement, AsynchronousModel model) {
28         super(node, model);
29         fReplacement = replacement;
30         fOriginal = element;
31     }
32
33     /* (non-Javadoc)
34      * @see org.eclipse.debug.internal.ui.viewers.model.provisional.viewers.AsynchronousRequestMonitor#performUpdate()
35      */

36     protected void performUpdate() {
37         ((AsynchronousTableModel)getModel()).replaced(fOriginal, fReplacement);
38     }
39
40     /* (non-Javadoc)
41      * @see org.eclipse.debug.internal.ui.viewers.model.provisional.viewers.AsynchronousRequestMonitor#contains(org.eclipse.debug.internal.ui.viewers.model.provisional.viewers.AsynchronousRequestMonitor)
42      */

43     protected boolean contains(AsynchronousRequestMonitor update) {
44         return false;
45     }
46
47 }
48
Popular Tags