blob: b0d380cb84ae43cfb27535f2bcc5543779145a1a [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* 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:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.ecview.core.common.concurrent;
import java.util.concurrent.Callable;
import org.eclipse.osbp.ecview.core.common.context.IViewContext;
// TODO: Auto-generated Javadoc
/**
* The Class ECViewCallable.
*
* @param <V>
* the value type
*/
public abstract class ECViewCallable<V> implements Callable<V> {
/** The context. */
private final IViewContext context;
/**
* Instantiates a new EC view callable.
*
* @param context
* the context
*/
public ECViewCallable(IViewContext context) {
super();
this.context = context;
}
/**
* The view context, this callable is assigned to. May be <code>null</code>.
*
* @return the context
*/
public IViewContext getContext() {
return context;
}
}