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 22915 - Poor dialog when disabling a module that other modules depend upon
Summary: Poor dialog when disabling a module that other modules depend upon
Status: VERIFIED 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: 20570
Blocks:
  Show dependency tree
 
Reported: 2002-04-28 23:27 UTC by eadams
Modified: 2008-12-23 08:31 UTC (History)
1 user (show)

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 eadams 2002-04-28 23:27:18 UTC
Maybe this should be a core issue, not clear to me.

If you try to disable a module and others depend on it you get a dialog
explaining the situation.  The dialog's presentation is poor, especially
as the list of modules involved grows.

Using FFJ/EE, I tried to disable the Java group and go a dialog consisting
of the following:

In order to disable the following modules:
Javadoc
Java Source Files
Bean Patterns
Sourceless Java Classes
Form Editor
you must also disable these modules:
WSDL - Web Services Description Language
Web module support for J2EE assembling
JDBC
HTTP Monitor
EJB Test Application Builder
JSP/Servlet (Advanced)
F4J-J2EE Common Library
Internationalization of Form
CORBA
Web Services
Tomcat 4.0 Server
JSP Syntax Coloring
EBJ 2.0 Builder
J2EE Application Client
RMI
Application Assembler 1.3 Support
JSP Tag Library Editor
JSP Parser
EBJ Module Assembly
Generic Generator (2) 
iPlanet Application Server 7
JSP/Servlet Breakpoint Support
JSP/Servlet Depl. Description Editng
WebLogit Server Plug-in
JSP/Servlet
J2EE Connector Support
J2EE Import Ear File
Tomcat 4.0 Server Autocompilation Support

So there is one sentence, a list of 5 modules names, another sentence
and then a list of 28 modules.  The dialog barely fit on the screen and
nothing was done to differentiate the sentence from the module lists.

At a minimum the module names should be indented to set them apart
from the sentences.  Possibly, the sentences should be in bold also.

The bigger issue is that there are two lists of modules in the dialog 
and both lists can, potentially, be long.  The lists should be scrollable,
not a list of JLabels.  One approach would be to always use a JList
for both the list of modules being disabled and the dependent modules.
Another approach would be the use a JList only when a list has 5
or more entries in it.
Comment 1 Jesse Glick 2002-04-30 02:28:35 UTC
According to issue #20570 the dialog contents are always visible.
However they are not pretty.
Comment 2 Jesse Glick 2002-05-10 17:31:18 UTC
I changed the dialog to display a JList for each set of modules,
unconditionally, with scroll bars if needed. There is also a read-only
description pane at the bottom; if you select any module in either
list, you see a textual description (paragraph-length) of the module.

committed   * Up-To-Date  1.49       
core/src/org/netbeans/core/ui/Bundle.properties
committed   * Up-To-Date  1.15       
core/src/org/netbeans/core/ui/ModuleBean.java
added       * Up-To-Date  1.1        
core/src/org/netbeans/core/ui/ModuleEnableDisablePanel.form
added       * Up-To-Date  1.1        
core/src/org/netbeans/core/ui/ModuleEnableDisablePanel.java
Comment 3 Marian Mirilovic 2005-07-12 09:04:14 UTC
closed