Removed unused BaseConfigurableWithChangeSupport

GitOrigin-RevId: fd95b8c08312b6bfc56d5dda9912ed12b0c66288
This commit is contained in:
Pavel Porvatov
2024-02-22 12:37:43 +01:00
committed by intellij-monorepo-bot
parent 5be8877345
commit 1acf5c4661
3 changed files with 2 additions and 55 deletions

View File

@@ -16,7 +16,7 @@
package org.intellij.images.options.impl;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.options.BaseConfigurableWithChangeSupport;
import com.intellij.openapi.options.BaseConfigurable;
import com.intellij.openapi.options.SearchableConfigurable;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Disposer;
@@ -36,7 +36,7 @@ import java.beans.PropertyChangeListener;
*
* @author <a href="mailto:aefimov.box@gmail.com">Alexey Efimov</a>
*/
public final class ImagesConfigurable extends BaseConfigurableWithChangeSupport implements SearchableConfigurable, PropertyChangeListener {
public final class ImagesConfigurable extends BaseConfigurable implements SearchableConfigurable, PropertyChangeListener {
private ImagesOptionsComponent myComponent;
private final Disposable myUIResourcesDisposable = Disposer.newDisposable();

View File

@@ -1,41 +0,0 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.openapi.options;
import com.intellij.openapi.Disposable;
import com.intellij.util.EventDispatcher;
import org.jetbrains.annotations.NotNull;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
public abstract class BaseConfigurableWithChangeSupport extends BaseConfigurable {
private final EventDispatcher<ChangeListener> myDispatcher = EventDispatcher.create(ChangeListener.class);
@Override
public void setModified(boolean modified) {
fireStateChanged();
super.setModified(modified);
}
public void addChangeListener(@NotNull ChangeListener listener, @NotNull Disposable parent) {
myDispatcher.addListener(listener, parent);
}
public void fireStateChanged() {
myDispatcher.getMulticaster().stateChanged(new ChangeEvent(this));
}
}

View File

@@ -1,12 +0,0 @@
// 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.ui;
import com.intellij.openapi.options.BaseConfigurableWithChangeSupport;
public final class FieldPanelWithChangeSupport {
public static AbstractFieldPanel createPanel(AbstractFieldPanel panel, final BaseConfigurableWithChangeSupport configurable) {
panel.setChangeListener(() -> configurable.fireStateChanged());
return panel;
}
}