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 78746 - Project views are switching after creating Empty BlueJ
Summary: Project views are switching after creating Empty BlueJ
Status: CLOSED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: BlueJ (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2006-06-21 10:31 UTC by Marian Mirilovic
Modified: 2008-10-10 16:25 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
suggested change in projectui module (5.13 KB, patch)
2007-02-01 15:07 UTC, Milos Kleint
Details | Diff
relevant patch for 551 (4.90 KB, patch)
2007-02-21 08:11 UTC, Milos Kleint
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2006-06-21 10:31:50 UTC
NetBeans 5.0 BlueJ edition 200601251500 
JDK 1.5.0_06

Steps to reproduce:
- run IDE
- create Empty BlueJ project
-> views are switching Projects, BlueJ, Projects, BlueJ
Comment 1 Milos Kleint 2006-06-22 13:01:31 UTC
unfortunately not fixable within our current constraint (running against
binaries of netbeans 5.0)
the fix would involve rewriting the open project action to chage the component
opening/activation logic.
Comment 2 Milos Kleint 2007-02-01 15:07:39 UTC
Created attachment 37924 [details]
suggested change in projectui module
Comment 3 Milos Kleint 2007-02-01 15:12:51 UTC
please review this minor change to projects/projectui module. introduces a
system property check that influences behaviour.
Comment 4 Milos Kleint 2007-02-07 12:22:07 UTC
thanks for review I will integrate tomorrow.
Comment 5 Jesse Glick 2007-02-07 16:11:47 UTC
Please choose a different system property name that reflects the behavior, not
the fact that it is used in BlueJ (though that fact can be mentioned in arch.xml).


Generally use Boolean.getBoolean, not System.getProperty(...) != null. Otherwise
-Dprop=false or even -Dprop= will act like -Dprop=true, which is surprising. In
this case the default value is true, so you need to check
System.getProperty(...) == null || Boolean.getBoolean(...), or something like that.


"focus it's own component" -> "focus its own component" ("it's" ~ "it is"; "its"
~ jeho)
Comment 6 Milos Kleint 2007-02-08 13:42:24 UTC
fixed in trunk.
Comment 7 Milos Kleint 2007-02-21 08:11:09 UTC
Created attachment 38742 [details]
relevant patch for 551
Comment 8 _ rkubacki 2007-02-21 08:21:23 UTC
Looks OK to me.
Comment 9 Milos Kleint 2007-02-21 08:38:56 UTC
adding 551 candidate tag
Comment 10 Marian Mirilovic 2008-10-10 16:25:26 UTC
v/c