KickJava   Java API By Example, From Geeks To Geeks.

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


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 TableAddRequestMonitor extends AsynchronousRequestMonitor {
19     
20     protected Object JavaDoc[] fElements;
21
22     /**
23      * @param node
24      * @param model
25      */

26     TableAddRequestMonitor(ModelNode parent, Object JavaDoc elements[], AsynchronousModel model) {
27         super(parent, model);
28         fElements = elements;
29     }
30
31     /* (non-Javadoc)
32      * @see org.eclipse.debug.internal.ui.viewers.model.provisional.viewers.AsynchronousRequestMonitor#performUpdate()
33      */

34     protected void performUpdate() {
35         ((AsynchronousTableModel)getModel()).added(fElements);
36     }
37
38     /* (non-Javadoc)
39      * @see org.eclipse.debug.internal.ui.viewers.model.provisional.viewers.AsynchronousRequestMonitor#contains(org.eclipse.debug.internal.ui.viewers.model.provisional.viewers.AsynchronousRequestMonitor)
40      */

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