private EOEditingContext appEC = new EOEditingContext();
public static void main(String[] argv) {
WOApplication.main(argv, Application.class);
}
public Application() {
NSLog.out.appendln("Welcome to " + name() + "!");
/* ** put your initialization code in here ** */
WOMessage.setDefaultEncoding("UTF8");
}
/*** CODE TABLE LISTS ***/
/** Builds an array of all available Language objects recorded in the database.
* This is not to be confused with languages supported by the browser or
* languages as part of ERXLocalizer.
* The array is used by components to build, for example, pop-up lists.
* @return NSArray List of all available languages.
*/
@SuppressWarnings("unchecked")
public NSArray<Language> languageList() {
return (NSArray)EOUtilities.objectsWithFetchSpecificationAndBindings( appEC, "Language", "FetchAllAvailableLanguages", null );
}
<snip>