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 16511 - Form Editor Window is broken after New project creation
Summary: Form Editor Window is broken after New project creation
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-12 12:52 UTC by Marian Mirilovic
Modified: 2008-12-23 09:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch16511.jar (130.39 KB, application/octet-stream)
2001-10-18 17:14 UTC, mslama
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2001-10-12 12:52:59 UTC
[nb_dev](20011012),[jdk1.3.1](rc1)

Steps to reproduce:
- run IDE
- open examples.MemoryView 
- Project | Project Manager | New Project
- type some name for new project
	-> now sometimes (1/5) Source Editor closed but Form Editor Window stay opened
without Form Designer (Component Palette and Component Inspector are visible)
- if you hadn't saw this behaviour continue and open examples.MemoryView again
in New Project
	-> now is Form Editor Window opened but without Form Designer

Maybe project issue, please feel free to reassigne.
Comment 1 David Simonek 2001-10-17 14:14:48 UTC
Reassigned. Please, try to fix it to this Thursday (Q build).
Comment 2 mslama 2001-10-18 17:14:09 UTC
Created attachment 3060 [details]
Patch16511.jar
Comment 3 mslama 2001-10-18 17:19:27 UTC
Patch attached. Modes are now closed when project is switched. One
additional problem: Explorer is not sometimes displayed correctly
after Project switch. Eg. open Form Editor in default project. Create
new project, switch back to default project => explorer is empty.
Comment 4 Jan Zajicek 2001-10-19 14:33:00 UTC
Increassing to P1. Needs for beta and wasn't fixed as qbuild stopper.
Comment 5 mslama 2001-10-19 15:44:23 UTC
Fixed.

Changed files: 
org/netbeans/core/windows/WindowManagerImpl.java, r.1.108
org/netbeans/core/windows/WorkspaceImpl.java, r.1.77
org/netbeans/core/windows/frames/DefaultContainerImpl.java, r.1.38
org/netbeans/core/windows/frames/SplitContainerImpl.java, r.1.26

Added closing modes/top components when project is closed/switched.

Additional problems fixed: 
1.Adding top components to internal list in DefaultContainerImpl
modified to keep top component order according to order weight.It is
necessary to keep correct order of tabs.
2.Minor fix in SplitContainerImpl.componentAdded. Due to fix 1, it is
not always true that first top component in list is always first top
component added to container.

Fix is committed to main trunk. Attached patch is not valid (Patch
does not solve all problems mentioned above.)
Comment 6 Jan Zajicek 2001-10-23 13:25:53 UTC
Behaviour verified in beta1 candidate - #20011022

See new issue #16852 - sometimes isn't the source editor opened.
Comment 7 Quality Engineering 2003-07-01 16:50:20 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.