@Override
protected Command createActionCommand(EditingDomain editingDomain, Collection selection) {
if (selection.size() == 1) {
Object owner = selection.iterator().next();
if (owner instanceof Exercise) {
return new CreateExerciseFromTestAnnotationsCommand((Exercise)owner, "tests");
}
}
return UnexecutableCommand.INSTANCE;
}