Re: project conversion questions

Jan Pokorsky <[email protected]> Thu, 24 Jul 2003 17:30:50 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Organization Sun Microsystems, Inc.
Message-ID <[email protected]>
Peter Wisnovsky wrote:
>  > the Java core module (java/src) does not define any API and from this
>  > reason it does not export any public packages.
>  > Dependence on the JavaDataObject is not desired, this class is going to
>  > be removed in the NetBeans 4.0.
>  > The ProjectMember, EnvironmentProvier and Look should replace all the
>  > DataObejcts in the NB 4.0.
>  > Is it not enough for your module to test if the (ProjectMember or Node)
>  > has certain object in its lookup?
> 
> Well, I need to 1) determine efficiently if the selected node of a
> NodeAction represents a Java class, and 2) be able to get from the
> selected nodes provided to a NodeAction down to the SourceElement of
> the Java object. Is there a new way to do this now?
> 

Node.getLookup().lookup(org.openide.cookies.SourceCookie.class). No 
reason to depend on the JavaDataObject.

Jan