1 11 package org.eclipse.debug.internal.ui.commands.actions; 12 13 import org.eclipse.debug.core.commands.IEnabledStateRequest; 14 import org.eclipse.debug.internal.core.commands.DebugCommandRequest; 15 16 24 public class UpdateHandlerRequest extends DebugCommandRequest implements IEnabledStateRequest { 25 26 private boolean fEnabled = false; 27 private ActionsUpdater fUpdater; 28 29 public UpdateHandlerRequest(Object [] elements, ActionsUpdater updater) { 30 super(elements); 31 fUpdater = updater; 32 } 33 34 37 public synchronized void setEnabled(boolean result) { 38 fEnabled = result; 39 } 40 41 44 public synchronized void done() { 45 fUpdater.setEnabled(fEnabled); 46 } 47 48 } 49 | Popular Tags |