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 120013 - User post-init code deleted
Summary: User post-init code deleted
Status: RESOLVED DUPLICATE of bug 115481
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: David Kaspar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-25 12:24 UTC by misterdom
Modified: 2007-10-25 14:02 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 misterdom 2007-10-25 12:24:48 UTC
Whenever I add an element in the flow view of the visual designer (for Midlets), the system deletes the post-init code I
entered previously.

E.g. 
 //<editor-fold defaultstate="collapsed" desc=" Generated Getter: detailsForSelectedAsset ">                           
       
    /**
     * Returns an initiliazed instance of detailsForSelectedAsset component.
     * @return the initialized component instance
     */
    public Form getDetailsForSelectedAsset() {
        if (detailsForSelectedAsset == null) {                                 
            // write pre-init user code here
            detailsForSelectedAsset = new Form("Details for Your Item", new Item[] { getDetailsForAsset() });          
                         
            detailsForSelectedAsset.addCommand(getOkCommand());
            detailsForSelectedAsset.addCommand(getBackCommand());
            detailsForSelectedAsset.setCommandListener(this);                                  
            // write post-init user code here
                    showDetailsForAsset();
        }                         
        return detailsForSelectedAsset;
    }
    //</editor-fold>           
The system would delete the call to showDetailsForAsset(); whenever I try adding some elements (like a back button) in
the flow view.

Besides this, Netbeans 6.0 rules, I'm just amazed, programming with this IDE is so fun that I forget the hours I spend
on it! Thanks!
Comment 1 Lukas Hasik 2007-10-25 12:51:33 UTC
IMO, this is duplicate of issue 115481. Could you check if I'm right? What build are you using?
Comment 2 misterdom 2007-10-25 13:45:30 UTC
You're entirely right. Sorry I just did not spot it when looking for it. I'll try downloading the patch and report in
case it still does not work. I'm using the Beta 1 available on the website (no patch so far).

Thanks a lot, keep this great IDE growing!

Dom
Comment 3 misterdom 2007-10-25 13:50:09 UTC
Downloaded the patch and it solves it all. Cheers, have a good day.
Comment 4 misterdom 2007-10-25 13:50:51 UTC
Downloaded the patch from the update center and it solves it all. Cheers, have a good day.
Comment 5 Lukas Hasik 2007-10-25 14:01:22 UTC
c
Comment 6 Lukas Hasik 2007-10-25 14:02:26 UTC

*** This issue has been marked as a duplicate of 115481 ***