use of com.intellij.ui.SortedListModel in project intellij-community by JetBrains.
the class CodeStyleGenerationConfigurable method createComponent.
public JComponent createComponent() {
myVisibilityPanel.add(myJavaVisibilityPanel, BorderLayout.CENTER);
GridBagConstraints gc = new GridBagConstraints(0, GridBagConstraints.RELATIVE, 1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH, new JBInsets(0, 0, 0, 0), 0, 0);
final Condition<PsiClass> isApplicable = aClass -> aClass.isAnnotationType();
//noinspection Convert2Diamond
myRepeatAnnotationsModel = new SortedListModel<String>(Comparator.naturalOrder());
myOverridePanel.add(SpecialAnnotationsUtil.createSpecialAnnotationsListControl("Annotations to Copy", false, isApplicable, myRepeatAnnotationsModel), gc);
return myPanel;
}
Aggregations