Search in sources :

Example 1 with DriverDependencies

use of org.jkiss.dbeaver.registry.driver.DriverDependencies in project dbeaver by dbeaver.

the class DriverLibraryDetailsDialog method createDependenciesTab.

private void createDependenciesTab(TabFolder tabs) {
    Composite paramsGroup = new Composite(tabs, SWT.NONE);
    paramsGroup.setLayout(new GridLayout(1, false));
    final Set<DBPDriverLibrary> libList = Collections.singleton(library);
    DriverDependencies dependencies = new DriverDependencies(libList);
    final DriverDependenciesTree depsTree = new DriverDependenciesTree(paramsGroup, DBeaverUI.getDefaultRunnableContext(), dependencies, driver, libList, false);
    depsTree.resolveLibraries();
    DBeaverUI.asyncExec(new Runnable() {

        @Override
        public void run() {
            depsTree.resizeTree();
        }
    });
    TabItem depsTab = new TabItem(tabs, SWT.NONE);
    depsTab.setText(CoreMessages.dialog_edit_driver_tab_depencencies);
    depsTab.setToolTipText(CoreMessages.dialog_edit_driver_tab_depencencies_tooltip);
    depsTab.setControl(paramsGroup);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) DriverDependencies(org.jkiss.dbeaver.registry.driver.DriverDependencies) DBPDriverLibrary(org.jkiss.dbeaver.model.connection.DBPDriverLibrary)

Example 2 with DriverDependencies

use of org.jkiss.dbeaver.registry.driver.DriverDependencies in project dbeaver by serge-rider.

the class DriverLibraryDetailsDialog method createDependenciesTab.

private void createDependenciesTab(TabFolder tabs) {
    Composite paramsGroup = new Composite(tabs, SWT.NONE);
    paramsGroup.setLayout(new GridLayout(1, false));
    final Set<DBPDriverLibrary> libList = Collections.singleton(library);
    DriverDependencies dependencies = new DriverDependencies(libList);
    final DriverDependenciesTree depsTree = new DriverDependenciesTree(paramsGroup, UIUtils.getDefaultRunnableContext(), dependencies, driver, libList, false);
    depsTree.resolveLibraries();
    UIUtils.asyncExec(new Runnable() {

        @Override
        public void run() {
            depsTree.resizeTree();
        }
    });
    TabItem depsTab = new TabItem(tabs, SWT.NONE);
    depsTab.setText(UIConnectionMessages.dialog_edit_driver_tab_depencencies);
    depsTab.setToolTipText(UIConnectionMessages.dialog_edit_driver_tab_depencencies_tooltip);
    depsTab.setControl(paramsGroup);
}
Also used : GridLayout(org.eclipse.swt.layout.GridLayout) DriverDependencies(org.jkiss.dbeaver.registry.driver.DriverDependencies) DBPDriverLibrary(org.jkiss.dbeaver.model.connection.DBPDriverLibrary)

Aggregations

GridLayout (org.eclipse.swt.layout.GridLayout)2 DBPDriverLibrary (org.jkiss.dbeaver.model.connection.DBPDriverLibrary)2 DriverDependencies (org.jkiss.dbeaver.registry.driver.DriverDependencies)2