/******************************************************************************* * Copyright (c) 2011-2013 EclipseSource Muenchen GmbH and others. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Edgar Mueller - initial API and implementation ******************************************************************************/ package org.eclipse.emf.emfstore.client.util; import java.util.concurrent.Callable; /** * Convenience class for using {@link RunESCommand} without a return value. * * @author emueller * * @since 1.1 * */ public abstract class ESVoidCallable implements Callable<Void> { /** * {@inheritDoc} * * @see java.util.concurrent.Callable#call() */ public Void call() throws Exception { run(); return null; } /** * Contains the actual code block to be executed. */ public abstract void run(); }