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 97262 - NetBeans Platform Manager requires IDE restart to reload Platform with new cluster or modules
Summary: NetBeans Platform Manager requires IDE restart to reload Platform with new cl...
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-06 10:24 UTC by emi
Modified: 2010-04-21 04:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emi 2007-03-06 10:24:17 UTC
NetBeans Platform Manager seems to cache previously loaded "Platforms". So if I
 -remove a Platform
-change some things (like add a new cluster or some new modules)
-add the Platform again,
it /fails/ to detect the newly added modules and/or cluster even though it's a
"brand new" Platform (so I'm not changing a Platform that's in the list).

Steps to reproduce:

1. Take clean netbeans platform.
2. Tools->NetBeans Platform Manager, add the platform, close.
3. Tools->Netbeans Platform Manager, remove the previous platform, close.
4. Go into the platform folder, and copy modules from the the ide7/ folder (so I
have config/, config/Modules/, modules/, and update_tracking/). Leave only the
files for a module, for example org-netbeans-libs-formlayout.{jar|xml} plus
whatever jars it needs from ext/ (forms-1.0.5.jar).
5. Go back into the IDE, Tools->NetBeans Platorm Manager, add the platform.

Notice at this point how in the Modules tab we *don't* have the JGoodies module.

6. Remove the previous platform, close the window.
7. Close the IDE and restart it.
8. Tools->NetBeans Platform Manager, add the previous platform again.

Notice this time what *we do have* the JGoodies module.

This could be linked to issue #72963 although that one's about sources, not
modules/clusters.
Comment 1 Jesse Glick 2007-03-06 15:53:09 UTC
True, the cache has no reset trigger. Might be able to reset it when a platform
is added or removed, TBD.
Comment 2 Jesse Glick 2010-04-19 21:36:06 UTC
core-main #80b0ce0fb68d
Comment 3 Quality Engineering 2010-04-21 04:31:31 UTC
Integrated into 'main-golden', will be available in build *201004210200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/80b0ce0fb68d
User: Jesse Glick <jglick@netbeans.org>
Log: #97262: refresh module lists when removing a platform from the GUI.