String iconSetClassName = Preferences.get("org.jamesii.iconset");
for (IconSetFactory factory : iconSetFactories) {
try {
IIconSet iconSet = factory.create(params, SimSystem.getRegistry().createContext());
// register icon set as available in the icon set manager
IconSetManager.registerIconSet(iconSet);
if (iconSetClassName == null) {
IconSetManager.setDefaultIconSet(iconSet);
}
if (iconSet.getClass().getName().equals(iconSetClassName)) {
IconSetManager.setDefaultIconSet(iconSet);
}
} catch (PluginCreationException e) {
SimSystem.report(Level.WARNING, null,
"Couldn't create icon set %s (%s)",