Search in sources :

Example 1 with PluginConfigurationService

use of com.google.cloud.tools.intellij.service.PluginConfigurationService in project google-cloud-intellij by GoogleCloudPlatform.

the class CloudToolsPluginInitializationComponent method initComponent.

@Override
public void initComponent() {
    if (!ApplicationManager.getApplication().isUnitTestMode()) {
        configureUsageTracking();
    }
    Services.getLoginService().loadPersistedCredentials();
    PluginConfigurationService pluginConfigurationService = ServiceManager.getService(PluginConfigurationService.class);
    PluginInfoService pluginInfoService = ServiceManager.getService(PluginInfoService.class);
    if (pluginInfoService.shouldEnableErrorFeedbackReporting()) {
        initErrorReporting(pluginConfigurationService, pluginInfoService);
    }
    new ConflictingAppEnginePluginCheck().notifyIfConflicting();
    new GoogleAccountPluginUninstaller().uninstallIfPresent();
    if (!ApplicationManager.getApplication().isUnitTestMode()) {
        ServiceManager.getService(CloudSdkServiceManager.class).getCloudSdkService().activate();
    }
}
Also used : PluginInfoService(com.google.cloud.tools.intellij.service.PluginInfoService) PluginConfigurationService(com.google.cloud.tools.intellij.service.PluginConfigurationService)

Aggregations

PluginConfigurationService (com.google.cloud.tools.intellij.service.PluginConfigurationService)1 PluginInfoService (com.google.cloud.tools.intellij.service.PluginInfoService)1