Search in sources :

Example 1 with ViewToolWindowButtonsAction

use of com.intellij.ide.actions.ViewToolWindowButtonsAction in project watchdog by TestRoots.

the class WatchDogStartUp method checkWhetherToStartWatchDog.

private void checkWhetherToStartWatchDog() {
    ProjectPreferenceSetting setting = WatchDogGlobals.getPreferences().getOrCreateProjectSetting(project.getName());
    if (setting.enableWatchdog) {
        WatchDogLogger.getInstance().logInfo("Starting WatchDog ...");
        InitializationManager.getInstance(project);
        WatchDogUtils.setWatchDogActiveForProject(project);
        new ViewToolWindowButtonsAction().setSelected(null, true);
    }
}
Also used : ViewToolWindowButtonsAction(com.intellij.ide.actions.ViewToolWindowButtonsAction) ProjectPreferenceSetting(nl.tudelft.watchdog.core.ui.preferences.ProjectPreferenceSetting)

Aggregations

ViewToolWindowButtonsAction (com.intellij.ide.actions.ViewToolWindowButtonsAction)1 ProjectPreferenceSetting (nl.tudelft.watchdog.core.ui.preferences.ProjectPreferenceSetting)1