KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > ui > SimpleContentProvider


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 package org.eclipse.team.internal.ccvs.ui;
12
13  
14 import org.eclipse.jface.viewers.*;
15
16 /**
17  * A default content provider to prevent subclasses from
18  * having to implement methods they don't need.
19  */

20 public class SimpleContentProvider implements IStructuredContentProvider {
21
22     /**
23      * SimpleContentProvider constructor.
24      */

25     public SimpleContentProvider() {
26         super();
27     }
28     
29     /*
30      * @see SimpleContentProvider#dispose()
31      */

32     public void dispose() {
33     }
34     
35     /*
36      * @see SimpleContentProvider#getElements()
37      */

38     public Object JavaDoc[] getElements(Object JavaDoc element) {
39         return new Object JavaDoc[0];
40     }
41     
42     /*
43      * @see SimpleContentProvider#inputChanged()
44      */

45     public void inputChanged(Viewer viewer, Object JavaDoc oldInput, Object JavaDoc newInput) {
46     }
47 }
48
Popular Tags