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