Search in sources :

Example 1 with EclipseLogger

use of org.hibernate.eclipse.logging.xpl.EclipseLogger 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)

Example 2 with EclipseLogger

use of org.hibernate.eclipse.logging.xpl.EclipseLogger in project jbosstools-hibernate by jbosstools.

the class MapperPlugin 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());
}
Also used : EclipseLogger(org.hibernate.eclipse.logging.xpl.EclipseLogger)

Aggregations

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