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 203774 - Highlighted Word Does Not Re-Highlight On Mercurial History's Textual Diff View
Summary: Highlighted Word Does Not Re-Highlight On Mercurial History's Textual Diff View
Status: RESOLVED DUPLICATE of bug 203340
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.1
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-16 07:55 UTC by MackSix
Modified: 2011-10-18 11:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot of what it should look like. (138.93 KB, image/png)
2011-10-16 07:55 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2011-10-16 07:55:34 UTC
Created attachment 112094 [details]
Screenshot of what it should look like.

If I open a Java file and do a highlighted search on a word and then view the Graphical or Textual Diff view on the Mercurial History Window, the same word is highlighted in orange there.

If I then go back to the tab view of the Java file and un-check "Highlight Results" on the Search Bar and then recheck it again, the word is still highlighted on the Mercurial History's Graphical Diff view, but it is not highlighted on Textual view.

1) Open a Java file that is in a Mercurial project.
2) Open Search Bar (Ctrl+F) and make sure "Highlight Results" is checked.
3) Search a word in the file.
4) Look at the Mercurial history of the project and do a Diff on the same file.
5) Observe that the word is highlighted in orange in both the Graphical and Textual tab.
6) Go back and un-check "Highlight Results" and then re-check it again.
7) Notice that the word is still highlighted in the Mercurial history's Graphical Diff view but it is not in the Graphical view.

Workaround: Press Ctrl+F in Textual Diff view of the file and click the "Find" button to bring the orange highlight back.

Product Version: NetBeans IDE Dev (Build 201110150600)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 1 MackSix 2011-10-16 08:14:13 UTC
I discovered another problem - setting back to P3.

I think this may be related to this bug:

http://netbeans.org/bugzilla/show_bug.cgi?id=203340

Because once I am in the Textual Diff View and I do Ctrl+F and do a search to highlight the word, it breaks the link between the checkbox on the Search Bar at the bottom of the source view and teh "Toggle Highlight Search" button on the source's toolbar. So if I check/un-check the box on the Search bar, the "Toggle Highlight Search" button on the source toolbar does not toggle on/off. If I toggle the "Toggle Highlight Search" button the check box does not check/un-check.
Comment 2 MackSix 2011-10-16 09:34:43 UTC
This is complicated, so I made a video:

http://www.youtube.com/watch?v=HHj3OKjSVJk
Comment 3 Milutin Kristofic 2011-10-18 11:36:38 UTC
Find dialog in diff is old find dialog - I reused it just to have a simple search functionality in diff. I will push to have a search bar in diff in next release.

*** This bug has been marked as a duplicate of bug 203340 ***