remove dead code

GitOrigin-RevId: bcd446afbc46c9086699b1b69708c78b92891522
This commit is contained in:
Vladimir Krivosheev
2023-08-10 17:11:28 +03:00
committed by intellij-monorepo-bot
parent 7ffd07afd0
commit 4ffd77ac44
2 changed files with 0 additions and 122 deletions

View File

@@ -1,94 +0,0 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.customize;
import com.intellij.ui.ClickListener;
import com.intellij.ui.ColorUtil;
import com.intellij.util.ui.StartupUiUtil;
import com.intellij.util.ui.UIUtil;
import org.jetbrains.annotations.Nls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import javax.swing.*;
import javax.swing.border.Border;
import java.awt.*;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.MouseEvent;
public abstract class AbstractCustomizeWizardStep extends JPanel {
protected static final int SMALL_GAP = 10;
protected static final int GAP = 20;
@Nls(capitalization = Nls.Capitalization.Title)
public abstract String getTitle();
/**
* Content for title under top navigation.
*
* @return either a HTML string prefixed with <html>, or a text string not prefixed with <html>, which will be processed with StringUtil.escapeXmlEntities
*/
@Nls
public abstract String getHTMLHeader();
/**
* Content for footer above buttons.
*
* @return either a HTML string prefixed with <html>, or a text string not prefixed with <html>, which will be processed with StringUtil.escapeXmlEntities
*/
@Nullable
@Nls
public String getHTMLFooter() {
return null;
}
@NotNull
protected static Color getSelectionBackground() {
return ColorUtil.mix(UIUtil.getListSelectionBackground(true), UIUtil.getLabelBackground(), StartupUiUtil.isUnderDarcula() ? .5 : .75);
}
public static Border createSmallEmptyBorder() {
return BorderFactory.createEmptyBorder(SMALL_GAP, SMALL_GAP, SMALL_GAP, SMALL_GAP);
}
public static BorderLayout createSmallBorderLayout() {
return new BorderLayout(SMALL_GAP, SMALL_GAP);
}
protected static JPanel createBigButtonPanel(LayoutManager layout, final JToggleButton anchorButton, final Runnable action) {
final JPanel panel = new JPanel(layout) {
@Override
public Color getBackground() {
return anchorButton.isSelected() ? getSelectionBackground() : super.getBackground();
}
};
panel.setOpaque(anchorButton.isSelected());
new ClickListener() {
@Override
public boolean onClick(@NotNull MouseEvent event, int clickCount) {
anchorButton.setSelected(true);
return true;
}
}.installOn(panel);
anchorButton.addItemListener(new ItemListener() {
boolean curState = anchorButton.isSelected();
@Override
public void itemStateChanged(ItemEvent e) {
if (e.getStateChange() == ItemEvent.SELECTED && curState != anchorButton.isSelected()) {
action.run();
}
curState = anchorButton.isSelected();
panel.setOpaque(curState);
panel.repaint();
}
});
return panel;
}
public Component getDefaultFocusedComponent() {
return null;
}
public void beforeShown(boolean forward) {
}
}

View File

@@ -1,28 +0,0 @@
// Copyright 2000-2021 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.ide.customize
import com.intellij.openapi.extensions.PluginDescriptor
import com.intellij.openapi.extensions.PluginId
import java.util.concurrent.atomic.AtomicReference
@Deprecated(message = "This is an internal part of long removed initial wizard")
object CustomizeIDEWizardInteractions {
val featuredPluginGroups: AtomicReference<Set<PluginId>> = AtomicReference<Set<PluginId>>()
var skippedOnPage: Int = -1
@JvmOverloads
@Deprecated("Does nothing")
fun record(type: CustomizeIDEWizardInteractionType, pluginDescriptor: PluginDescriptor? = null, groupId: String? = null) {}
}
enum class CustomizeIDEWizardInteractionType {
WizardDisplayed
}
data class CustomizeIDEWizardInteraction(
val type: CustomizeIDEWizardInteractionType,
val timestamp: Long,
val pluginDescriptor: PluginDescriptor?,
val groupId: String?
)