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

refs 2634
parent 4a77d84f
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ import org.fortiss.tooling.kernel.utils.ConstraintsUtils;
* @author vincent
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 0D74DFF10E167E1EB9754CFB52A8CCC4
* @ConQAT.Rating YELLOW Hash: C5988D4406478156AB853129BD596B95
*/
public class ConstraintVerifierUIBases {
......@@ -236,4 +236,20 @@ public class ConstraintVerifierUIBases {
return false;
}
}
/**
* Standard warning message to display when a resource-consuming check is activated for the
* first time.
*/
public static void displayTimeConsumptionWarning() {
Display d = Display.getCurrent();
d = d == null ? Display.getDefault() : d;
Shell shell = d.getActiveShell();
String title = "Time/resource-consuming background operation about to start";
String msg = "Activating this check for the first time might consume lots of resources, ";
msg += "this operation will run in the background so that you can still work, but your ";
msg += "system might be slowing down. Note that this is a one-time thing: once the check ";
msg += "is activated, subsequent runs should be unnoticed.";
MessageDialog.openWarning(shell, title, msg);
}
}
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