Re: Looks question

Vitezslav Stejskal <[email protected]> Fri, 22 Aug 2003 10:23:35 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
Joe,

the OpenCookie should be provided by ProjectEnvironmentProvider to be 
accessible also on ProjectMember and not only on the Node. The Node 
constructed for ProjectMember automatically contains all cookies 
accessible on that PM.

You can register PEP in your nature, see 
http://www.netbeans.org/download/prj40_prototype/javadoc/ProjectsCoreAPIs/org/netbeans/api/projects/doc-files/general.html#env-providers 
for details. You should register your PEP before the PEP registered by 
java-nature otherwise OpenCookie for java-nature will be used. Use 
ordering attributes to specify order of instance files in the folder.

-vita

Joe Warzecha wrote:

>I defined a project nature that extends the java project
>nature. As part of this, I defined a Look for java source
>nodes. As part of that Look, I add actions to the pop up
>menu for java source nodes. That works fine. But I also
>want to register my own OpenCookie so that if the user
>selects "Open", my open method is called instead. How do
>I do that? I'm not having any luck getting this to work.
>
>Thanks,
>   -Joe-
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>
>  
>