Re: Re: project conversion questions
Tomas Zezula <[email protected]> Thu, 31 Jul 2003 09:01:10 +0200
| Newsgroups | gmane.comp.java.netbeans.modules.projects.devel |
|---|---|
| Organization | Sun Microsystems |
| Message-ID | <[email protected]> |
On Thu, 2003-07-31 at 08:48, Svata Dedic wrote: > On Thu, 2003-07-31 at 08:33, Tomas Zezula wrote: > > I agree with Svata, the only problem is that Project is not a > > Node.Cookie :-( > > To allow this I will need to extend the Element interface by getLookup() > > method. > So - another shot in bad direction :( I remembered that one of > Project/ProjectMember (still!) gets Node.Cookie injected by the > post-compilation steps and picked the wrong one; it's the Project class, > according to build script. Well, you are right but I would rather not depend on this. It is not an API and it can change in the future!!!!! > > Does your code's execution start with a knowledge of a Node ? If so, > then you could use Node.getLookup().lookup(ProjectMember). The Node will be OK, it has both (the Project and ProjectMember in its lookup). > > -Svata > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] >