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 217677 - HTML Navigator needs the ability to follow browser selection when Select Mode is on
Summary: HTML Navigator needs the ability to follow browser selection when Select Mode...
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Jan Stola
URL:
Keywords:
: 217554 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-31 11:02 UTC by Petr Jiricka
Modified: 2012-09-19 12:29 UTC (History)
4 users (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 Petr Jiricka 2012-08-31 11:02:01 UTC
Currently, the navigator always follows the activated window (either code editor, or projects/files tab, or the embedded browser, etc.) and mirrors the file represented by this activated window. 

As we discussed in the mailing list, in case Select Mode is on, it would be beneficial sometimes if Navigator was following the browser instead, so change of selection in the Navigator does not break the styling workflow. 

This is mainly a tracking issue, because it's not clear:
- how exactly it should behave, and what is the exact desired behavior
- what exactly is feasible and achievable

Needs to be further discussed before making this change.
Comment 1 Petr Jiricka 2012-08-31 11:06:11 UTC
> if Navigator was following the browser instead

This refers mainly to the external browser: in the embedded browser case the browser window is often the activated window, so usually the navigator displays the right file. With the external browser that's not the case.
Comment 2 Jan Becicka 2012-08-31 11:46:02 UTC
Navigator (not only html, but all) follows activated node. This is the main concept of navigator. This is how Navigator component works.
Comment 3 Petr Jiricka 2012-09-06 16:23:50 UTC
The solution agreed on in the UI meeting is:
1. Ideally, when turning on select mode in Chrome, the Navigator window in the IDE should become activated (or as a backup solution, the CSS Styles window).
2. Focus/activated node in this case should be driven by the CSS Styles window. So when the user turns on select mode in Chrome, the CSS Styles window will provide lookup corresponding to the browser URL, so the navigator can follow that.

A similar solution was already implemented for the embedded browser window, per issue 216794. In that case, the required changes were implemented on both the embedded browser side and navigator side, so hopefully things will "just work" the CSS Styles window provides the same information as the embedded browser window.

This is a highly visible workflow issue, so changing to P2 defect - must be fixed by 7.3 beta. Assigning to Honza as the owner of the CSS Styles window.
Comment 4 Petr Jiricka 2012-09-11 15:12:06 UTC
*** Bug 217554 has been marked as a duplicate of this bug. ***
Comment 5 Jan Stola 2012-09-19 12:28:25 UTC
Fixed - lookup of CSS Styles view has been modified such that Navigator shows DOM tree of the inspected file when the view is activated. Moreover, this view is activated automatically whenever Select Mode or selection is modified in the external browser.