public void initialize(@Observes PostStartup event)
{
try
{
HintsLookup hints = new HintsLookup(environment);
hints.setInputType(FileResource.class, InputType.FILE_PICKER);
hints.setInputType(DirectoryResource.class, InputType.DIRECTORY_PICKER);
}
catch (Throwable e)
{
log.log(Level.FINE,
"Could not register resources InputType hints. Resources addon is probably not loaded yet.", e);