@Override
public void run() {
Notifier.INSTANSE.register(GroupSelectedEvent.class, new IEventHandler() {
@Override
public void handle(IEvent event) {
GroupSelectedEvent groupSelectedEvent = (GroupSelectedEvent) event;
selectedGroupId = groupSelectedEvent.getSelectedGroup().getId();
}
});
Notifier.INSTANSE.register(ArticleSelectedEvent.class, new IEventHandler() {
@Override
public void handle(IEvent event) {