Skip to content

Commit

Permalink
Don't fail if hints are not available
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Aug 21, 2013
1 parent 9135e2f commit 6a42d44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void initialize(@Observes PostStartup event)
HintsLookup hints = new HintsLookup(environment);
hints.setInputType(JavaResource.class, InputType.JAVA_CLASS_PICKER);
}
catch (Exception e)
catch (Throwable e)
{
log.log(Level.FINE,
"Could not register parser-java InputType hints. Resources addon is probably not loaded yet.", e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void initialize(@Observes PostStartup event)
hints.setInputType(FileResource.class, InputType.FILE_PICKER);
hints.setInputType(DirectoryResource.class, InputType.DIRECTORY_PICKER);
}
catch (Exception e)
catch (Throwable e)
{
log.log(Level.FINE,
"Could not register resources InputType hints. Resources addon is probably not loaded yet.", e);
Expand Down

0 comments on commit 6a42d44

Please sign in to comment.