mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-143968 New Library from maven doesn't work anymore
This commit is contained in:
@@ -19,7 +19,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author traff
|
||||
@@ -31,8 +31,8 @@ public abstract class AbstractCollectionComboBoxModel<T> extends CollectionListM
|
||||
mySelection = selection;
|
||||
}
|
||||
|
||||
public AbstractCollectionComboBoxModel(@Nullable T selection, @NotNull Collection<T> items) {
|
||||
super(items);
|
||||
public AbstractCollectionComboBoxModel(@Nullable T selection, @NotNull List<T> items) {
|
||||
super(items, true);
|
||||
|
||||
mySelection = selection;
|
||||
}
|
||||
|
||||
@@ -35,8 +35,13 @@ public class CollectionListModel<T> extends AbstractListModel implements Editabl
|
||||
myItems = new ArrayList<T>(items);
|
||||
}
|
||||
|
||||
@SuppressWarnings("UnusedParameters")
|
||||
protected CollectionListModel(@NotNull List<T> items, boolean useListAsIs) {
|
||||
myItems = items;
|
||||
}
|
||||
|
||||
public CollectionListModel(@NotNull final List<? extends T> items) {
|
||||
this((Collection<? extends T>)items);
|
||||
myItems = new ArrayList<T>(items);
|
||||
}
|
||||
|
||||
public CollectionListModel(final T... items) {
|
||||
|
||||
Reference in New Issue
Block a user