107108109110111112113114115116117
*/ public static void toggleStar( final Change.Id changeId, final boolean newValue) { if (next == null) { next = new ToggleStarRequest(); } next.toggle(changeId, newValue); fireChangeStarEvent(changeId, newValue); if (!busy) { start();
120121122123124125126127128129130
private static ToggleStarRequest next; private static boolean busy; private static void start() { final ToggleStarRequest req = next; next = null; busy = true; Util.LIST_SVC.toggleStars(req, new GerritCallback<VoidResult>() { @Override