Re: project conversion questions
Peter Wisnovsky <[email protected]> Fri, 26 Sep 2003 17:53:49 -0700
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Message-ID | <[email protected]> |
Svata Dedic writes: > Peter Wisnovsky wrote: > > > Instead of DataObject.find() just use > > > theProjectInstance.getProjectMember(theFile) to get a ProjectMember > > > (file's representant within the project). > > > > Hmm...so I tried this conversion and did it in a wizard, where I don't > > have a project. (I notice there is no getTargetProject in the > > TemplateWizard class...should there be?). When I try: > > > I think it should not - at least in the TemplateWizard interface; but > possibly project action-initiated Wizards could have a reference to the > destination project in some of Wizard's properties, whose name would be > declared in Project APIs and would be used by project-aware wizards. No > idea about "global" or "context-free" actions. Has there been any progress in this direction? I'm banging against the difficulty of finding which project my new object is being added to. My wizard's target chooser asks which project I want to create this in, but I can't figure out any way to ask for the selected project from my code. I've looked around the projects IDE module but can't find anything. Peter