You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Laszlo Kishalmi (JIRA)" <ji...@apache.org> on 2018/04/26 22:31:00 UTC

[jira] [Commented] (NETBEANS-713) HighlightingManager does not track changes to HighlightsLayerExcludes correctly

    [ https://issues.apache.org/jira/browse/NETBEANS-713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16455489#comment-16455489 ] 

Laszlo Kishalmi commented on NETBEANS-713:
------------------------------------------

Marked in progress as PR is available and [~emi] would like to merge it as well.

> HighlightingManager does not track changes to HighlightsLayerExcludes correctly
> -------------------------------------------------------------------------------
>
>                 Key: NETBEANS-713
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-713
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 8.2, 9.0
>            Reporter: Eirik Bakke
>            Assignee: Emilian Bold
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 9.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The editor API defines the JEditorPane client properties [HighlightsLayerExcludes and HighlightsLayerIncludes|http://bits.netbeans.org/dev/javadoc/org-netbeans-modules-editor-lib2/index.html?org/netbeans/spi/editor/highlighting/package-summary.html] to allow clients to show/hide specific highlight layers on demand. The bug is that modifications to these properties are not reflected properly in the editor.
> The use case here is for a NetBeans Platform application that needs to modify the client properties depending on user action (e.g. keyboard focus state).
> The bug seems to be in o.n.modules.editor.lib2.highlighting.HighlightingManager.Highlighting. In the constructor, the paneFilter variable is initialized once from the HighlightsLayerExcludes/HighlightsLayerIncludes client properties, right above where the propertyChangeListener that is supposed to track changes to it is added. The PropertyChangeListener reacts to changes to the client properties by calling rebuildAllLayers(), which calls rebuildAllLayersImpl(), which always just uses the value of paneFilter set in the constructor.
> Originally reported as Bugzilla bug [248664|https://netbeans.org/bugzilla/show_bug.cgi?id=248664]. Adding this as a JIRA issue to associate with a pull request that I'm about to open.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists