Skip to content

Commit

Permalink
JBIDE-18405: Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Sep 23, 2014
1 parent c6d20ca commit d2df2c9
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,19 @@ public String getFailureMessage() {
if (check.getText() == null || !check.getText().toLowerCase().endsWith(" installed")) {
DataRetriever dataRetriever = new DataRetriever(check.widget, "connectorId");
Display.getDefault().syncExec(dataRetriever);
if (!this.excludedConnectors.isEmpty() && !this.excludedConnectors.contains(dataRetriever.getResult())) {
check.click();
}
if (!this.includedConnectors.isEmpty() && this.includedConnectors.contains(dataRetriever.getResult())) {
check.click();
String connectorId = (String) dataRetriever.getResult();
if (connectorId != null) {
boolean included = false;
if (!this.includedConnectors.isEmpty()) {
included = this.includedConnectors.contains(connectorId);
} else if (!this.excludedConnectors.isEmpty()) {
included = !this.excludedConnectors.contains(connectorId);
} else { // default includes everything
included = true;
}
if (included) {
check.click();
}
}
}
i++;
Expand Down

0 comments on commit d2df2c9

Please sign in to comment.