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

adapts the constraint menu to the new metamodel

refs 2726
parent 8ea2c880
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@ import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.DecorationOverlayIcon;
import org.eclipse.jface.viewers.IDecoration;
import org.eclipse.swt.graphics.Image;
import org.fortiss.tooling.kernel.model.constraints.ConstrainedWithChecksum;
import org.fortiss.tooling.kernel.model.constraints.ConstraintInstance;
import org.fortiss.tooling.kernel.model.constraints.ErrorConstraintInstanceStatus;
import org.fortiss.tooling.kernel.model.constraints.FailedConstraintInstanceStatus;
......@@ -51,7 +50,7 @@ import org.fortiss.tooling.kernel.ui.service.IModelElementHandlerService;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 08124620B9BD785A307D615579E646E2
* @ConQAT.Rating YELLOW Hash: FBEDF95A872CF35E4760DA22C581BCD8
*/
public class ConstraintMenu implements IContextMenuContributor {
......@@ -193,9 +192,9 @@ public class ConstraintMenu implements IContextMenuContributor {
moreInfoAction = new ActionContributionItem(new OpenStatusAction());
this.add(moreInfoAction);
}
for(ConstrainedWithChecksum cwc : ci.getConstrainedsWithChecksum()) {
if(!selectedElt.equals(cwc.getConstrained())) {
this.add(new ActionContributionItem(new GoToConstrained(cwc.getConstrained())));
for(IConstrained cstrd : ci.getConstraineds()) {
if(!selectedElt.equals(cstrd)) {
this.add(new ActionContributionItem(new GoToConstrained(cstrd)));
}
}
}
......
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