Search in sources :

Example 1 with LogPlugin

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();
    }
}
Also used : LogPlugin(com.ramussoft.client.log.LogPlugin) UserFactory(com.ramussoft.net.common.UserFactory) IOException(java.io.IOException) UndoRedoPlugin(com.ramussoft.gui.common.UndoRedoPlugin)

Aggregations

LogPlugin (com.ramussoft.client.log.LogPlugin)1 UndoRedoPlugin (com.ramussoft.gui.common.UndoRedoPlugin)1 UserFactory (com.ramussoft.net.common.UserFactory)1 IOException (java.io.IOException)1