You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2020/12/18 11:49:00 UTC

[jira] [Comment Edited] (NETBEANS-5167) Progress Controller skips lifecycle events for a ProgressHandle

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

Svatopluk Dedic edited comment on NETBEANS-5167 at 12/18/20, 11:48 AM:
-----------------------------------------------------------------------

progress1.log - shows how START event is obscured by subsequent events
progress-patch.diff patch to *Controller** that provides extra logging.

Log is captured from NetBeans startup, with some opened projects (scanned source roots can be seen in the progress events).


was (Author: sdedic):
progress1.log - shows how START event is obscured by subsequent events
progress-patch.diff patch to *Controller** that provides extra logging.

> Progress Controller skips lifecycle events for a ProgressHandle
> ---------------------------------------------------------------
>
>                 Key: NETBEANS-5167
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5167
>             Project: NetBeans
>          Issue Type: Bug
>          Components: platform - Progress
>    Affects Versions: 12.2
>            Reporter: Svatopluk Dedic
>            Priority: Major
>         Attachments: progress-patch.diff, progress1.log
>
>
> When progress is started, an event of type *PROGRESS_START* is generated. But it may get merged with e.g. SILENT or SWITCH events, as the attached log shows.
> The net result is that the *ProgressUIWorker* does not see the proper lifecycle (start .... processing ... finish) but just a part of the cycle.
> The fix is beyond my immediate capacity: while two 'progress' events can be eventually merged, events that bring determinate / indeterminate switch or silent / working state changes should not discard the other 'major' states.
> Skipping the important lifecycle points makes the implementation of UIWorker much harder.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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