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.
I lack some things in the API 1. plug in validators for object name, target folder name. The current API only allows to inform the user when the target chooser panel is going away. It is a solution, but some actions which are already done are irreversible, like creation of nonexistent folders. Next, the API does not allow the control of Next and Finish button - it is possible to invalidate the panel, but the standard target chooser does not provide a way to find out what folder and name are entered right now. It can only write them to the wizard. 2. Querying for selected target folder will create folders, if the name entered by the user does not exist. This is terrible, because there can be other pannels and the user can cancel them, leaving debris on his harddrive. 3. Finish button should not be controlled statically, by implementing a interface. The choice has to be dynamic, based on the entered values. Right now, it is not possible to disable only Finish by evaluating user input - it has to be either enabled (provided the panel says its valid) or disabled for a given panel. 4. The wizard incorporates a logic, which hide the package chooser and replaces it with a simple name text field, if the user (somehow) made the desired folder known to the IDE. This logic is burried in the wizard (combination of state variable and method parameter, whose cannot be accessed outside the wizard). Custom target chooser implementations cannot reuse this logic or gather all necessary data to perform their own logic. [1. and 4. implies that standard target chooser, while suitable for most of the object types cannot be easily reused by custom wizard iterators]
Target milestone -> 3.3.1.
Reassigning to Marek, evaluate, please. Thsnks.
It requires API change, to be discussed.
sidenote - part #3 i required by UI team.
*** Issue 20324 has been marked as a duplicate of this issue. ***
CCing myself.
There are also times when different processing needs to occur on Finish, that doesn't need to occur on Next or Back (and it needs to occur in the step panel, not in the wizard), so we also need a way to know which button the user has pressed (and we need to know this within the step panel's storeSettings() method).
see also 23116 (wizard step needs ability to veto the Next / Finish buttons and keep user in current step)
Set target milestone to TBD
officially requested by S1S, planned for 4.0, upped prio to P1
add 2. create a folder when instantiate() add 3. dynamic enable/disable finish button, will be soleved by issue 7706 add 4. will be soleved by issue 25561
ad 1) if one calls getTargetFolder() during the Wizard - the new folder gets created immediately. I needed to call that function so I could prevent creating classes in folders named "e-e" or "x.y" which are not valid package names. There's no call currently to find the proposed folder name (for the case the folder does not exist yet).
These issues have been reported to be part of Sun's "should have" contribution to NetBeans 4.0 and be "high level" issues. That is why I am changing them to be FEATUREs with P2. If you think I've done wrong change, please update the issue and internal documents.
This task is covered over by other issues: part 1) issue 35787 and issue 23116 part 3) issue 35787 part 3) issue 7706 part 3) issue 25561 It close as duplicate (e.g. 7706) to clear the duplicates between enhancements and make well-arranged. *** This issue has been marked as a duplicate of 7706 ***
Replacement duplicate with dependency.
All depended issue are either fixed or wont fix. I'm going to close as solved as duplicate of anyone depended issue.
*** This issue has been marked as a duplicate of 23116 ***