Revert: api compatibility for kotlin plugin

This commit is contained in:
sergey.vasiliev
2019-01-21 09:27:09 +01:00
parent caeb9dc596
commit 05fe325428
3 changed files with 49 additions and 0 deletions
@@ -0,0 +1,24 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic;
import com.intellij.internal.statistic.beans.UsageDescriptor;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import java.util.Collections;
import java.util.Set;
@Deprecated
@ApiStatus.ScheduledForRemoval(inVersion = "2019.1")
public abstract class AbstractProjectsUsagesCollector extends UsagesCollector {
@NotNull
public abstract Set<UsageDescriptor> getProjectUsages(@NotNull Project project) throws CollectUsagesException;
@Override
@NotNull
public final Set<UsageDescriptor> getUsages() throws CollectUsagesException {
return Collections.emptySet();
}
}
@@ -0,0 +1,24 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic;
import com.intellij.internal.statistic.beans.GroupDescriptor;
import com.intellij.internal.statistic.beans.UsageDescriptor;
import com.intellij.openapi.extensions.ExtensionPointName;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import java.util.Set;
@Deprecated // to be removed in 2019.1
@ApiStatus.ScheduledForRemoval(inVersion = "2019.1")
public abstract class UsagesCollector {
public static final ExtensionPointName<UsagesCollector> EP_NAME = ExtensionPointName.create("com.intellij.statistics.usagesCollector");
@NotNull
public abstract Set<UsageDescriptor> getUsages() throws CollectUsagesException;
@NotNull
public abstract GroupDescriptor getGroupId();
}
@@ -198,6 +198,7 @@
<extensionPoint name="editorNavigation" interface="com.intellij.openapi.editor.EditorNavigationDelegate"/>
<extensionPoint name="statistics.usagesCollector" interface="com.intellij.internal.statistic.UsagesCollector"/>
<extensionPoint name="statistics.applicationUsagesCollector" interface="com.intellij.internal.statistic.service.fus.collectors.ApplicationUsagesCollector"/>
<extensionPoint name="statistics.projectUsagesCollector" interface="com.intellij.internal.statistic.service.fus.collectors.ProjectUsagesCollector"/>