Search in sources :

Example 1 with KnownConfigurations

use of org.hibernate.console.KnownConfigurations in project jbosstools-hibernate by jbosstools.

the class OrmLabelProvider method getConsoleConfig.

protected ConsoleConfiguration getConsoleConfig() {
    final KnownConfigurations knownConfigurations = KnownConfigurations.getInstance();
    ConsoleConfiguration consoleConfig = knownConfigurations.find(consoleConfigName);
    return consoleConfig;
}
Also used : ConsoleConfiguration(org.hibernate.console.ConsoleConfiguration) KnownConfigurations(org.hibernate.console.KnownConfigurations)

Example 2 with KnownConfigurations

use of org.hibernate.console.KnownConfigurations in project jbosstools-hibernate by jbosstools.

the class BaseTestSetCase method getConsoleConfig.

public ConsoleConfiguration getConsoleConfig() {
    KnownConfigurations knownConfigurations = KnownConfigurations.getInstance();
    final ConsoleConfiguration consCFG = knownConfigurations.find(consoleConfigName);
    assertNotNull(consCFG);
    return consCFG;
}
Also used : ConsoleConfiguration(org.hibernate.console.ConsoleConfiguration) KnownConfigurations(org.hibernate.console.KnownConfigurations)

Example 3 with KnownConfigurations

use of org.hibernate.console.KnownConfigurations in project jbosstools-hibernate by jbosstools.

the class ConsoleConfigUtils method deleteConsoleConfig.

/**
 * Delete console configuration with given name.
 * @param name
 */
public static void deleteConsoleConfig(String name) {
    final KnownConfigurations knownConfigurations = KnownConfigurations.getInstance();
    final ConsoleConfiguration consoleConfig = knownConfigurations.find(name);
    if (consoleConfig != null) {
        consoleConfig.reset();
    }
    knownConfigurations.removeConfiguration(consoleConfig, false);
}
Also used : ConsoleConfiguration(org.hibernate.console.ConsoleConfiguration) KnownConfigurations(org.hibernate.console.KnownConfigurations)

Example 4 with KnownConfigurations

use of org.hibernate.console.KnownConfigurations in project jbosstools-hibernate by jbosstools.

the class CoreMappingTestHelper method getConsoleConfig.

private ConsoleConfiguration getConsoleConfig() {
    KnownConfigurations knownConfigurations = KnownConfigurations.getInstance();
    String consoleConfigName = testProject.getIProject().getName();
    final ConsoleConfiguration consCFG = knownConfigurations.find(consoleConfigName);
    Assert.assertNotNull(consCFG);
    return consCFG;
}
Also used : ConsoleConfiguration(org.hibernate.console.ConsoleConfiguration) KnownConfigurations(org.hibernate.console.KnownConfigurations)

Example 5 with KnownConfigurations

use of org.hibernate.console.KnownConfigurations in project jbosstools-hibernate by jbosstools.

the class MappingTestHelper method getConsoleConfig.

private ConsoleConfiguration getConsoleConfig() {
    KnownConfigurations knownConfigurations = KnownConfigurations.getInstance();
    String consoleConfigName = testProject.getIProject().getName();
    final ConsoleConfiguration consCFG = knownConfigurations.find(consoleConfigName);
    Assert.assertNotNull(consCFG);
    return consCFG;
}
Also used : ConsoleConfiguration(org.hibernate.console.ConsoleConfiguration) KnownConfigurations(org.hibernate.console.KnownConfigurations)

Aggregations

KnownConfigurations (org.hibernate.console.KnownConfigurations)12 ConsoleConfiguration (org.hibernate.console.ConsoleConfiguration)11 ConsoleConfigurationPreferences (org.hibernate.console.preferences.ConsoleConfigurationPreferences)2 File (java.io.File)1 URL (java.net.URL)1 CoreException (org.eclipse.core.runtime.CoreException)1 OperationCanceledException (org.eclipse.core.runtime.OperationCanceledException)1 ILaunchConfiguration (org.eclipse.debug.core.ILaunchConfiguration)1 ILaunchConfigurationListener (org.eclipse.debug.core.ILaunchConfigurationListener)1 ILaunchManager (org.eclipse.debug.core.ILaunchManager)1 PerformRefactoringOperation (org.eclipse.ltk.core.refactoring.PerformRefactoringOperation)1 ProcessorBasedRefactoring (org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring)1 Shell (org.eclipse.swt.widgets.Shell)1 KnownConfigurationsAdapter (org.hibernate.console.KnownConfigurationsAdapter)1 ConsoleConfigurationRenameProcessor (org.hibernate.eclipse.launch.core.refactoring.ConsoleConfigurationRenameProcessor)1 Test (org.junit.Test)1 Element (org.w3c.dom.Element)1