From 9256eaa10ddcc44dd6c7c107db0a5020c0e06024 Mon Sep 17 00:00:00 2001 From: Bjorn Pijnacker Date: Sat, 27 Feb 2021 20:04:05 +0100 Subject: [PATCH] switched some spaces to tabs (again) --- .../erme/view/OrderableListPanel.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/nl/andrewlalis/erme/view/OrderableListPanel.java b/src/main/java/nl/andrewlalis/erme/view/OrderableListPanel.java index 427bdca..7731e65 100644 --- a/src/main/java/nl/andrewlalis/erme/view/OrderableListPanel.java +++ b/src/main/java/nl/andrewlalis/erme/view/OrderableListPanel.java @@ -63,20 +63,20 @@ public class OrderableListPanel extends JPanel implements ModelChangeListener { * Updates removed and new relations in the listModel. Does it in a special way to preserve existing ordering in the * list, so user has to do minimal re-sorting. */ - @Override - public void onModelChanged() { - if (this.model == null) return; + @Override + public void onModelChanged() { + if (this.model == null) return; Set newRelations = new HashSet<>(model.getRelations()); newRelations.removeAll(listModel.getList()); - Set removedRelations = new HashSet<>(listModel.getList()); - removedRelations.removeAll(model.getRelations()); + Set removedRelations = new HashSet<>(listModel.getList()); + removedRelations.removeAll(model.getRelations()); - listModel.removeAll(removedRelations); - listModel.addAll(newRelations); - } + listModel.removeAll(removedRelations); + listModel.addAll(newRelations); + } - public ArrayList getOrderList() { - return new ArrayList<>(listModel.getList()); + public ArrayList getOrderList() { + return new ArrayList<>(listModel.getList()); } }