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 151716 - API for inserting/removing nodes into project ui
Summary: API for inserting/removing nodes into project ui
Status: VERIFIED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on: 153347
Blocks: 162137
  Show dependency tree
 
Reported: 2008-10-29 13:46 UTC by Radko Najman
Modified: 2009-04-08 08:45 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Diff (requires patch from issue 153347) (4.13 KB, patch)
2008-11-17 23:12 UTC, _ tboudreau
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Radko Najman 2008-10-29 13:46:27 UTC
Allow to add nodes into project UI by layer declaration.

For more info see:
http://www.netbeans.org/issues/show_bug.cgi?id=72441
Comment 1 _ tboudreau 2008-11-17 23:11:39 UTC
Attaching patch.  Can be done without issue 153347, but with many more lines of code.
Comment 2 _ tboudreau 2008-11-17 23:12:38 UTC
Created attachment 73844 [details]
Diff (requires patch from issue 153347)
Comment 3 _ tboudreau 2008-11-17 23:18:12 UTC
One question is whether to use the same layer path as J2SEProject.  In some cases, that could be useful - for example, I
once wrote a patch for the UML module to display UML diagram nodes under the project they were associated with.  So for
modules that do something very general with any Java project, it allows them to decorate mobility projects too.  On the
other hand, you could have some decorator which assumes a real J2SEProject and blows up.

Opinions?  Preferences?
Comment 4 _ tboudreau 2008-11-18 00:16:06 UTC
Actually, looks like reusing j2seproject's directory will break things.  So we can use our own.  Anyway, the attached
patch works.
Comment 5 Radko Najman 2008-11-28 13:34:35 UTC
Thanks for the patch. It works for adding nodes.

Unfortunately we need also to remove nodes (Project Configurations and probably also Resources). I'm sorry for confusing
issue summary (fixed now). I used the summary from issue #72441 because I expected it will be implemented by the same
way and we will get the same functionality.
To clarify it - we need to add new nodes and also remove some of the existing nodes. Hopefully this could be simply
solved be declaring all mobility project nodes in the layer.
Comment 6 _ tboudreau 2008-12-01 19:47:26 UTC
Fixed in changeset a800b0159c85

Nodes can now be added to mobility projects using the same classes as in J2SEProject.  The SFS folder for registering
factories is Projects/org-netbeans-modules-mobility-project/Nodes
Comment 7 Radko Najman 2008-12-09 10:04:02 UTC
Verified.