}
public Object[] getElements(Object inputElement) {
if (inputElement instanceof ReflogInput) {
ReflogInput input = (ReflogInput) inputElement;
ReflogCommand command = new Git(input.repository).reflog();
command.setRef(input.ref);
try {
return command.call().toArray();
} catch (Exception e) {
Activator.logError("Error running reflog command", e); //$NON-NLS-1$
}
}
return new Object[0];