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

YELLOW

parent 93c4f10e
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author aravantinos
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 3A7223897E3FE2CF8AFD2D71FDE809B3
* @ConQAT.Rating YELLOW Hash: 0756FE6CE6E5562946F809BC4E242FFE
*/
public class ConstraintUIBases {
......@@ -136,9 +136,9 @@ public class ConstraintUIBases {
}
/**
* @return Buttons to display: "OK" is always displayed. In addition, if there is *only
* one fix, we provide one button for this fix. If there is more than one
* possible fixes, they will displayed instead horizontally (via getCustomArea).
* Returns the buttons to display: "OK" is always displayed. In addition, if there is
* only one fix, we provide one button for this fix. If there is more than one
* possible fixes, they will displayed instead horizontally (via getCustomArea).
*/
private static String[] getButtons(List<IFix> fixes) {
String[] res = new String[fixes.size() == 1 ? 2 : 1];
......@@ -150,11 +150,7 @@ public class ConstraintUIBases {
return res;
}
// TODO (FH): remove @params or document
/**
* @param s
* @return the icon type corresponding to <code>s</code>.
*/
/** Returns the icon type corresponding to <code>s</code>. */
private static String getTitle(IConstraintInstanceStatus s) {
if(s instanceof FailedConstraintInstanceStatus) {
return "Verification of constraint failed";
......@@ -162,10 +158,7 @@ public class ConstraintUIBases {
return "Error during constraint verification";
}
/**
* @param s
* @return the icon type corresponding to <code>s</code>.
*/
/** Returns the icon type corresponding to <code>s</code>. */
private static int getIconType(IConstraintInstanceStatus s) {
return s instanceof FailedConstraintInstanceStatus ? MessageDialog.WARNING : ERROR;
}
......
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