Search in sources :

Example 1 with HibernatePropertySourceProvider

use of org.hibernate.eclipse.console.views.properties.HibernatePropertySourceProvider in project jbosstools-hibernate by jbosstools.

the class QueryPageTabView method getAdapter.

@Override
public <T> T getAdapter(Class<T> adapter) {
    if (adapter.equals(IPropertySheetPage.class)) {
        PropertySheetPage page = new PropertySheetPage();
        page.setPropertySourceProvider(new HibernatePropertySourceProvider(this));
        return adapter.cast(page);
    }
    return super.getAdapter(adapter);
}
Also used : IPropertySheetPage(org.eclipse.ui.views.properties.IPropertySheetPage) PropertySheetPage(org.eclipse.ui.views.properties.PropertySheetPage) HibernatePropertySourceProvider(org.hibernate.eclipse.console.views.properties.HibernatePropertySourceProvider)

Aggregations

IPropertySheetPage (org.eclipse.ui.views.properties.IPropertySheetPage)1 PropertySheetPage (org.eclipse.ui.views.properties.PropertySheetPage)1 HibernatePropertySourceProvider (org.hibernate.eclipse.console.views.properties.HibernatePropertySourceProvider)1