latest quantum sources 2.3.2
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / JDBCDriverView.java
1 package com.quantum.view;
2
3 import org.eclipse.swt.layout.GridData;
4 import org.eclipse.swt.layout.GridLayout;
5 import org.eclipse.swt.widgets.Composite;
6 import org.eclipse.ui.part.ViewPart;
7
8
9 /**
10  * @author BC
11  */
12 public class JDBCDriverView extends ViewPart {
13         
14         private JDBCDriverTableViewer viewer;
15
16         public void createPartControl(Composite parent) {
17                 GridLayout layout = new GridLayout();
18                 layout.numColumns = 1;
19                 parent.setLayout(layout);
20                 this.viewer = new JDBCDriverTableViewer(parent);
21                 this.viewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH));
22         }
23
24         public void setFocus() {
25         }
26         public void dispose() {
27                 this.viewer.dispose();
28                 super.dispose();
29         }
30 }