Java 类com.intellij.openapi.util.ClassExtension 实例源码

项目:tools-idea    文件:JavaCoreApplicationEnvironment.java   
public <T> void addExplicitExtension(final ClassExtension<T> instance, final Class clazz, final T object) {
  instance.addExplicitExtension(clazz, object);
  Disposer.register(getParentDisposable(), new Disposable() {
    @Override
    public void dispose() {
      instance.removeExplicitExtension(clazz, object);
    }
  });
}
项目:consulo-java    文件:JavaCoreApplicationEnvironment.java   
public <T> void addExplicitExtension(final ClassExtension<T> instance, final Class clazz, final T object) {
  instance.addExplicitExtension(clazz, object);
  Disposer.register(getParentDisposable(), new Disposable() {
    @Override
    public void dispose() {
      instance.removeExplicitExtension(clazz, object);
    }
  });
}
项目:intellij-ce-playground    文件:CoreApplicationEnvironment.java   
public <T> void addExplicitExtension(@NotNull final ClassExtension<T> instance, @NotNull final Class aClass, @NotNull final T object) {
  doAddExplicitExtension(instance, aClass, object);
}
项目:consulo    文件:CoreApplicationEnvironment.java   
public <T> void addExplicitExtension(@Nonnull final ClassExtension<T> instance, @Nonnull final Class aClass, @Nonnull final T object) {
  doAddExplicitExtension(instance, aClass, object);
}