ExtensionPointChangeListener - do not require T as it is not used

GitOrigin-RevId: 0a8f6ae7533fef73943bf3cdcae34246b3d0e8af
This commit is contained in:
Vladimir Krivosheev
2020-01-08 14:33:55 +00:00
committed by intellij-monorepo-bot
parent c8f182b3f6
commit e5bc58affe
7 changed files with 18 additions and 19 deletions
@@ -1,4 +1,4 @@
// 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.
// Copyright 2000-2020 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.openapi.extensions;
import com.intellij.openapi.Disposable;
@@ -121,8 +121,8 @@ public interface ExtensionPoint<T> {
void addExtensionPointListener(@NotNull ExtensionPointListener<T> listener);
void addExtensionPointListener(@NotNull ExtensionPointListener<T> listener, boolean invokeForLoadedExtensions, @Nullable Disposable parentDisposable);
void addExtensionPointListener(@NotNull ExtensionPointChangeListener<T> listener, boolean invokeForLoadedExtensions, @Nullable Disposable parentDisposable);
void addExtensionPointListener(@NotNull ExtensionPointChangeListener listener, boolean invokeForLoadedExtensions, @Nullable Disposable parentDisposable);
void removeExtensionPointListener(@NotNull ExtensionPointListener<T> extensionPointListener);
@@ -1,7 +1,6 @@
// 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.
// Copyright 2000-2020 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.openapi.extensions;
@FunctionalInterface
public interface ExtensionPointChangeListener<T> {
public interface ExtensionPointChangeListener {
void extensionListChanged();
}
@@ -1,4 +1,4 @@
// 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.
// Copyright 2000-2020 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.openapi.extensions;
import com.intellij.openapi.Disposable;
@@ -162,7 +162,7 @@ public final class ExtensionPointName<T> extends BaseExtensionPointName<T> {
getPointImpl(null).addExtensionPointListener(listener, false, parentDisposable);
}
public void addExtensionPointListener(@NotNull ExtensionPointChangeListener<T> listener,
public void addExtensionPointListener(@NotNull ExtensionPointChangeListener listener,
@Nullable Disposable parentDisposable) {
getPointImpl(null).addExtensionPointListener(listener, false, parentDisposable);
}
@@ -1,4 +1,4 @@
// 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.
// Copyright 2000-2020 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.openapi.extensions;
import com.intellij.openapi.Disposable;
@@ -65,7 +65,7 @@ public final class ProjectExtensionPointName<T> extends BaseExtensionPointName<T
}
public void addExtensionPointListener(@NotNull AreaInstance areaInstance,
@NotNull ExtensionPointChangeListener<T> listener,
@NotNull ExtensionPointChangeListener listener,
@Nullable Disposable parentDisposable) {
getPointImpl(areaInstance).addExtensionPointListener(listener, false, parentDisposable);
}
@@ -1,4 +1,4 @@
// 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.
// Copyright 2000-2020 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.openapi.extensions.impl;
import com.intellij.diagnostic.ActivityCategory;
@@ -719,7 +719,7 @@ public abstract class ExtensionPointImpl<T> implements ExtensionPoint<T>, Iterab
}
@Override
public void addExtensionPointListener(@NotNull ExtensionPointChangeListener<T> listener,
public void addExtensionPointListener(@NotNull ExtensionPointChangeListener listener,
boolean invokeForLoadedExtensions,
@Nullable Disposable parentDisposable) {
addExtensionPointListener(new ExtensionPointAdapter<T>() {
@@ -1,4 +1,4 @@
// 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.
// Copyright 2000-2020 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.openapi.options;
import com.intellij.ide.ui.UINumericRange;
@@ -121,8 +121,8 @@ import java.util.Collection;
* @see ShowSettingsUtil
*/
public interface Configurable extends UnnamedConfigurable {
ExtensionPointName<ConfigurableEP<Configurable>> APPLICATION_CONFIGURABLE = ExtensionPointName.create("com.intellij.applicationConfigurable");
ExtensionPointName<ConfigurableEP<Configurable>> PROJECT_CONFIGURABLE = ExtensionPointName.create("com.intellij.projectConfigurable");
ExtensionPointName<ConfigurableEP<Configurable>> APPLICATION_CONFIGURABLE = new ExtensionPointName<>("com.intellij.applicationConfigurable");
ExtensionPointName<ConfigurableEP<Configurable>> PROJECT_CONFIGURABLE = new ExtensionPointName<>("com.intellij.projectConfigurable");
/**
* Returns the visible name of the configurable component.
@@ -187,7 +187,7 @@ public interface Configurable extends UnnamedConfigurable {
*/
boolean isProjectLevel();
}
/**
* The interface is used for configurable that depends on some dynamic extension points.
* If a configurable implements the interface by default the configurable will re-created after adding / removing extensions for the EP.
@@ -1,4 +1,4 @@
// Copyright 2000-2018 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.
// Copyright 2000-2020 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.util.xml.impl;
import com.intellij.openapi.Disposable;
@@ -29,7 +29,7 @@ import java.util.Set;
/**
* @author peter
*/
public class DomApplicationComponent {
public final class DomApplicationComponent {
private final MultiMap<String, DomFileMetaData> myRootTagName2FileDescription = MultiMap.createSet();
private final Set<DomFileMetaData> myAcceptingOtherRootTagNamesDescriptions = new THashSet<>();
private final ImplementationClassCache myCachedImplementationClasses = new ImplementationClassCache(DomImplementationClassEP.EP_NAME);
@@ -55,7 +55,7 @@ public class DomApplicationComponent {
addChangeListener(DomFileMetaData.EP_NAME, this::extensionsChanged);
}
private static <T> void addChangeListener(ExtensionPointName<T> ep, ExtensionPointChangeListener<T> onChange) {
private static <T> void addChangeListener(ExtensionPointName<T> ep, ExtensionPointChangeListener onChange) {
Application app = ApplicationManager.getApplication();
if (Disposer.isDisposing(app)) return;