KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > preferences > LaunchConfigurationTreeContentProviderNoChildren


1 /*******************************************************************************
2  * Copyright (c) 2005 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.preferences;
13
14 import org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTreeContentProvider;
15 import org.eclipse.swt.widgets.Shell;
16
17 /**
18  * Overwritten class to provide the list of launch configuration types without including
19  * the actual launch configurations as children of the types.
20  *
21  * @since 3.2
22  */

23 public class LaunchConfigurationTreeContentProviderNoChildren extends LaunchConfigurationTreeContentProvider {
24
25     /**
26      * Default constructor
27      * @param mode the mode to display or null to view all modes
28      * @param shell the shell
29      */

30     public LaunchConfigurationTreeContentProviderNoChildren(String JavaDoc mode, Shell shell) {
31         super(mode, shell);
32     }//end constructor
33

34     /* (non-Javadoc)
35      * @see org.eclipse.jface.viewers.ITreeContentProvider#hasChildren(java.lang.Object)
36      */

37     public boolean hasChildren(Object JavaDoc element) {
38         return false;
39     }
40
41     /* (non-Javadoc)
42      * @see org.eclipse.jface.viewers.ITreeContentProvider#getChildren(java.lang.Object)
43      */

44     public Object JavaDoc[] getChildren(Object JavaDoc parentElement) {
45         return new Object JavaDoc[] {};
46     }
47 }//end class
48
Popular Tags