import org.eclipse.ui.ISources;
public abstract class AbstractConverterHandler extends AbstractHandler {
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
IEvaluationContext context = (IEvaluationContext) event
.getApplicationContext();
ISelection s = (ISelection) context
.getVariable(ISources.ACTIVE_MENU_SELECTION_NAME);
if (s instanceof IStructuredSelection) {
Object o = ((IStructuredSelection) s).getFirstElement();
if (o instanceof IFile) {
IFile f = (IFile) o;