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 13277 - [jdk1.4]Run to Cursor action does not work
Summary: [jdk1.4]Run to Cursor action does not work
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
: 15832 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-06-28 15:32 UTC by Jan Stola
Modified: 2003-06-30 17:28 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 Jan Stola 2001-06-28 15:32:12 UTC
Netbeans build 20010627
-----------------------

1. Debugger cannot be started by Run to Cursor action.
2. When you debug some application and try to use
   Run to Cursor action, nothing happens.
Comment 1 Jan Stola 2001-06-28 15:39:19 UTC
On JDK 1.4.0b70.
Comment 2 Daniel Prusa 2001-07-25 16:13:48 UTC
The reason why Run to Curson action does not work:

If Run to Cursor is invoked, JEditorPane managing focus have to be 
detected. It is done as follows:

EditorCookie edCookie = (EditorCookie) activatedNodes [0].getCookie 
(EditorCookie.class);
JEditorPane [] panes = edCookie.getOpenedPanes();
for (int x = 0; x < panes.length; x++)
  if (panes[x].isManagingFocus())
    ... select this pane and apply the action on it ...
 
However, in case of JDK 1.4, none of the opened panes returns true, 
if isManagingFocus () is called. It causes that the action is ignored.
Comment 3 Jan Stola 2001-07-25 16:37:10 UTC
Seems to be out of scope of the debugger modules -> moving to editor.
Comment 4 David Konecny 2001-07-31 09:28:25 UTC
just changing summary
Comment 5 Miloslav Metelka 2001-09-03 16:22:10 UTC
... from Bug Parade, search ismanagingfocus
http://developer.java.sun.com/developer/bugParade/bugs/4476300.html
Comment 6 Jan Kovar 2001-09-17 15:33:53 UTC
Bug fixed in pilsenfixes branch.
The solution is to use isFocusOwner instead of isManagingFocus when 
working with JDK1.4.
It also means that reflection must be used to call those methods.
See <http://ffj.ebay/INF/integrationReport.jsp?id=3740> for details
Comment 7 Jan Zajicek 2001-09-18 14:42:43 UTC
I tested the JP3 and have to say that after installing all patches the
problem persist - debugger cannot be started by run to cursor action
Comment 8 Jan Zajicek 2001-09-18 14:49:16 UTC
Additional info: the F4 key works but invoking actiop from menu doesn't.
Comment 9 Jan Stola 2001-09-24 11:30:15 UTC
*** Issue 15832 has been marked as a duplicate of this issue. ***
Comment 10 Tomas Brandalik 2001-09-25 11:49:56 UTC
Build: Pilsen fcs
OS: Linux RH 7.1
jdk: jdk1.4.0 b77

IDE patched with Jumbo patch 3.1
F4 key doesn't work, menu and button doesnt work.
Comment 11 Tomas Brandalik 2001-09-25 13:04:59 UTC
My userdir has pointed into wrong not updated directory.
F4 key works fine.
Comment 12 Jan Stola 2001-10-01 15:56:59 UTC
Summary for the merlin-patch:
-----------------------------
1. Everything is OK on JDK 1.3.x.
2. Shortcut (F4) works correctly on JDK 1.4.
3. Menu item and toolbar button don't work on JDK 1.4.
Comment 13 Miloslav Metelka 2001-10-24 11:33:55 UTC
I think this is no longer an editor problem so I'm reassigning to
debugger.
Comment 14 Daniel Prusa 2001-10-25 16:22:21 UTC
All three types of Run To Cursor action invocation work well using 
build 200110240100 and VM 1.4.0-beta2-b77.
Comment 15 Jan Stola 2001-10-29 16:03:15 UTC
Reopened due to wrong resolution.
Comment 16 Jan Stola 2001-10-29 16:04:17 UTC
Fixed in main trunk.
Comment 17 Jan Stola 2001-10-29 16:05:39 UTC
Verified in Netbeans build 20011029 with JDK1.4.0-beta2-build77.
Comment 18 Quality Engineering 2003-06-30 17:28:01 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.