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 142283 - open first wizard step UI panel through friend package
Summary: open first wizard step UI panel through friend package
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: rmichalsky
URL:
Keywords: API
Depends on: 144060
Blocks: 136248 143598
  Show dependency tree
 
Reported: 2008-07-30 17:57 UTC by Andrew Korostelev
Modified: 2008-09-16 14:51 UTC (History)
4 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
panel UI proposal (5.42 KB, image/png)
2008-07-30 18:00 UTC, Andrew Korostelev
Details
patch proposal (100.79 KB, patch)
2008-07-30 18:01 UTC, Andrew Korostelev
Details | Diff
patch for apisupport.project (123.89 KB, text/plain)
2008-08-01 10:47 UTC, Andrew Korostelev
Details
please use this patch for apisupport.project instead. Previous has not one update lost because of http://www.selenic.com/mercurial/bts/issue961 (125.24 KB, patch)
2008-08-01 11:19 UTC, Andrew Korostelev
Details | Diff
patch for vmd.componentssupport to use API exposed by fix of 142283 (120.06 KB, patch)
2008-08-01 11:24 UTC, Andrew Korostelev
Details | Diff
both patches as bundle. attaching for the case you have same problem as me because of http://www.selenic.com/mercurial/bts/issue961 (20.94 KB, application/octet-stream)
2008-08-01 11:43 UTC, Andrew Korostelev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2008-07-30 17:57:56 UTC
open UI for Platform and Suite selection, used in first wizard step UI panel through friend package.

According to issue 136248 
vmd.componentssupport should have the same first UI for module platform and suite selection 
as apisupport.project.

To reuse existing implementation it would be good to have panel with platform and suite selection UI exposed through
friend package.

See attached image for expected panel UI elements.
Comment 1 Andrew Korostelev 2008-07-30 18:00:22 UTC
Created attachment 66093 [details]
panel UI proposal
Comment 2 Andrew Korostelev 2008-07-30 18:01:10 UTC
Created attachment 66094 [details]
patch proposal
Comment 3 Jesse Glick 2008-07-31 22:44:35 UTC
I think it is OK. Would be easier to evaluate if the patch included the intended usage in vmd.componentsupport. I assume
you want this in for M2 based on the milestone for the dependent issue. Passing to Richard (new apisupport maintainer)
in case he has any comments. Some minor comments:


[JG01] Check license headers, at least missing in TypeChooserPanelImpl.java. (Should be set to CDDL+GPL automatically
when you create any source file in a nb.org module. No? The date of creation says July 22 if my Cyrillic is right.)


[JG02] Avoid static getMessage method; should use an explicit call to NbBundle.getMessage for each distinct localizable
string.


[JG03] initAccessibility should be replaced by the Accessibility properties in Matisse - makes it easier for future
developers to see and tweak A11Y values.


[JG04] Why is SUITE_ROOT a String? What would be the value?
Comment 4 Andrew Korostelev 2008-08-01 10:15:31 UTC
thanks. I have tried to follow existing implementation.
[JG01]fixed

[JG02] fixed.
But it seems to be a common practice.
getMessage() is private, so shouldn't be dangerous.
code became less readable after fix.


[JG03] 
fixed

[JG04] Why is SUITE_ROOT a String? What would be the value?
String was used in original implementation and it suites needs well.
i mean: org.netbeans.modules.apisupport.project.ui.wizard.NewModuleProjectData#setSuiteRoot(String) 
Comment 5 Andrew Korostelev 2008-08-01 10:47:55 UTC
Created attachment 66286 [details]
patch for apisupport.project
Comment 6 Andrew Korostelev 2008-08-01 11:19:02 UTC
Created attachment 66290 [details]
please use this patch for apisupport.project instead. Previous has not one update lost because of http://www.selenic.com/mercurial/bts/issue961
Comment 7 Andrew Korostelev 2008-08-01 11:24:19 UTC
Created attachment 66291 [details]
patch for vmd.componentssupport to use API exposed by fix of 142283
Comment 8 Andrew Korostelev 2008-08-01 11:43:42 UTC
Created attachment 66292 [details]
both patches as bundle. attaching for the case you have same problem as me because of http://www.selenic.com/mercurial/bts/issue961
Comment 9 rmichalsky 2008-08-01 11:56:35 UTC
Looks OK. I'd rather create anonymous inner PropertyChangeListener than let BasicInfoVisualPanel implement it publicly,
but that's no big deal.

Just out of curiosity, how will your ModuleTypeChooserPanel differ from the standard one? Mobile Designer Components
projects will all be standalone? I also suppose you've checked that the wizard still works for regular NBM projects :)?

Tonda will address if and when could we actually commit this.
Comment 10 Antonin Nebuzelsky 2008-08-01 12:11:43 UTC
> Tonda will address if and when could we actually commit this.

Too late for such a large change for 6.5 Beta. There is no time left now to test the functionality after integration of
such a big patch.

A separate repository will be created for Beta on Monday, leaving main repository open for further bugfixing. Then this
change can be integrated.

Anyway, the change has to go through API review process. Fast track review is OK.
Comment 11 Andrew Korostelev 2008-08-01 12:49:33 UTC
> how will your ModuleTypeChooserPanel differ from the standard one? Mobile Designer Components projects will all be
standalone? 

what do you call standard? I have just extracted panel from
org.netbeans.modules.apisupport.project.ui.wizard.BasicInfoVisualPanel
With a few changes for internal usage and with different read/store process for users outside apisupport.project
Is it answer for your question?

> I also suppose you've checked that the wizard still works for regular NBM projects :)?
have tested all cases I have realized during code editing. 
Of course we can be sure only after QE testing.

> Anyway, the change has to go through API review process. Fast track review is OK.
does API opened to friends only needs API review process?
Comment 12 Jaroslav Tulach 2008-08-13 13:21:08 UTC
API changes affecting communication between different clusters deserve API review.
Comment 13 Andrew Korostelev 2008-08-29 13:24:08 UTC
API review process is passed. see issue 144060.

Latest patch version is available as attachment to issue 144060.
rmichalsky has suggested me to apply patch myself.
Comment 14 Jesse Glick 2008-08-29 15:38:59 UTC
BTW it was unnecessary to open a separate issue just for the API review; adds clutter to IZ. Better to have marked this
issue API API_REVIEW_FAST, with apireviews on CC, and when review is done close as FIXED while committing the actual change.
Comment 15 Andrew Korostelev 2008-08-29 17:38:10 UTC
fixed.
http://hg.netbeans.org/main/rev/173c162bd62a

module specification version is increased to 1.23.0
Comment 16 Quality Engineering 2008-08-30 05:39:26 UTC
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/173c162bd62a
User: akorostelev@netbeans.org
Log: patch for issue #142283 - expose Module type and suite selection panel