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 145893 - Extra empty lines in code after deleting components in Visual Designer
Summary: Extra empty lines in code after deleting components in Visual Designer
Status: NEW
Alias: None
Product: javame
Classification: Unclassified
Component: Visual Designer (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Karol Harezlak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-02 11:52 UTC by Andrei Chistiakov
Modified: 2009-05-25 21:01 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 Andrei Chistiakov 2008-09-02 11:52:10 UTC
Product Version: NetBeans IDE Dev (Build 200809020201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

To reproduce:
- create Mobile App with Hello MIDlet;
- switch to Flow;
- delete Form;
- switch to Source.

See 4 extra empty lines below getExitCommand(), 
    2 extra empty lines below switchDisplayable(Alert alert, Displayable nextDisplayable)

If user adds/removes components many times, such gaps appear and grow up in many places thoughout the code.
Comment 1 Karol Harezlak 2008-09-03 15:03:21 UTC
That is true. Our approach was to leave managing source code to the developer outside guarded blocks. It may be
difficult to recognize what should be erase and what should stay. So I'd rather leave it as it is because in my opinion
it's not hitting usability of the Visual Designer. As usually if you have different opinion let me know, but most likely
I wont be able to fix it for 6.5.