Skip to content

Commit

Permalink
empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rjolly committed Aug 28, 2017
1 parent bb6ba96 commit 3a6347a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ protected void load() {

@Override
protected void save() {
prefs.put(getKey("language"), getLanguageName());
prefs.put(getKey("language"), getSelectedLanguage());
}

protected String getLanguageName() {
return factoriesByName.get(model.getSelectedItem()).getNames().get(0);
protected String getSelectedLanguage() {
final ScriptEngineFactory factory = factoriesByName.get(model.getSelectedItem());
return factory == null?null:factory.getNames().get(0);
}
}

0 comments on commit 3a6347a

Please sign in to comment.