use of com.intellij.util.ui.CheckBox in project intellij-community by JetBrains.
the class MethodCountInspection method createOptionsPanel.
@Override
public JComponent createOptionsPanel() {
final JComponent panel = new JPanel(new GridBagLayout());
final Component label = new JLabel(InspectionGadgetsBundle.message("method.count.limit.option"));
final JFormattedTextField valueField = prepareNumberEditor("m_limit");
final GridBagConstraints constraints = new GridBagConstraints();
constraints.gridx = 0;
constraints.gridy = 0;
constraints.insets.right = UIUtil.DEFAULT_HGAP;
constraints.anchor = GridBagConstraints.WEST;
panel.add(label, constraints);
constraints.gridx = 1;
constraints.weightx = 1.0;
constraints.insets.right = 0;
panel.add(valueField, constraints);
final CheckBox gettersSettersCheckBox = new CheckBox(InspectionGadgetsBundle.message("method.count.ignore.getters.setters.option"), this, "ignoreGettersAndSetters");
constraints.gridx = 0;
constraints.gridy = 1;
constraints.gridwidth = 2;
constraints.anchor = GridBagConstraints.WEST;
panel.add(gettersSettersCheckBox, constraints);
final CheckBox overridingMethodCheckBox = new CheckBox(InspectionGadgetsBundle.message("ignore.methods.overriding.super.method"), this, "ignoreOverridingMethods");
constraints.weighty = 1.0;
constraints.gridy = 2;
constraints.anchor = GridBagConstraints.NORTHWEST;
panel.add(overridingMethodCheckBox, constraints);
return panel;
}
use of com.intellij.util.ui.CheckBox 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;
}
use of com.intellij.util.ui.CheckBox in project intellij-community by JetBrains.
the class PyChainedComparisonsInspection method createOptionsPanel.
@Nullable
@Override
public JComponent createOptionsPanel() {
final JPanel rootPanel = new JPanel(new BorderLayout());
rootPanel.add(new CheckBox(ourIgnoreConstantOptionText, this, "ignoreConstantInTheMiddle"), BorderLayout.PAGE_START);
return rootPanel;
}
Aggregations