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 30653 - [SDI] Only main window is open when IDE is started from XTest
Summary: [SDI] Only main window is open when IDE is started from XTest
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: mslama
URL:
Keywords: T9Y
Depends on:
Blocks: 30616
  Show dependency tree
 
Reported: 2003-02-04 14:49 UTC by Jiri Skrivanek
Modified: 2008-12-23 09:30 UTC (History)
4 users (show)

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 Jiri Skrivanek 2003-02-04 14:49:03 UTC
It starts to happen from build 200301300100. In
changelog there are reported some improvements in
workspace switching. Cannot these changes be
blamed for this misbehaviour?

It happens only on windows platforms and only when
IDE is started by XTest infrastructure. IDE is
started in SDI mode with switches
-J-Dnetbeans.full.hack=true -J-Dnetbeans.windows=sdi.
Comment 1 mslama 2003-02-05 16:03:07 UTC
IDE startup was not changed. Only workspace switch. (Calls
ModeImpl.setVisible() are delayed.)
Comment 2 mslama 2003-02-05 16:04:18 UTC
IDE startup was not changed. Only workspace switch. (Calls
ModeImpl.setVisible() are delayed.)
Comment 3 Marian Mirilovic 2003-02-05 16:06:59 UTC
Yes, I have tried it (and look at results from [nb_dev](20030205)) and
it looks like works fine now. 
Jirka, do you have another experience? 
If not please close it as WORKSFORME, thanks.
Comment 4 Jiri Skrivanek 2003-02-06 10:03:06 UTC
It is in build 200301060100 also. In another test case it happens in
this sequence:

- switch to GUI Editing workspace
- switch to Debugging workspace
- switch to Editing workspace => only the Main window is open (not
Explorer and Properties sheet)
Comment 5 _ ttran 2003-02-14 09:16:58 UTC
Status?  jskrivanek,  does it work in the latest builds?
Comment 6 Jiri Skrivanek 2003-02-17 08:12:36 UTC
Hopefully fixed. It haven't happened since 200302070100. 
Comment 7 Marian Mirilovic 2003-02-17 09:19:17 UTC
It's still reproducible in [nb_dev](20030217), on Win2000. I can
provide link to results.
Comment 8 mslama 2003-02-17 16:52:47 UTC
We will try to investigate it with Marian. There are still some
changes in workspace switching but Marian says that it happens even at
first IDE start but IDE start is not influenced by these changes in
workspace switching.
Comment 9 mslama 2003-02-24 17:03:14 UTC
It is very difficult to reproduce it. Thanks to Marian I was able to
investigate it. There was incorrect (not always working) condition to
detect IDE startup during opening project.

  -                // don't reset anything if no worspaces are loaded
(first start for example)
  -                if (wmi.getWorkspacesNoLoad().length == 0) {
  +                //Do not reset during IDE startup.
  +                if (!wmi.isWasIDEStarted()) {

wmi.getWorkspacesNoLoad() could return non empty array even during IDE
startup. It caused reset of winsys DataObjects ->  winsys thought
there is nothing to be updated -> no windows was opened. I added
dedicated flag to detect first project opening during IDE startup.

Modified:
core/src/org/netbeans/core/windows/WindowManagerImpl.java r.1.171
Comment 10 mslama 2003-02-25 12:43:19 UTC
Second part of fix was added to handle case when projects module is
not installed/enabled during IDE start. (MainWindow is opened after
project is opened during IDE start.)

Modified:
core/src/org/netbeans/core/windows/MainWindow.java r.1.56
Comment 11 Marian Mirilovic 2003-02-27 18:59:24 UTC
verified in [nb_dev](20030227)