ptanov / epf-process-validator

Set of plugins to be contributed to Eclipse Process Framework (EPF) for validating processes
0 stars 0 forks source link

Constraint disappears #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If constraint is created with wizard, then object is validated, but if 
constraint is edited from preferences and object is revalidated - constraint 
disappears?

Original issue reported on code.google.com by 1.Pla...@gmail.com on 28 Jan 2011 at 10:58

GoogleCodeExporter commented 9 years ago
This is because category caches constraints:

    public void addConstraint(IConstraintDescriptor constraint) {
        if (!constraints.contains(constraint)) {
            constraints.add(constraint);
            constraint.addCategory(this);
        }
    }

Original comment by 1.Pla...@gmail.com on 28 Jan 2011 at 11:14

GoogleCodeExporter commented 9 years ago
When removing constraint - it is removed from its categories, too

Original comment by 1.Pla...@gmail.com on 28 Jan 2011 at 11:21