Arik Hadas has uploaded a new change for review. Change subject: frontend: minor refactoring in UICommand ......................................................................
frontend: minor refactoring in UICommand Change setIsExecutionAllowed to return the 'this' object to allow calling this method using fluent API Change-Id: I7fcdeae310b33b28f9be8176f0dea34b4a92b083 Signed-off-by: Arik Hadas <aha...@redhat.com> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/UICommand.java 1 file changed, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/14/35714/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/UICommand.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/UICommand.java index 7a25edb..faeee28 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/UICommand.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/UICommand.java @@ -27,7 +27,7 @@ /* * Call this method after adding execute prohibition reasons. */ - public void setIsExecutionAllowed(boolean value) + public UICommand setIsExecutionAllowed(boolean value) { if (isExecutionAllowed != value) { @@ -39,6 +39,8 @@ onPropertyChanged(new PropertyChangedEventArgs("IsExecutionAllowed")); //$NON-NLS-1$ } + + return this; } private List<String> privateExecuteProhibitionReasons; -- To view, visit http://gerrit.ovirt.org/35714 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7fcdeae310b33b28f9be8176f0dea34b4a92b083 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Arik Hadas <aha...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches