You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/07/23 07:05:00 UTC

[jira] [Commented] (ISIS-2818) Add overrides for XxxDomainEvent for hide/disable/invalidate to evaluate a supplier

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

ASF subversion and git services commented on ISIS-2818:
-------------------------------------------------------

Commit eafed8d4b7874a5f81dfda0dbf7eeab9566137cb in isis's branch refs/heads/2573_entity.ch.tr from Andi Huber
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=eafed8d ]

ISIS-2818: Add overrides for XxxDomainEvent for hide/disable/invalidate
to evaluate a supplier


> Add overrides for XxxDomainEvent for hide/disable/invalidate to evaluate a supplier
> -----------------------------------------------------------------------------------
>
>                 Key: ISIS-2818
>                 URL: https://issues.apache.org/jira/browse/ISIS-2818
>             Project: Isis
>          Issue Type: Improvement
>          Components: Isis Core
>    Affects Versions: 2.0.0-M5
>            Reporter: Daniel Keir Haywood
>            Assignee: Andi Huber
>            Priority: Trivial
>             Fix For: 2.0.0-M6
>
>
> Rather than:
> {code:java}
> if (hubCurrentService.currentHub().isEmpty()) {
>   ev.hide();
> } {code}
> I'd prefer to write:
> {code:java}
> ev.hideIf(hubCurrentService.currentHub().isEmpty());{code}
> or more flexibly:
> {code:java}
> ev.hideIf(() -> hubCurrentService.currentHub().isEmpty()); {code}
>  



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