private void updateExcludes(int rowindex) { CbSelectionState value = checkValues.get(rowindex); Pack pack = packs.get(rowindex); if (value != null && value.isFullyOrPartiallySelected() && pack.getExcludeGroup() != null) { for (int q = 0; q < packs.size(); q++) { if (rowindex != q) { Pack otherPack = packs.get(q); String name1 = otherPack.getExcludeGroup(); String name2 = pack.getExcludeGroup(); if (name2.equals(name1)) { if (checkValues.get(q) == CbSelectionState.SELECTED) { checkValues.set(q, CbSelectionState.DESELECTED); } } } } } }
/** * Computes pack related installDataGUI like the names or the dependencies state. * * @param packs The list of packs. */ private void computePacks(List<Pack> packs) { names = new HashMap<String, Pack>(); dependenciesExist = false; for (Pack pack : packs) { names.put(pack.getName(), pack); if (pack.getDependencies() != null || pack.getExcludeGroup() != null) { dependenciesExist = true; } } }
if (pack1.getExcludeGroup() != null && pack2.getExcludeGroup() != null) if (pack1.getExcludeGroup().equals(pack2.getExcludeGroup())) " belong to the same excludeGroup " + pack1.getExcludeGroup() + " and are both preselected. This is not allowed.");
if (checkState != null && checkState.isFullyOrPartiallySelected() && pack.getExcludeGroup() != null) if (pack.getExcludeGroup().equals(otherPack.getExcludeGroup()))
int numExcludes = 0; int i = getRowIndex(pack); if (pack.getExcludeGroup() != null) String exGroup = otherPack.getExcludeGroup(); if (exGroup != null) if (q != i && pack.getExcludeGroup().equals(exGroup))
if (pack.getExcludeGroup() != null) String exgroup = otherpack.getExcludeGroup(); if (exgroup != null) if (q != selectedRow && pack.getExcludeGroup().equals(exgroup))