Aspect view : deleting a single constraint crash the app

Issue #308 resolved
Former user created an issue

When you go to the Aspect View, create a constraint, then remove it. The constraint is not removed on the view. When you want to remove it again, it crash the app.

It works with a list of constraints. Just the last one is broken.

Here is the exception :

java.lang.RuntimeException: Command RemoveCommand (label: Remove) (description: Remove the objects from the feature of the owner) (isPrepared: true) (isExecutable: false) (domain: org.eclipse.emf.edit.domain.AdapterFactoryEditingDomain@5171c41f) (overrideCommand: null) (owner: ca.mcgill.sel.core.impl.COREFeatureImpl@6b841133 (name: E) (parentRelationship: Optional)) (feature: org.eclipse.emf.ecore.impl.EReferenceImpl@dc74f8d (name: requires) (ordered: true, unique: true, lowerBound: 0, upperBound: -1) (changeable: true, volatile: false, transient: false, defaultValueLiteral: null, unsettable: false, derived: false) (containment: false, resolveProxies: true)) (ownerList: []) (collection: [ca.mcgill.sel.core.impl.COREFeatureImpl@25604b48 (name: D) (parentRelationship: Optional)]) (indices: null) (affectedObjects: null) not executable.
    at ca.mcgill.sel.core.controller.CoreBaseController.doExecute(CoreBaseController.java:82)
    at ca.mcgill.sel.core.controller.FeatureController.removeRequiresConstraint(FeatureController.java:304)
    at ca.mcgill.sel.ram.ui.views.feature.helpers.Constraint.delete(Constraint.java:59)

I think that it's because the view is not notified.

Comments (4)

  1. Log in to comment