949596979899100101102103104105106
public int menuAction(int action) { Admin admin = Admin.getInstance(); switch ( action ) { case ACTION_ADD: { CollectionDialog cd = new CollectionDialog(admin, col); cd.show(); if ( cd.isOkClicked() ) return REFRESH_SELF; } } return REFRESH_NONE; }