Search in sources :

Example 1 with TableFilterView

use of org.hibernate.eclipse.console.wizards.TableFilterView in project jbosstools-hibernate by jbosstools.

the class TableFilterFormPart method createClient.

public Control createClient(IManagedForm form) {
    FormToolkit toolkit = form.getToolkit();
    composite = new TableFilterView(getSection(), SWT.NULL) {

        protected void doRefreshTree() {
            LazyDatabaseSchema lazyDatabaseSchema = configNamePart.getLazyDatabaseSchema();
            if (lazyDatabaseSchema != null) {
                viewer.setInput(lazyDatabaseSchema);
            }
        }

        protected String getConsoleConfigurationName() {
            return configNamePart.getConsoleConfigurationName();
        }
    };
    adaptRecursively(toolkit, composite);
    return composite;
}
Also used : FormToolkit(org.eclipse.ui.forms.widgets.FormToolkit) TableFilterView(org.hibernate.eclipse.console.wizards.TableFilterView) LazyDatabaseSchema(org.hibernate.eclipse.console.workbench.LazyDatabaseSchema)

Aggregations

FormToolkit (org.eclipse.ui.forms.widgets.FormToolkit)1 TableFilterView (org.hibernate.eclipse.console.wizards.TableFilterView)1 LazyDatabaseSchema (org.hibernate.eclipse.console.workbench.LazyDatabaseSchema)1