latest quantum sources 2.3.2
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / JDBCDriverContentProvider.java
1 package com.quantum.view;
2
3 import org.eclipse.jface.viewers.IStructuredContentProvider;
4 import org.eclipse.jface.viewers.Viewer;
5
6 import com.quantum.model.BookmarkCollection;
7
8
9 /**
10  * @author BC
11  */
12 public class JDBCDriverContentProvider implements IStructuredContentProvider {
13
14         public void dispose() {
15         }
16
17         public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
18         }
19
20         public Object[] getElements(Object inputElement) {
21                 if (inputElement == BookmarkCollection.getInstance()) {
22                         return BookmarkCollection.getInstance().getJDBCDrivers();
23                 } else {
24                         return null;
25                 }
26         }
27
28 }