void () { if (!myAllSelected && !myMixSelection) { return; } if (myMixSelection && mySelectionIndex != -1) { ListPluginComponent component = myComponents.get(mySelectionIndex); if (component.getSelection() != SelectionType.SELECTION) { component.setSelection(SelectionType.SELECTION); } } myAllSelected = false; myMixSelection = false; int first; int last; if (mySelectionLength > 0) { first = mySelectionIndex; last = mySelectionIndex + mySelectionLength; } else { first = mySelectionIndex + mySelectionLength + 1; last = mySelectionIndex + 1; } for (int i = 0; i < first; i++) { ListPluginComponent component = myComponents.get(i); if (component.getSelection() == SelectionType.SELECTION) { component.setSelection(SelectionType.NONE); } } for (int i = last, size = myComponents.size(); i < size; i++) { ListPluginComponent component = myComponents.get(i); if (component.getSelection() == SelectionType.SELECTION) { component.setSelection(SelectionType.NONE); } } }