Search in sources :

Example 1 with ConfigurationAdapterFactory

use of org.hibernate.eclipse.console.workbench.ConfigurationAdapterFactory in project jbosstools-hibernate by jbosstools.

the class HibernateConsolePlugin method start.

/**
 * This method is called upon plug-in activation
 */
public void start(BundleContext context) throws Exception {
    super.start(context);
    logger = new EclipseLogger(context.getBundle());
    // HibernateConsoleSaveParticipant participant = new HibernateConsoleSaveParticipant();
    // participant.doStart(this);
    IAdapterManager adapterManager = Platform.getAdapterManager();
    ConfigurationAdapterFactory fact = new ConfigurationAdapterFactory();
    fact.registerAdapters(adapterManager);
    loadExistingConfigurations();
    listenForConfigurations();
}
Also used : ConfigurationAdapterFactory(org.hibernate.eclipse.console.workbench.ConfigurationAdapterFactory) IAdapterManager(org.eclipse.core.runtime.IAdapterManager) EclipseLogger(org.hibernate.eclipse.logging.xpl.EclipseLogger)

Aggregations

IAdapterManager (org.eclipse.core.runtime.IAdapterManager)1 ConfigurationAdapterFactory (org.hibernate.eclipse.console.workbench.ConfigurationAdapterFactory)1 EclipseLogger (org.hibernate.eclipse.logging.xpl.EclipseLogger)1