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 46127 - Debugging of forms - source code is not displayed automatically
Summary: Debugging of forms - source code is not displayed automatically
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Milos Kleint
Depends on:
Reported: 2004-07-14 12:25 UTC by _ lcincura
Modified: 2008-12-22 15:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

api diffs. (2.42 KB, patch)
2004-08-18 08:33 UTC, Milos Kleint
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ lcincura 2004-07-14 12:25:39 UTC
NetBeans IDE 200407131800 on java 1.4.2_05

1, Open ColorPicker example
2, Place breakpoint somewhere in
file and close the file in editor
3, Start debugging => when the brakpoint is hit,
the file is opened, but form editor view is
dislayed. User has to manually switch to source view.

Same behaviour is observed when stepping into form
source which is not opened.
Comment 1 Jan Jancura 2004-07-14 15:00:11 UTC
=> form
Comment 2 Jan Stola 2004-07-15 13:53:09 UTC
Partially fixed - source code is correctly shown when
the form is not already opened. The only problem is with
forms that are already opened and switched to Design view.
Milos, any idea how to recognize that the multiview should
be switched to Source view in this case?
Comment 3 Milos Kleint 2004-07-30 08:53:40 UTC
*** Issue 46763 has been marked as a duplicate of this issue. ***
Comment 4 Jesse Glick 2004-07-30 20:16:14 UTC
Scenario in issue #46763 is somewhat different.
Comment 5 Milos Kleint 2004-08-18 08:15:45 UTC
I have a fix in my local working directory. The fix however changes
some API so apireview is necessary. attaching diffs.
Comment 6 Milos Kleint 2004-08-18 08:33:37 UTC
Created attachment 16903 [details]
api diffs.
Comment 7 Milos Kleint 2004-08-18 08:35:32 UTC
please review my changes to the CloneableEditorSupport.Pane interface.
The additional interface method allows the multiviews to delegate
correctly to the appropriate editor tab in the multiview components.
Comment 8 Jaroslav Tulach 2004-08-18 08:58:07 UTC
Looks like there is an api change in CloneableEditor as well. I am not
sure whether it is intended or not. 
Comment 9 Milos Kleint 2004-08-18 09:00:28 UTC
the CloneableEditor implements CloneableEditorSupport.Pane and the
added methods is the implementation of that added interface method.
Comment 10 Milos Kleint 2004-08-24 08:52:57 UTC
Comment 11 Milos Kleint 2004-08-24 08:53:33 UTC
fixed in trunk, updated api changes document.
Comment 12 _ lcincura 2004-10-19 10:41:41 UTC
Verified on build 200410181800