Community
Participate
Working Groups
New diagrams are named inconsistently: Activity diagram has 'model' as a default name Class diagram - 'ClassDiagram' Composite diagram - 'CompositeDiagram' Sequence diagram - 'model' UseCase diagram - 'UseCaseDiagram'
This is not a Sash Editor issue :-). The name of a diagram is set in the diagram creation command. Each diagram has its own creation command, extending a common one.
(In reply to comment #1) > This is not a Sash Editor issue :-). > The name of a diagram is set in the diagram creation command. Each diagram has > its own creation command, extending a common one. OK. If the user creates a SequenceDiagram, and then creates an Activity diagram the default name suggestion will be "SequenceDiagram" (for an Activity diagram). The reason is that CreateBehavioredClassifierDiagramCommand overrides runAsTransaction method and in the overriden method name of a container is used as a default value for diagram name: protected void runAsTransaction(...) { if(name == null && container instanceof NamedElement) { setName(((NamedElement)container).getName()); ... name = openDiagramNameDialog(getName()); ... The code was put as a fix for a bug 308904 .
Default name set to "NewDiagram" in every diagram (r2098).
The diagrams are initialized with a consistent name; I close this task