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 22504 - would like to see module dependencies displayed in the IDE
Summary: would like to see module dependencies displayed in the IDE
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2002-04-16 16:16 UTC by eakle
Modified: 2008-12-23 08:33 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Provisional patch (13.05 KB, patch)
2002-08-24 06:07 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eakle 2002-04-16 16:16:21 UTC
I'm not aware of a way to see dependencies between 
modules, except to look at the manifest of each module.  
But that is time consuming to do.  I think it would be 
nice if this information could be displayed within the 
IDE, possibly within the global options pane as a property 
of each module.  For example, a "Module Dependencies" 
property with a read-only textual display. It would also 
be useful to have a property associated with the top-
level "Modules" node that would show the entire tree of 
dependencies; for this, I think a textual, outline format 
for the display would be fine -- but as this would be a 
long list, users would want to be able to search the list 
for a string.
Comment 1 Jesse Glick 2002-04-16 19:10:38 UTC
I think this is overkill for the core; it is not trivial to display a
tree of dependencies legibly. But the API Support could show this kind
of information, perhaps.
Comment 2 Marek Grummich 2002-07-22 08:20:32 UTC
Target milestone was changed from '3.4' to TBD.
Comment 3 Jesse Glick 2002-07-31 19:54:42 UTC
Might reassign to autoupdate module, unclear.
Comment 4 Jesse Glick 2002-08-24 05:39:49 UTC
After running the "lsmod" command on Linux:

Module                  Size  Used by    
e100                   52144   0
vpnmod                191392  -1 (unused)
wvlan_cs               23264   1
i810_audio             14528   0 (autoclean)
ac97_codec              8832   0 (autoclean) [i810_audio]
soundcore               4452   2 (autoclean) [i810_audio]
ds                      7040   3 [wvlan_cs]
yenta_socket            9504   3
pcmcia_core            41600   0 [wvlan_cs ds yenta_socket]
appletalk              20908   0 (autoclean)
ipx                    16436   0 (autoclean)
ide-scsi                8192   0
scsi_mod               95688   1 [ide-scsi]
ide-cd                 27072   0
cdrom                  28544   0 [ide-cd]
nls_iso8859-1           2816   1 (autoclean)
nls_cp437               4320   1 (autoclean)
vfat                    9560   1 (autoclean)
fat                    32376   0 (autoclean) [vfat]
usb-uhci               21540   0 (unused)
usbcore                51712   1 [usb-uhci]

I realized that this is a decent UI and simple enough to be in core
after all. So far I have a patch which for enabled regular modules,
shows which other enabled regular modules are depending on it being
enabled. That is pretty much what lsmod is showing, and I think the
most commonly desired piece of information. For technical reasons the
patch does not yet work for autoload modules, however, which makes it
less useful - I hope to fix that.
Comment 5 Jesse Glick 2002-08-24 06:07:01 UTC
Created attachment 7206 [details]
Provisional patch
Comment 6 Jesse Glick 2003-06-07 20:43:23 UTC
Finally implemented, and without the restrictions on autoloads.

committed   * Up-To-Date  1.68        core/build.xml
committed   * Up-To-Date  1.24        core/manifest.mf
committed   * Up-To-Date  1.60       
core/src/org/netbeans/core/modules/ModuleManager.java
committed   * Up-To-Date  1.22       
core/src/org/netbeans/core/modules/Util.java
committed   * Up-To-Date  1.58       
core/src/org/netbeans/core/ui/Bundle.properties
committed   * Up-To-Date  1.29       
core/src/org/netbeans/core/ui/ModuleBean.java
committed   * Up-To-Date  1.28       
core/src/org/netbeans/core/ui/ModuleNode.java
committed   * Up-To-Date  1.30       
core/test/unit/src/org/netbeans/core/modules/ModuleManagerTest.java