Re: Q about profile settings
Pavel Buzek <[email protected]> Fri, 29 Aug 2003 10:29:08 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Message-ID | <[email protected]> |
George, I think that the setup of startup profile after its creation should be solved by: http://www.netbeans.org/issues/show_bug.cgi?id=34357 Vita is on vacation this week. He plans to work on this soon. The rest is related to j2eeserver module: You can now do the setup lazily in J2eeProfileSettings (provide default values if no values exist). If you need project context for that you can fix this now. I suggest to change the constructor of J2eeProfileSettings to take ProjectMember and then call super(pm.getContext (), SETTINGS_PREFIX); and update the call to constructor J2eeProfileSettings constructor in J2eeProfileEnvironment. -pavel [email protected] wrote: > > I'm trying to understand how I can default/set run profile settings > upon profile creation. > > If profile creation happens through the UI, then the Settings class is > instantiated and the Customizer Panel is shown, so I can default there > - but how do I get a Project lookup from the Context so I can find good > values to default things to? > > If profile creation doesn't happen through the UI, but through adding > a nature to the project, I still want to pull some things (like > the default server) into the profile. Where is there a hook where I can do > this? > > --George > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >