use of com.ramussoft.client.log.LogPlugin in project ramus by Vitaliy-Yakovchuk.
the class TcpLightClient method initAdditionalGuiPlugins.
@Override
protected void initAdditionalGuiPlugins(List<GUIPlugin> list) {
super.initAdditionalGuiPlugins(list);
list.add(new ClientPlugin(userProvider, true));
list.add(new LogPlugin());
try {
if ((Boolean) connection.invoke("canUndoRedo", new Object[] {}))
list.add(new UndoRedoPlugin(e));
if ((Boolean) connection.invoke("isAdmin", new Object[] {})) {
UserFactory userFactory;
userFactory = (UserFactory) createDeligate(UserFactory.class);
AdminPanelPlugin adminPanelPlugin = new AdminPanelPlugin(userFactory, e);
list.add(adminPanelPlugin);
}
} catch (Exception e) {
e.printStackTrace();
}
}
Aggregations