mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-01-10 21:42:27 +01:00
refactor: remove isCollapsed parameter and handle collapsing logic in DialogueEditor
This commit is contained in:
@@ -21,7 +21,6 @@ public final class CommonEditor {
|
||||
public static <E, S> CollapsiblePanel createListPanel(String title,
|
||||
ListCellRenderer<? super E> cellRenderer,
|
||||
AtListModel<E, S> listModel,
|
||||
boolean isCollapsed,
|
||||
boolean writable,
|
||||
boolean moveUpDownEnabled,
|
||||
CallWithSingleArg<E> selectedValueSetter,
|
||||
@@ -107,9 +106,6 @@ public final class CommonEditor {
|
||||
listButtonsPane.add(new JPanel(), JideBoxLayout.VARY);
|
||||
replies.add(listButtonsPane, JideBoxLayout.FIX);
|
||||
}
|
||||
if (isCollapsed) {
|
||||
replies.collapse();
|
||||
}
|
||||
repliesEditorPane.setLayout(new JideBoxLayout(repliesEditorPane, JideBoxLayout.PAGE_AXIS));
|
||||
replies.add(repliesEditorPane, JideBoxLayout.FIX);
|
||||
return replies;
|
||||
|
||||
Reference in New Issue
Block a user