Search in sources :

Example 1 with ConnectionPropertiesControl

use of org.jkiss.dbeaver.ui.dialogs.connection.ConnectionPropertiesControl in project dbeaver by dbeaver.

the class DriverEditDialog method createConnectionPropertiesTab.

private void createConnectionPropertiesTab(TabFolder group) {
    Composite paramsGroup = new Composite(group, SWT.NONE);
    paramsGroup.setLayout(new GridLayout(1, false));
    connectionPropertiesEditor = new ConnectionPropertiesControl(paramsGroup, SWT.BORDER);
    connectionPropertySource = connectionPropertiesEditor.makeProperties(driver, driver.getConnectionProperties());
    connectionPropertiesEditor.loadProperties(connectionPropertySource);
    TabItem paramsTab = new TabItem(group, SWT.NONE);
    paramsTab.setText(UIConnectionMessages.dialog_edit_driver_tab_name_connection_properties);
    paramsTab.setToolTipText(UIConnectionMessages.dialog_edit_driver_tab_tooltip_connection_properties);
    paramsTab.setControl(paramsGroup);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) ConnectionPropertiesControl(org.jkiss.dbeaver.ui.dialogs.connection.ConnectionPropertiesControl)

Example 2 with ConnectionPropertiesControl

use of org.jkiss.dbeaver.ui.dialogs.connection.ConnectionPropertiesControl in project dbeaver by serge-rider.

the class DriverEditDialog method createConnectionPropertiesTab.

private void createConnectionPropertiesTab(TabFolder group) {
    Composite paramsGroup = new Composite(group, SWT.NONE);
    paramsGroup.setLayout(new GridLayout(1, false));
    connectionPropertiesEditor = new ConnectionPropertiesControl(paramsGroup, SWT.BORDER);
    connectionPropertySource = connectionPropertiesEditor.makeProperties(driver, driver.getConnectionProperties());
    connectionPropertiesEditor.loadProperties(connectionPropertySource);
    TabItem paramsTab = new TabItem(group, SWT.NONE);
    paramsTab.setText(UIConnectionMessages.dialog_edit_driver_tab_name_connection_properties);
    paramsTab.setToolTipText(UIConnectionMessages.dialog_edit_driver_tab_tooltip_connection_properties);
    paramsTab.setControl(paramsGroup);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) ConnectionPropertiesControl(org.jkiss.dbeaver.ui.dialogs.connection.ConnectionPropertiesControl)

Aggregations

GridLayout (org.eclipse.swt.layout.GridLayout)2 ConnectionPropertiesControl (org.jkiss.dbeaver.ui.dialogs.connection.ConnectionPropertiesControl)2