1 package com.quantum.view.driver;
4 import com.quantum.view.JDBCDriverTableViewer;
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;
16 public class JDBCDriverView extends ViewPart {
18 private JDBCDriverTableViewer viewer;
19 private JDBCDriverViewActionGroup actionGroup;
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));
31 public void initActions() {
33 this.actionGroup = new JDBCDriverViewActionGroup(this, this.viewer);
35 IActionBars actionBars = getViewSite().getActionBars();
36 this.actionGroup.fillActionBars(actionBars);
39 public void setFocus() {
41 public void dispose() {
42 this.viewer.dispose();