public void preInit() {
OnlineHelp.init(new MyOnlineHelpManager());
DialogManager.setErrorAdaptor(this);
DialogManager.setPopupEditorAdaptor(this);
ViewerCreatorMap map = getFactory().getViewerCreatorMap();
map.register(MainModel.class, new SwingViewerCreator(MainEditor.class));
map.register(MemberModel.class, new SwingViewerCreator(MemberEditor.class));
map.register(AddressModel.class, new SwingViewerCreator(AddressEditor.class));
map.register(AddressModel.class, new SwingViewerCreator(AddressViewer.class));
map.register(PersonModel.class, new SwingViewerCreator(PersonEditor.class));
map.register(PersonModel.class, new SwingViewerCreator(PersonViewer.class));
map.register(PhoneModel.class, new SwingViewerCreator(PhoneEditor.class));
map.register(MemberArrayModel.class, new MemberArrayLayout(400), false);
map.register(AddressArrayModel.class, new AddressArrayLayout(400), false);
map.register(PhoneArrayModel.class, new PhoneArrayLayout(400), false);
map.register(EditListModel.class, new SwingViewerCreator(EditListEditor.class));
try {
mainController = new MainController(getFactory());
} catch (Exception e) {
e.printStackTrace();