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 16974 - Create variables to be shared for setting all relevant properties
Summary: Create variables to be shared for setting all relevant properties
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 4030 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-25 19:20 UTC by Rochelle Raccah
Modified: 2008-04-28 13:32 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rochelle Raccah 2001-10-25 19:20:00 UTC
Very often, the form editor's code is generated as follows:

someComponent.setSomeProperty(something.getWhatever().someMethod());
someOtherComponent.setSomeProperty(something.getWhatever().someOtherMethod());

It would be nice for the form editor to pull out the "something.getWhatever()"
into a variable and use it for setting all relevan properties:

Object someVariable = something.getWhatever();

someComponent.setSomeProperty(someVariable.someMethod());
someOtherComponent.setSomeProperty(someVariable.someOtherMethod());
Comment 1 Jan Chalupa 2001-11-27 12:38:12 UTC
Target milestone -> 3.3.1.
Comment 2 Marek Grummich 2002-07-22 09:57:33 UTC
Set target milestone to TBD
Comment 3 Marek Grummich 2002-07-22 10:01:02 UTC
Set target milestone to TBD
Comment 4 Tomas Pavek 2005-05-16 18:06:11 UTC
Potentially nice feature.
Comment 5 Tomas Pavek 2005-05-16 18:35:01 UTC
*** Issue 4030 has been marked as a duplicate of this issue. ***