Re: project conversion questions

Tomas Zezula <[email protected]> Thu, 24 Jul 2003 09:15:58 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Organization Sun Microsystems
Message-ID <[email protected]>
On Thu, 2003-07-24 at 02:28, Peter Wisnovsky wrote:
> Would it make sense to have a mailing list devoted to converting
> modules to use the project system? Ideally it would include people who
> could answer questions for developers downstream of the Java and Web
> modules. I predict that given the fact that we in the S1S group have
> switched our build to use projects that there is going to be a flurry
> of these questions.
> 
> I'm currently having a problem with an action that looks to see if the
> selected node is a Java Data Object. The code compiles but I get a
> noclassdef at runtime, even though the dependency is in the manifest
> and the JavaDataObject class is in the jar file. Backtrace on trying
> to raise the tools menu is:
> 
> *********** Exception occurred ************ at Wed Jul 23 17:21:23 PDT 2003
> java.lang.NoClassDefFoundError: org.netbeans.modules.java.JavaDataObject
>         at com.sun.s1s.jpe.module.CheckValidityAction.class$(CheckValidityAction.java:25)
>         at com.sun.s1s.jpe.module.CheckValidityAction.enable(CheckValidityAction.java:25)
>         at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:123)
>         at org.openide.actions.ToolsAction.generate(ToolsAction.java:135)
>         at org.openide.actions.ToolsAction.access$200(ToolsAction.java:44)
>         at org.openide.actions.ToolsAction$Inline.run(ToolsAction.java:215)
> ...
Hi Peter,
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?
If you are missing some support in the Java API we will appreciate your
feedback.
Can you describe in more details why do you need JDO?

Tomas
> 
> Since I can't raise the tool menu I can't disable the module, at least
> through the UI.
> 
> Peter
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>