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 137737

Summary: Wizards should support informational error messages
Product: platform Reporter: pslechta <pslechta>
Component: Dialogs&WizardsAssignee: apireviews <apireviews>
Status: RESOLVED FIXED    
Severity: blocker CC: anebuzelsky, jvagner, rmichalsky
Priority: P3 Keywords: API, API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 137076, 137334, 138003    
Attachments: openide.dialogs diff
java.project.diff

Description pslechta 2008-06-19 15:57:00 UTC
Today, wizards support only red error messages and warning messages. According to document
http://wiki.netbeans.org/InformationIcons there is also need to support error messages in normal (usually black) color
with info icon (see document for details).
Please implement such support.
This support is required by Issue 137076.
Thanks!
Comment 1 pslechta 2008-06-19 16:06:57 UTC
I suppose file openide.dialogs\src\org\openide\WizardDescriptor.java needs to be changed, mainly inner class
WizardPanel, method setErrorMessage...
Comment 2 Jiri Rechtacek 2008-06-20 10:50:13 UTC
A request for new feature, it will need a change in WizardDescriptor API. Please, describe your use-cases which requires
that feature. We'll consider adding this into NB6.5 M2 plan or in NB7.
Comment 3 pslechta 2008-06-20 11:04:57 UTC
The use-case is described in document http://wiki.netbeans.org/InformationIcons.
Issue 137076 is just first request to implement this use-case.
Ask Petr Blaha (reporter of the issue) for more details if required.
Thanks!
Comment 4 Milan Kubec 2008-06-30 13:42:06 UTC
Created attachment 63683 [details]
openide.dialogs diff
Comment 5 Milan Kubec 2008-06-30 13:43:05 UTC
Created attachment 63684 [details]
java.project.diff
Comment 6 Milan Kubec 2008-06-30 13:46:46 UTC
Attached files are intended for other issue, please ignore.
Comment 7 Milan Kubec 2008-06-30 13:57:01 UTC
Well, actually ... ignore my last comment - attached files contains impl. of the change - two new properties were introduced PROP_INFO_MESSAGE, PROP_WARNING_MESSAGE. java.project.diff contains usage of the API for New File Wizard. Please review the change. Thanks.
Comment 8 Jesse Glick 2008-07-02 15:43:04 UTC
Also need info icon for Module Project wizard.

The apichanges.xml entry does not seem to mention the topic of this issue, info icons! I guess this is getting confused
with issue #138128 (though the entry points to this IZ report).

Don't forget to update spec versions - both openide.dialogs/manifest.mf, and project.xml of calling modules.
Comment 9 Milan Kubec 2008-07-02 16:04:13 UTC
The icon is part of openide.dialogs module under org.netbeans.modules.dialogs - do you mean this?

I will provide better comment in apichanges.xml. I know about the confusion, even I'm a bit confused (see my previous comment), but I wanted to do both 
issue together in one API review, since they are very related.

I've updated spec ver. in openide.dialogs/manifest.mf to 7.8. Not those modules though.

Comment 10 Jesse Glick 2008-07-02 16:10:46 UTC
No no, I meant that as in issue #138003, we need the informational message to be shown in a New Project subwizard for
module projects, thus setting that as a dependency on this.
Comment 11 Milan Kubec 2008-07-07 09:10:46 UTC
Fixed.

http://hg.netbeans.org/core-main/rev/66cb4688e5d5

Comment 12 Quality Engineering 2008-07-09 04:15:44 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #308 build
Changeset: http://hg.netbeans.org/main/rev/66cb4688e5d5
User: Milan Kubec <mkubec@netbeans.org>
Log: #137737, #138128: string properties changed to constants; new constants for warning and info messages introduced