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 41798 - Switching to Diff Viewer tab does not change focused file
Summary: Switching to Diff Viewer tab does not change focused file
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Diff (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P4 blocker with 1 vote (vote)
Assignee: diff-issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 17:09 UTC by Nils Erichson
Modified: 2007-09-25 14:16 UTC (History)
0 users

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 Nils Erichson 2004-04-07 17:09:15 UTC
When switching to a Diff Viewer tab, it seems that
the "currently focused
file" is not updated, and subsequent actions (such
as CVS Commit, Print or Compile) are applied to
the previously active file.

Example/How to reproduce:

* Open tabs for two souce files, Foo.java and Bar.java
* Select tab for Foo.java
* Perform "CVS Diff Graphical" action
  --> Diff Viewer tab for Foo.java is added
* Switch to tab for Bar.java
* Switch to "Diff viewer: Foo.java" tab
* Perform an action (such a CVS Commit, Compile or
Print)
  --> Action is applied to Bar.java, not Foo.java
as intended

The CVS Commit situation is the one which causes
the most trouble for me as I usually create diffs of
my edited files and view them before committing
them (to help me write more
informative commit messages). After viewing a diff
it frequently happens
that I press the commit button, and commit a
different file than I had intended to (usually
resulting in loud cursing and then having to roll 
back the commit).

Issue 22847 might help my particular problem
somewhat, but it is still confusing to have
actions such as Compile or Print apply to
something else than what is currently viewed.

This behaviour is the same in 3.5, 3.6RC1 and 3.6 RC3.
Comment 1 Jan Lahoda 2004-04-09 10:52:30 UTC
Assigning to diff module for evaluation.
Comment 2 Martin Entlicher 2004-04-09 17:47:39 UTC
The diff window does not set any selected file. It does not remember
the DataObject upon which it was invoked.

This is more like an enhancement, but I agree, that the behavior can
be unexpected. Scheduling for promotion D.
Comment 3 Maros Sandor 2007-09-25 14:16:33 UTC
Please reopen if you can still reproduce similar scenario in current 6.0 builds.