Community
Participate
Working Groups
Build Identifier: 20100617-1415 [General][Classifier behavior] When user clic on an element on the outline and create a new behavior Diagram, the classifier behavior is always changed. For example create a new Activity diagram will put an activity0 as classifier behavior, and create another Activity diagram will put the activity1 as classifier behavior. The classifier behavior shouldn't be changed or at least ask user if he wants to. It seems that all classifiers are acting like this. Reproducible: Always Steps to Reproduce: 1.Select an element in the outline 2.Clic right => Create Diagram => "Behavior diagram". As a result the classifier behavior own the classifier representing the diagram, such as an activity0 for an Activity diagram 3.Clic right => Create Diagram => "Behavior diagram". As a result the classifier changed again.
This bug is still reproductible. Behavior to implement is to set the behaviorClassifier attribute when creating a behavior in the context of a BehavioredClassifier such as a class.
The proposed solution is not clear. The user can create a state-machine diagram in the context of a class first and then add an activity diagram in the context of the same class. As a result, the classifier behavior will change when the user adds the activity diagram. I think, a valid solution would be to warn the user during creation of a new contextual diagram if the classifierBehavior is already set.
Good solution. +1
*** Bug 405571 has been marked as a duplicate of this bug. ***
Fixed in r11452