Search in sources :

Example 1 with ListEditForm

use of com.intellij.codeInspection.ui.ListEditForm in project intellij-community by JetBrains.

the class SuppressionAnnotationInspection method createOptionsPanel.

@Override
public JComponent createOptionsPanel() {
    final ListEditForm form = new ListEditForm("Ignore suppressions", myAllowedSuppressions);
    final JComponent panel = form.getContentPanel();
    panel.setPreferredSize(JBUI.size(150, 100));
    return panel;
}
Also used : ListEditForm(com.intellij.codeInspection.ui.ListEditForm)

Example 2 with ListEditForm

use of com.intellij.codeInspection.ui.ListEditForm in project intellij-community by JetBrains.

the class PyPep8NamingInspection method createOptionsPanel.

@Nullable
@Override
public JComponent createOptionsPanel() {
    final JPanel rootPanel = new JPanel(new BorderLayout());
    rootPanel.add(new CheckBox("Ignore overridden functions", this, "ignoreOverriddenFunctions"), BorderLayout.NORTH);
    final OnePixelSplitter splitter = new OnePixelSplitter(false);
    splitter.setFirstComponent(new ListEditForm("Excluded base classes", ignoredBaseClasses).getContentPanel());
    splitter.setSecondComponent(new ListEditForm("Ignored errors", ignoredErrors).getContentPanel());
    rootPanel.add(splitter, BorderLayout.CENTER);
    return rootPanel;
}
Also used : CheckBox(com.intellij.util.ui.CheckBox) ListEditForm(com.intellij.codeInspection.ui.ListEditForm) OnePixelSplitter(com.intellij.ui.OnePixelSplitter) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

ListEditForm (com.intellij.codeInspection.ui.ListEditForm)2 OnePixelSplitter (com.intellij.ui.OnePixelSplitter)1 CheckBox (com.intellij.util.ui.CheckBox)1 Nullable (org.jetbrains.annotations.Nullable)1