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 21507 - Show JavaDoc action does not reuse browser properly
Summary: Show JavaDoc action does not reuse browser properly
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: API, UI
Depends on:
Blocks:
 
Reported: 2002-03-12 18:28 UTC by _ pkuzel
Modified: 2008-12-22 19:39 UTC (History)
1 user (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 _ pkuzel 2002-03-12 18:28:34 UTC
I use internal Swing browser.

I invoke Show JavaDoc action and dock result browser into e.g. Explorer. Then if
I again invoke the action a _new_ browser is opened instead of reusing and
focusing the docked one.
Comment 1 Svata Dedic 2002-03-22 15:02:53 UTC
The action is implemented in the Editor module; reassigning.
BTW it may be posisble that TopManager.showURL() misbehaves, but I
can't decide from the method's documentation.
Comment 2 Martin Roskanin 2002-03-28 10:32:34 UTC
Reassigning to openide. Editor uses TopManager.showUrl() and it seems 
that the problem could be there.
(I cannot reproduce this bug on Windows2000 using JDK 1.3.1_02 using 
SDI )
Comment 3 _ rkubacki 2002-04-02 15:44:23 UTC
Strange. it works for me with NB3.3 and with trunk builds too (I tried
both SDI and MDI). Petr, have you tried it with clean userdir?
Comment 4 _ pkuzel 2002-05-30 14:56:41 UTC
I can reproduce it. Problem is that the TopComponent forgets last mode
it was docked into on its close.

May be that all TopComponents should remember it by default.
Comment 5 _ pkuzel 2002-05-30 15:09:39 UTC
The same applies to pure internal web browser. Try to open a .html and
dock it somewhere. Modify the .html and view again (changes are not
propagated). Close the top component. Open the .html again and see new
Mode...
Comment 6 Jonathan Allin 2002-06-02 17:26:05 UTC
Problem occurs with Windows NT4 and MSIE 5
Comment 7 _ rkubacki 2002-06-06 16:47:47 UTC
It doesn't look like swing browser specific problem. It is related to
window system. 

The last comment should be different issue.
Comment 8 David Simonek 2002-06-07 12:33:37 UTC
first part is worksforme - show javadoc now keeps its constraints,
even between sessions.
However, internal browser doesn't. Once you close internal browser
that was docked somewhere, new one is opened again in default shape.
Comment 9 Marek Grummich 2002-07-22 11:23:39 UTC
Set target milestone to TBD
Comment 10 Marek Grummich 2002-07-22 11:26:25 UTC
Set target milestone to TBD
Comment 11 Peter Zavadsky 2002-12-03 10:07:20 UTC
The problem is the NbBrowser component reference is not kept
(NbTopManager.NbBrowser) when closed. Thus winsys loses info about the
component.

Seems it was designed the way.

Asking UI to say some words to this, whether it has to be changed like
 Petr asks.

There is also strange thing for me, why the component doesn't have a
name? (It makes problem when serializing it).
Comment 12 jrojcek 2003-03-04 13:47:57 UTC
Web browser should remember where it was open last time. If it is
open, show javadoc action should reuse the open browser.
Comment 13 mslama 2003-03-17 10:03:07 UTC
Assigning to Peter who worked on this issue before.
Comment 14 Peter Zavadsky 2003-03-20 07:11:51 UTC
I just discovered the cause of issue, probably. I din't work on it
before. Assigning to Radim, it seems that NbBrowser was his job.
Comment 15 _ rkubacki 2003-03-20 08:31:17 UTC
NbTopManager.NbBrowser is in core and winsys is also core team's
responsibility. I am not an expert for this area.
Comment 16 mslama 2004-04-19 15:04:06 UTC
Assigning to Tim
Comment 17 _ tboudreau 2004-06-27 02:12:15 UTC
This is another issue (like search results), where we need an
additional persistence type: "Remember my bounds and where I'm docked,
but don't reopen me on restart"
Comment 18 _ tboudreau 2004-07-21 23:38:21 UTC
Needs an API and so won't be fixed for promo-D.  Always reopening an empty browser 
would be worse than forgetting it after shutdown.
Comment 19 _ tboudreau 2004-07-25 02:31:51 UTC
Forgot to close.
Comment 20 Marian Mirilovic 2005-07-12 10:02:46 UTC
closed