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 61670 - [Project Wizard] enabled Next when is selected module suite
Summary: [Project Wizard] enabled Next when is selected module suite
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 15:22 UTC by pzajac
Modified: 2005-09-05 09:51 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 pzajac 2005-08-02 15:22:13 UTC
[200508011800]
Steps to reproduce:
-------------------
1) Show New module project wizard
2) Select wrong "Project Location".  The "Next" button is disabled
3) Select "add to Module Suite" variant and change the suite in suite combobox 

The "Next" button is enabled.
Comment 1 Jesse Glick 2005-08-30 19:35:38 UTC
Confirmed that there is a bug here. Somehow the panel is not checking for errors
consistently after different events. IMHO every wizard panel should have one method

/**
 * Either sets an error message and disables Next,
 * or clears error message and enables Next.
 */
void checkForError() {...}

and every UI event which could possibly affect the outcome should call it.
Comment 2 Martin Krauskopf 2005-08-31 10:06:47 UTC
> IMHO every wizard panel should have one method

This is actually how all wizards behave, or at least should (checkValidity,
checkForm, ..). However they are not forced. Maybe such method (probably
abstract) should be added to the BasicWizardPanel to give a pointer do a developer.

Anyway the checking code in the New Module wizard seems to be little chaotic,
who wrote it? :) Started...
Comment 3 Martin Krauskopf 2005-08-31 11:57:27 UTC
Fixed and cleaned up.

Checking in ui/wizard/BasicInfoVisualPanel.java; 1.29 --> 1.30
Checking in ui/wizard/BasicInfoWizardPanel.java; 1.11 --> 1.12
Checking in ui/wizard/Bundle.properties; 1.22 --> 1.23
Comment 4 pzajac 2005-09-01 16:24:13 UTC
v