This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 243136 - NodeFactory support for org-netbeans-modules-cnd-makeproject
Summary: NodeFactory support for org-netbeans-modules-cnd-makeproject
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-21 10:43 UTC by thorsten_s
Modified: 2014-05-11 11:46 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thorsten_s 2014-03-21 10:43:34 UTC
I attempt to register a custom node with a native project via the NodeFactory.Registration annnotation. This works for J2SE projects but not for native projects. I think the org-netbeans-modules-cnd-makeproject project type should add this support. 

@NodeFactory.Registration(projectType = "org-netbeans-modules-cnd-makeproject")
public class MyCndNodeFactory implements NodeFactory {
...
}

https://blogs.oracle.com/geertjan/entry/nodefactory_registration


Any chance there is currently a custom CND implementation that I could use to provide my own node types?
Comment 1 Vladimir Voskresensky 2014-03-21 11:07:38 UTC
For now you can try to use:
org.netbeans.modules.cnd.makeproject.api.configurations.ui.CustomizerNode;
org.netbeans.modules.cnd.makeproject.api.configurations.CustomizerNodeProvider;
Comment 2 thorsten_s 2014-05-11 11:46:51 UTC
Thanks. I could not test the CustomizerNode due to other issues I had but the following approach works:

@ServiceProvider(service = org.netbeans.modules.cnd.makeproject.api.ui.LogicalViewNodeProvider.class)