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 206479

Summary: API method for invoking AddServerInstanceWizard
Product: serverplugins Reporter: Martin Fousek <marfous>
Component: InfrastructureAssignee: Martin Fousek <marfous>
Status: RESOLVED FIXED    
Severity: normal CC: apireviews, mjanicek, phejl
Priority: P3 Keywords: API_REVIEW_FAST
Version: 7.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: api change including usage - v1
api change including usage - v2

Description Martin Fousek 2011-12-16 14:40:07 UTC
There is missing method outside JavaEE area to invoke wizard for new server creation. Attached patch contains also usage within coherence module. Anyway this method should be valuable for any non-JavaEE server, I think.
Comment 1 Martin Fousek 2011-12-16 14:44:13 UTC
Created attachment 114269 [details]
api change including usage - v1
Comment 2 Martin Fousek 2011-12-16 14:47:11 UTC
Please review.
Comment 3 Petr Hejl 2011-12-16 16:17:38 UTC
PH01: The name showCreateNewServerCustomizer seems to be overcomplicated. And it is not really a customizer. Why not just showWizard(), showServerInstanceWizard() or showAddServerInstanceWizard().
PH02: Assert message "Can lead to invocation of the UI dialog outside EDT" contradicts the assert. "Invocation of the UI dialog outside of the EDT" is clean and simple.
Comment 4 Martin Fousek 2011-12-16 16:38:39 UTC
Created attachment 114270 [details]
api change including usage - v2

(In reply to comment #3)
> PH01: The name showCreateNewServerCustomizer seems to be overcomplicated. And
> it is not really a customizer. Why not just showWizard(),
> showServerInstanceWizard() or showAddServerInstanceWizard().

Right, badly chosen name before. :/

> PH02: Assert message "Can lead to invocation of the UI dialog outside EDT"
> contradicts the assert. "Invocation of the UI dialog outside of the EDT" is
> clean and simple.

Fixed.
Comment 5 Martin Fousek 2011-12-22 13:36:34 UTC
Thanks for the review. I plan to integrate the change today COB.
Comment 6 Martin Fousek 2011-12-22 15:42:16 UTC
Integrated in web-main #243ec3bf85a3.
Comment 7 Quality Engineering 2011-12-23 08:32:31 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/243ec3bf85a3
User: Martin Fousek <marfous@netbeans.org>
Log: #206479 - API method for invoking AddServerInstanceWizard