/** Updates cache order to match the state of the GUI. */ private void updateOrder(int index) { int ord = orderValue(order[index].getSelectedIndex()); ICacheStrategy strategy = cache.getStrategy(); int[] orders = strategy.getOrder(); if (ord != orders[index]) strategy.setOrder(ord, index); }
/** Updates cache order to match the state of the GUI. */ private void updateOrder(int index) { int ord = orderValue(order[index].getSelectedIndex()); ICacheStrategy strategy = cache.getStrategy(); int[] orders = strategy.getOrder(); if (ord != orders[index]) strategy.setOrder(ord, index); }