[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dtp] Re: Property for "Connect every time the workbench is started" ?

Hi,
In the meantime, looks to me like there is no property. Instead, auto-connect is a boolean argument to two of the three ProfileManager.createProfile() methods and the ProfileManager.modifyProfile() method. So I set that boolean to true, and the profile sets auto-connect.


Only thing, I don't understand what a "parent profile" is. It is required in the createProfile() methods where the autoConnect argument occurs. Anybody know what a parent profile is?

Thanks, yo

Yo wrote:
Hi,
I am programmatically creating a database connection. Works fine.

However, I can't figure out which property to pass so that the db is connected every time the workbench is started.

Specifically, I am referring to the Properties instance ("prop") in the snippet below :

ProfileManager.getInstance().createProfile(
                profileName,
                "Description store",
                DerbyProfileFactory.PROFILE_ID,
                prop);

What is the property (which I presumably would pass in the "prop" instance) for connecting at workbench start-up?

Thanks,yo