Search in sources :

Example 1 with ClientHomesPanel

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

the class DriverEditDialog method createClientHomesTab.

private void createClientHomesTab(TabFolder group) {
    clientHomesPanel = new ClientHomesPanel(group, SWT.NONE);
    clientHomesPanel.setLayoutData(new GridData(GridData.FILL_BOTH));
    TabItem paramsTab = new TabItem(group, SWT.NONE);
    paramsTab.setText(UIConnectionMessages.dialog_edit_driver_tab_name_client_homes);
    paramsTab.setToolTipText(UIConnectionMessages.dialog_edit_driver_tab_name_client_homes);
    paramsTab.setControl(clientHomesPanel);
    group.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            if (e.item == paramsTab) {
                clientHomesPanel.loadHomes(driver);
                group.removeSelectionListener(this);
            }
        }
    });
}
Also used : ClientHomesPanel(org.jkiss.dbeaver.ui.dialogs.connection.ClientHomesPanel) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) GridData(org.eclipse.swt.layout.GridData) SelectionEvent(org.eclipse.swt.events.SelectionEvent)

Example 2 with ClientHomesPanel

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

the class DriverEditDialog method createClientHomesTab.

private void createClientHomesTab(TabFolder group) {
    clientHomesPanel = new ClientHomesPanel(group, SWT.NONE);
    clientHomesPanel.setLayoutData(new GridData(GridData.FILL_BOTH));
    TabItem paramsTab = new TabItem(group, SWT.NONE);
    paramsTab.setText(UIConnectionMessages.dialog_edit_driver_tab_name_client_homes);
    paramsTab.setToolTipText(UIConnectionMessages.dialog_edit_driver_tab_name_client_homes);
    paramsTab.setControl(clientHomesPanel);
    group.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            if (e.item == paramsTab) {
                clientHomesPanel.loadHomes(driver);
                group.removeSelectionListener(this);
            }
        }
    });
}
Also used : ClientHomesPanel(org.jkiss.dbeaver.ui.dialogs.connection.ClientHomesPanel) SelectionAdapter(org.eclipse.swt.events.SelectionAdapter) GridData(org.eclipse.swt.layout.GridData) SelectionEvent(org.eclipse.swt.events.SelectionEvent)

Aggregations

SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 GridData (org.eclipse.swt.layout.GridData)2 ClientHomesPanel (org.jkiss.dbeaver.ui.dialogs.connection.ClientHomesPanel)2