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

better naming

refs 2620
parent 00a076c9
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: F0F36DEA1D0BC7FA09674BFD33CE617D
* @ConQAT.Rating YELLOW Hash: 48B046ABEF91966E2EBF8B0FD0D49A9D
*/
public final class ConstraintVerificationUIService implements IConstraintVerificationUIService,
IIntrospectiveKernelService {
......@@ -345,18 +345,18 @@ public final class ConstraintVerificationUIService implements IConstraintVerific
/** {@inheritDoc} */
@Override
public IConstraintVerificationStatus getStatus(Constraint constraint) {
ITopLevelElement top = IPersistencyService.getInstance().getTopLevelElementFor(constraint);
public IConstraintVerificationStatus getStatus(Constraint c) {
ITopLevelElement top = IPersistencyService.getInstance().getTopLevelElementFor(c);
boolean isActivated = false;
Set<String> set = activatedConstraints.get(top);
if(set != null) {
for(String id : set) {
if(id.equals(constraint.getConstraintTypeID())) {
if(id.equals(c.getConstraintTypeID())) {
isActivated = true;
}
}
}
return isActivated ? constraint.getVerificationStatus() : null;
return isActivated ? c.getVerificationStatus() : null;
}
/** {@inheritDoc} */
......
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