/**
* Rebuilds internal menu items list with the files stored in CayenneModeler
* preferences.
*/
public void rebuildFromPreferences() {
ModelerPreferences pref = ModelerPreferences.getPreferences();
Vector<?> arr = pref.getVector(ModelerPreferences.LAST_PROJ_FILES);
while (arr.size() > ModelerPreferences.LAST_PROJ_FILES_SIZE) {
arr.remove(arr.size() - 1);
}
// read menus