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 28410 - ContentMemberPanel.java hurts performance
Summary: ContentMemberPanel.java hurts performance
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: jarpackager (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 27795
  Show dependency tree
 
Reported: 2002-11-01 17:28 UTC by David Simonek
Modified: 2003-02-27 15:15 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 David Simonek 2002-11-01 17:28:50 UTC
WizardDescriptor.Panel implementation
org\netbeans\modules\jarpackager\wizard\ContentMemberPanel.java
provides itself as the result of getComponent().
This hurts performance and can cause a clash when
Component.isValid() is overridden.
Please use a separate component class, see details
at
http://performance.netbeans.org/howto/dialogs/wizard-panels.html.

Easy to fix, P2 justification - performance is top
priority.
Comment 1 David Simonek 2002-11-04 14:16:01 UTC
Similar situation is for
org\netbeans\modules\jarpackager\wizard\ManifestWizardPanel.java
org\netbeans\modules\jarpackager\wizard\PropertyEditorPanel.java 
Please fix them as well. 
Comment 2 David Simonek 2002-11-04 14:31:18 UTC
Oh my oh my, please ignore my last comment, I didn't study the code
well enough. Mentioned classes are ok I think.
Comment 3 Ondrej Rypacek 2002-11-05 16:53:23 UTC
The UI will be reimplemented for 4.0. The classes will be replaced.
Comment 4 David Simonek 2002-11-05 17:23:27 UTC
Ok, but then please pay attention to not repeat such mistake again. I
recommend to leave one of these bugs open, perhaps with lower priority
as "watchdog" and close it after new design will be done so that I can
come and check performance again. Or make up some other way how to
notify me, please. Thx.
Comment 5 David Simonek 2002-11-14 15:43:08 UTC
Reopening, according to the discussion in nb perf team. Justification:
The bug *currently* exists. There is no need to fix it in older
version if new version of UI will obsolete or fix this issue. But
correct is to close the bug at the time when new impl will be in
trunk, not earlier. Thx.
Comment 6 Tomas Pavek 2003-01-21 14:08:02 UTC
Fixed. Done for all wizard panels in wizard package.
Comment 7 David Simonek 2003-01-24 13:53:44 UTC
Guys, there was an error in example code in IDESettingsWizardPanel.java.
Please check your fix and repair if you did the same mistake. I'm terribly
sorry, but I'm only a human :-)
Please read details below:

---------------------------------
  Modified:    src/org/netbeans/core/ui IDESettingsWizardPanel.java
  Log:
  fix for incorrect assumption that getComponent
  must be called before readSettings.
  Now they can be called in any order.
  
  Revision  Changes    Path
  1.3       +2 -2      core/src/org/netbeans/core/ui/IDESettingsWizardPanel.java
  
 
http://core.netbeans.org/source/browse/core/src/org/netbeans/core/ui/IDESettingsWizardPanel.java.diff?r1=1.2&r2=1.3
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: IDESettingsWizardPanel.java
  ===================================================================
  RCS file: /cvs/core/src/org/netbeans/core/ui/IDESettingsWizardPanel.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- IDESettingsWizardPanel.java	2002/12/03 14:10:35	1.2
  +++ IDESettingsWizardPanel.java	2003/01/24 13:45:30	1.3
  @@ -7,7 +7,7 @@
    * http://www.sun.com/
    * 
    * The Original Code is NetBeans. The Initial Developer of the Original
  - * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
  + * Code is Sun Microsystems, Inc. Portions Copyright 1997-2003 Sun
    * Microsystems, Inc. All Rights Reserved.
    */
   
  @@ -42,7 +42,7 @@
       */
       public void readSettings (Object settings) {
           if (settings instanceof WizardDescriptor) {
  -            panelUI.initFromSettings((WizardDescriptor)settings);
  +            getPanelUI().initFromSettings((WizardDescriptor)settings);
           }
       }
   
Comment 8 Ondrej Rypacek 2003-02-27 15:15:22 UTC
verified