Messages Inject in screens, messages in AbstractFrame not injected #PL-2030

This commit is contained in:
Yuriy Artamonov 2013-04-10 10:53:39 +00:00
parent 5e0f3d64bc
commit 1274e2c2a6

View File

@ -7,9 +7,7 @@
package com.haulmont.cuba.gui.app.security.session.browse; package com.haulmont.cuba.gui.app.security.session.browse;
import com.haulmont.chile.core.datatypes.Datatypes; import com.haulmont.chile.core.datatypes.Datatypes;
import com.haulmont.cuba.core.entity.Entity;
import com.haulmont.cuba.core.global.ClientType; import com.haulmont.cuba.core.global.ClientType;
import com.haulmont.cuba.core.global.Messages;
import com.haulmont.cuba.core.global.UserSessionSource; import com.haulmont.cuba.core.global.UserSessionSource;
import com.haulmont.cuba.gui.AppConfig; import com.haulmont.cuba.gui.AppConfig;
import com.haulmont.cuba.gui.WindowManager; import com.haulmont.cuba.gui.WindowManager;
@ -31,25 +29,22 @@ import java.util.*;
public class SessionBrowser extends AbstractLookup { public class SessionBrowser extends AbstractLookup {
@Inject @Inject
private UserSessionSource userSessionSource; protected UserSessionSource userSessionSource;
@Inject @Inject
private UserSessionService uss; protected UserSessionService uss;
@Inject @Inject
private Table sessionsTable; protected Table sessionsTable;
@Inject @Inject
private UserSessionsDatasource sessionsDs; protected UserSessionsDatasource sessionsDs;
@Inject @Inject
protected Messages messages; protected Label lastUpdateTsLab;
@Inject
private Label lastUpdateTsLab;
@Named("sessionsTable.message") @Named("sessionsTable.message")
private Action messageAction; protected Action messageAction;
public void init(Map<String, Object> params) { public void init(Map<String, Object> params) {
super.init(params); super.init(params);