mdryahlenkov(a)exadel.com wrote:
> Yes.
> And now that I read it more thoroughly I can see your code is a bit
> different since it scan's all hibernate console configurations to find
> the config and possible matching project name.
>
> It's not pretty but the following should work:
>
>
((EclipseConsoleConfigurationPreferences)consoleConfiguration.getPreferences()).getProjectName();
>
> Isn't that what you want ? The java project associated with the console
> configuration ? (remember that this can be null so remember check for null
> ;
>
Hello, Max.
Type of consoleConfiguration.getPreferences() is
EclipseLaunchConsoleConfigurationPreferences. Can you explain me how I can
get EclipseConsoleConfigurationPreferences object?
My typo. Use EclipseLaunchConsoleConfigurationPreferences.