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 50762 - "Fix" action enabled only on main project
Summary: "Fix" action enabled only on main project
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-23 01:41 UTC by Jesse Glick
Modified: 2006-03-24 10:22 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 Jesse Glick 2004-10-23 01:41:56 UTC
041022 custom, 1.5.0. I noticed that if you have a
project (j2seproject, or freeform w/ "debug.fix"
action binding) that is *not* set as the main
project, and you debug it (e.g. by right-clicking
the project node), then select a class in the app,
Debug -> Fix will still be disabled. However if
you set the project as the main project, Debug ->
Fix will become enabled (and work fine).

This looks like a bug to me. What difference does
it make whether this is the main project or not?
If the files belong to a project with a
'debug.fix' binding, you can call it, just like F9
is available regardless of the main project (etc.).

Would be P3 - an odd thing - if that were all
there was; but I also found that if you have
j2seproject A depends on j2seproject B, and set A
as the main project and debug it, you can invoke
Fix on classes in A but not on classes in B. This
effectively means that Fix & Continue is not
available for subprojects (unless you know the
unintuitive workaround: temporarily set the main
project to the project with the files you want to
reload).

I think I mentioned this before as an aside in
various other bug reports, but never reported it
alone (IIRC).
Comment 1 Jan Jancura 2004-10-25 13:49:42 UTC
Looks like we are using main project for fix&continue action in place
of the project the current file belongs to.
Comment 2 Jesse Glick 2004-10-25 18:41:47 UTC
Right. I guess the confusion is because F&C is the only
debugger-related project action which is sensitive to the particular
file selection.
Comment 3 Maros Sandor 2004-10-26 13:48:54 UTC
Fix action now acts on the current file's project instead on the main 
project.

/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/FixAc
tionProvider.java,v  <--  FixActionProvider.java
new revision: 1.14; previous revision: 1.13
Comment 4 Max Sauer 2005-07-11 08:15:30 UTC
Verified in nbdev 2005070601800.