[jbosstools-dev] [Fwd: [jbosstools-commits] JBoss Tools SVN: r3757 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view: src/org/jboss/tools/hibernate/ui/view/views and 1 other directory.]

Max Rydahl Andersen max.andersen at redhat.com
Tue Sep 25 11:58:46 EDT 2007


mdryahlenkov at 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.




More information about the jbosstools-dev mailing list