コード例 #1
0
 public MemberChooser(
     T[] elements,
     boolean allowEmptySelection,
     boolean allowMultiSelection,
     @NotNull Project project,
     @Nullable JComponent headerPanel,
     JComponent[] optionControls) {
   this(allowEmptySelection, allowMultiSelection, project, false, headerPanel, optionControls);
   resetElements(elements);
   init();
 }
コード例 #2
0
 public MemberChooser(
     T[] elements,
     boolean allowEmptySelection,
     boolean allowMultiSelection,
     @NotNull Project project,
     boolean isInsertOverrideVisible,
     @Nullable JComponent headerPanel) {
   this(
       allowEmptySelection,
       allowMultiSelection,
       project,
       isInsertOverrideVisible,
       headerPanel,
       null);
   resetElements(elements);
   init();
 }
コード例 #3
0
 public void resetElements(T[] elements) {
   resetElements(elements, null, false);
 }
コード例 #4
0
 protected void resetElementsWithDefaultComparator(
     T[] elements, final boolean restoreSelectedElements) {
   myComparator = myAlphabeticallySorted ? new AlphaComparator() : new OrderComparator();
   resetElements(elements, null, restoreSelectedElements);
 }