()
| 858 | |
| 859 | |
| 860 | private void undo() { |
| 861 | clearStatusMessage(); |
| 862 | if (contrib instanceof LocalContribution) { |
| 863 | LocalContribution installed = getLocalContrib(); |
| 864 | installed.setDeletionFlag(false); |
| 865 | contribListing.replaceContribution(contrib, contrib); // ?? |
| 866 | Iterator<Contribution> contribsListIter = contribListing.allContributions.iterator(); |
| 867 | boolean toBeRestarted = false; |
| 868 | while (contribsListIter.hasNext()) { |
| 869 | Contribution contribElement = contribsListIter.next(); |
| 870 | if (contrib.getType().equals(contribElement.getType())) { |
| 871 | if (contribElement.isDeletionFlagged() || |
| 872 | contribElement.isUpdateFlagged()) { |
| 873 | toBeRestarted = !toBeRestarted; |
| 874 | break; |
| 875 | } |
| 876 | } |
| 877 | } |
| 878 | // TODO: remove or uncomment if the button was added |
| 879 | //listPanel.contributionTab.restartButton.setVisible(toBeRestarted); |
| 880 | } |
| 881 | } |
| 882 | |
| 883 | |
| 884 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected