Skip to content
Snippets Groups Projects
Commit 00a076c9 authored by Vincent Aravantinos's avatar Vincent Aravantinos
Browse files

displays warning only in case of time consuming constraint

refs 2620
parent 1f947bac
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ import org.osgi.framework.Bundle;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: E57DB924DA58FFCFD383BF4113939533
* @ConQAT.Rating YELLOW Hash: F0F36DEA1D0BC7FA09674BFD33CE617D
*/
public final class ConstraintVerificationUIService implements IConstraintVerificationUIService,
IIntrospectiveKernelService {
......@@ -383,7 +383,7 @@ public final class ConstraintVerificationUIService implements IConstraintVerific
activatedConstraints.get(top).add(id);
List<Constraint> addeds =
IConstraintVerificationService.getInstance().addMissingConstraints(top, id);
if(!addeds.isEmpty()) {
if(!addeds.isEmpty() && getFirstVerifier(id).isTimeConsuming()) {
ConstraintsUIUtils.displayTimeConsumptionWarning(id);
}
// Install notifiers for newly added constraints
......@@ -422,7 +422,6 @@ public final class ConstraintVerificationUIService implements IConstraintVerific
// No need to check if it turns out the status is already known from a previous
// activation.
if(!IConstraintVerificationService.getInstance().isUpToDate(c) ||
c.getVerificationStatus() == null ||
c.getVerificationStatus() instanceof OutdatedVerificationStatus) {
getFirstVerifier(c).onOutdate(c);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment