// FIXME This should use the Resource API to allow completion of virtual resources.
final File cwd = selection.isEmpty() ? OperatingSystemUtils.getUserHomeDir() : selection.get()
.getUnderlyingResourceObject();
InputType inputType = component.getFacet(HintsFacet.class).getInputType();
OptionCompleter strategy = null;
if (inputType == InputType.FILE_PICKER && cwd.isDirectory())
{
strategy = new FileOptionCompleter(cwd);
}
else if (inputType == InputType.DIRECTORY_PICKER && cwd.isDirectory())