Search in sources :

Example 6 with DriverSelectViewer

use of org.jkiss.dbeaver.ui.dialogs.driver.DriverSelectViewer in project dbeaver by serge-rider.

the class ConfigImportWizardPageNavicatDriver method createControl.

@Override
public void createControl(Composite parent) {
    Composite placeholder = new Composite(parent, SWT.NONE);
    placeholder.setLayout(new GridLayout(1, true));
    DriverSelectViewer driverSelectViewer = new DriverSelectViewer(placeholder, this, DataSourceProviderRegistry.getInstance().getEnabledDataSourceProviders(), true);
    GridData gd = new GridData(GridData.FILL_BOTH);
    gd.heightHint = 200;
    driverSelectViewer.getControl().setLayoutData(gd);
    setControl(placeholder);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) Composite(org.eclipse.swt.widgets.Composite) DriverSelectViewer(org.jkiss.dbeaver.ui.dialogs.driver.DriverSelectViewer) GridData(org.eclipse.swt.layout.GridData)

Aggregations

GridData (org.eclipse.swt.layout.GridData)6 Composite (org.eclipse.swt.widgets.Composite)6 DriverSelectViewer (org.jkiss.dbeaver.ui.dialogs.driver.DriverSelectViewer)6 GridLayout (org.eclipse.swt.layout.GridLayout)4 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 RowLayout (org.eclipse.swt.layout.RowLayout)2 Button (org.eclipse.swt.widgets.Button)2 Combo (org.eclipse.swt.widgets.Combo)2 Label (org.eclipse.swt.widgets.Label)2 DBPProject (org.jkiss.dbeaver.model.app.DBPProject)2