KickJava   Java API By Example, From Geeks To Geeks.

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


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 TableInsertRequestMonitor extends TableAddRequestMonitor {
19     
20     private int fIndex;
21
22     /**
23      * @param node
24      * @param model
25      */

26     TableInsertRequestMonitor(ModelNode parent, Object JavaDoc elements[], int index, AsynchronousModel model) {
27         super(parent, elements, model);
28         fIndex = index;
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()).inserted(fElements, fIndex);
36     }
37
38 }
39
Popular Tags