remove name clash with JDT editor category
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / driver / JDBCDriverView.java
1 package com.quantum.view.driver;
2
3
4 import com.quantum.view.JDBCDriverTableViewer;
5
6 import org.eclipse.swt.layout.GridData;
7 import org.eclipse.swt.layout.GridLayout;
8 import org.eclipse.swt.widgets.Composite;
9 import org.eclipse.ui.IActionBars;
10 import org.eclipse.ui.part.ViewPart;
11
12
13 /**
14  * @author BC
15  */
16 public class JDBCDriverView extends ViewPart {
17         
18         private JDBCDriverTableViewer viewer;
19         private JDBCDriverViewActionGroup actionGroup;
20
21         public void createPartControl(Composite parent) {
22                 GridLayout layout = new GridLayout();
23                 layout.numColumns = 1;
24                 parent.setLayout(layout);
25                 this.viewer = new JDBCDriverTableViewer(parent);
26                 this.viewer.getControl().setLayoutData(new GridData(GridData.FILL_BOTH));
27                 
28                 initActions();
29         }
30
31         public void initActions() {
32                 
33         this.actionGroup = new JDBCDriverViewActionGroup(this, this.viewer);
34
35         IActionBars actionBars = getViewSite().getActionBars();
36         this.actionGroup.fillActionBars(actionBars);
37         }
38         
39         public void setFocus() {
40         }
41         public void dispose() {
42                 this.viewer.dispose();
43                 super.dispose();
44         }
45 }