package scrum.client.project; public class RequirementEstimationVotingShowoffAction extends GRequirementEstimationVotingShowoffAction { public RequirementEstimationVotingShowoffAction(scrum.client.project.Requirement requirement) { super(requirement); } @Override public String getLabel() { return "Show votes"; } @Override public String getTooltip() { return "Expose all cards on the table."; } @Override public boolean isExecutable() { if (!requirement.isWorkEstimationVotingActive()) return false; if (requirement.isWorkEstimationVotingShowoff()) return false; if (!requirement.containsWorkEstimationVotes()) return false; return true; } @Override protected void onExecute() { requirement.activateWorkEstimationVotingShowoff(); } }