KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > views > launch > LaunchViewer


1 /*******************************************************************************
2  * Copyright (c) 2000, 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
12 package org.eclipse.debug.internal.ui.views.launch;
13
14 import org.eclipse.debug.internal.ui.viewers.AbstractUpdatePolicy;
15 import org.eclipse.debug.internal.ui.viewers.AsynchronousModel;
16 import org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer;
17 import org.eclipse.swt.widgets.Composite;
18
19 public class LaunchViewer extends AsynchronousTreeViewer {
20     
21     private LaunchView fView;
22
23     public LaunchViewer(Composite parent, LaunchView view) {
24         super(parent);
25         fView = view;
26     }
27
28     /* (non-Javadoc)
29      * @see org.eclipse.debug.ui.viewers.AsynchronousViewer#isSuppressEqualSelections()
30      */

31     protected boolean isSuppressEqualSelections() {
32         // fire activation changes all the time
33
return false;
34     }
35
36     /* (non-Javadoc)
37      * @see org.eclipse.debug.internal.ui.viewers.AsynchronousModelViewer#createUpdatePolicy()
38      */

39     public AbstractUpdatePolicy createUpdatePolicy() {
40         return new LaunchViewUpdatePolicy(fView);
41     }
42     
43     /* (non-Javadoc)
44      * @see org.eclipse.debug.internal.ui.viewers.AsynchronousModelViewer#createModel()
45      */

46     protected AsynchronousModel createModel() {
47         return new LaunchTreeModel(this);
48     }
49
50 }
51
Popular Tags