in app/src/main/java/com/oracle/javafx/scenebuilder/app/preferences/PreferencesRecordGlobal.java [474:542]
public void writeToJavaPreferences(String key) {
assert applicationRootPreferences != null;
assert key != null;
switch (key) {
case TOOL_THEME:
applicationRootPreferences.put(TOOL_THEME, getToolTheme().name());
break;
case PreferencesControllerBase.LIBRARY_DISPLAY_OPTION:
applicationRootPreferences.put(PreferencesControllerBase.LIBRARY_DISPLAY_OPTION, getLibraryDisplayOption().name());
break;
case PreferencesControllerBase.HIERARCHY_DISPLAY_OPTION:
applicationRootPreferences.put(PreferencesControllerBase.HIERARCHY_DISPLAY_OPTION, getHierarchyDisplayOption().name());
break;
case CSS_TABLE_COLUMNS_ORDERING_REVERSED:
applicationRootPreferences.putBoolean(CSS_TABLE_COLUMNS_ORDERING_REVERSED, isCssTableColumnsOrderingReversed());
break;
case RECENT_ITEMS_SIZE:
applicationRootPreferences.putInt(RECENT_ITEMS_SIZE, getRecentItemsSize());
break;
case RECENT_ITEMS:
final StringBuilder sb = new StringBuilder();
for (String recentItem : getRecentItems()) {
sb.append(recentItem);
sb.append(File.pathSeparator);
}
applicationRootPreferences.put(RECENT_ITEMS, sb.toString());
break;
case REGISTRATION_HASH:
applicationRootPreferences.put(REGISTRATION_HASH, getRegistrationHash());
break;
case REGISTRATION_EMAIL:
applicationRootPreferences.put(REGISTRATION_EMAIL, getRegistrationEmail());
break;
case REGISTRATION_OPT_IN:
applicationRootPreferences.putBoolean(REGISTRATION_OPT_IN, isRegistrationOptIn());
break;
case UPDATE_DIALOG_DATE:
applicationRootPreferences.put(UPDATE_DIALOG_DATE, getShowUpdateDialogDate().toString());
break;
case IGNORE_VERSION:
applicationRootPreferences.put(IGNORE_VERSION, getIgnoreVersion());
break;
case LAST_SENT_TRACKING_INFO_DATE:
applicationRootPreferences.put(LAST_SENT_TRACKING_INFO_DATE, getLastSentTrackingInfoDate().toString());
break;
case IMPORTED_GLUON_JARS:
if (importedGluonJars.length == 0) {
applicationRootPreferences.put(IMPORTED_GLUON_JARS, "");
} else {
StringBuilder stringBuilder = new StringBuilder();
for (String s : importedGluonJars) {
stringBuilder.append(s);
stringBuilder.append(",");
}
applicationRootPreferences.put(IMPORTED_GLUON_JARS, stringBuilder.toString());
}
break;
case ACCORDION_ANIMATION:
applicationRootPreferences.putBoolean(ACCORDION_ANIMATION, isAccordionAnimation());
break;
case WILDCARD_IMPORT:
applicationRootPreferences.putBoolean(WILDCARD_IMPORT, isWildcardImports());
break;
default:
super.writeToJavaPreferences(key);
break;
}
}