[Kotlin UI DSL] Deprecated unnecessary API

GitOrigin-RevId: 80995190f2b1a9aa9ec43bb6aa952bc96d4d06f6
This commit is contained in:
Pavel Porvatov
2023-12-05 13:14:04 +00:00
committed by intellij-monorepo-bot
parent 0b8682595f
commit 21eb657aa0
6 changed files with 33 additions and 2 deletions
@@ -260,7 +260,10 @@ public abstract class BeanConfigurable<T> implements UnnamedConfigurable, Config
* E.g. text is read from the model and set to the edit box.
* After the apply, the value from the component is queried via {@code componentGetter} and written back to model via {@code beanSetter}.
* E.g. text from the edit box is queried and saved back to model bean.
*
* @deprecated Use {@see com.intellij.openapi.options.BoundConfigurable} and Kotlin UI DSL for complex configurables
*/
@Deprecated(forRemoval = true)
protected <V> void component(@NotNull JComponent component, @NotNull Getter<? extends V> beanGetter, @NotNull Setter<? super V> beanSetter, @NotNull Getter<? extends V> componentGetter, @NotNull Setter<? super V> componentSetter) {
BeanField<JComponent> field = new BeanField<>(new BeanMethodAccessor<V>(beanGetter, beanSetter)) {
@NotNull
@@ -1,6 +1,8 @@
// 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.
package com.intellij.openapi.options.binding;
import org.jetbrains.annotations.ApiStatus;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
@@ -9,7 +11,11 @@ import java.lang.reflect.Field;
/**
* @author Dmitry Avdeev
*/
*
* @deprecated Use Kotlin UI DSL with bindings
*/
@ApiStatus.Internal
@Deprecated(forRemoval = true)
public abstract class BeanValueAccessor extends ValueAccessor {
public static BeanValueAccessor createAccessor(Object bean, final String propertyName) {
@@ -15,6 +15,7 @@
*/
package com.intellij.openapi.options.binding;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NonNls;
import java.lang.annotation.ElementType;
@@ -24,9 +25,13 @@ import java.lang.annotation.Target;
/**
* @author Dmitry Avdeev
*
* @deprecated Use Kotlin UI DSL with bindings
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
@Target(ElementType.FIELD)
@ApiStatus.Internal
@Deprecated(forRemoval = true)
public @interface BindControl {
@NonNls String value() default "";
boolean instant() default false;
@@ -15,9 +15,15 @@
*/
package com.intellij.openapi.options.binding;
import org.jetbrains.annotations.ApiStatus;
/**
* @author Dmitry Avdeev
*
* @deprecated Use Kotlin UI DSL with bindings
*/
@ApiStatus.Internal
@Deprecated(forRemoval = true)
public abstract class ControlValueAccessor<V> extends ValueAccessor<V> {
public abstract boolean isEnabled();
@@ -5,6 +5,7 @@ package com.intellij.openapi.options.binding;
import com.intellij.openapi.editor.event.DocumentListener;
import com.intellij.ui.DocumentAdapter;
import com.intellij.ui.EditorTextField;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
@@ -14,7 +15,11 @@ import java.awt.event.ActionListener;
/**
* @author Dmitry Avdeev
*
* @deprecated Use Kotlin UI DSL with bindings
*/
@ApiStatus.Internal
@Deprecated(forRemoval = true)
public abstract class ValueAccessor<V> {
public abstract V getValue();
@@ -15,9 +15,15 @@
*/
package com.intellij.openapi.options.binding;
import org.jetbrains.annotations.ApiStatus;
/**
* @author Dmitry Avdeev
*
* @deprecated Use Kotlin UI DSL with bindings
*/
@ApiStatus.Internal
@Deprecated(forRemoval = true)
public abstract class ValueTypeConverter<A, B> {
public abstract A to(B b);