This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 102294 - save as allows second collaboration or sequence diagram in interaction
Summary: save as allows second collaboration or sequence diagram in interaction
Status: REOPENED
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-24 10:32 UTC by Andrew Korostelev
Modified: 2008-07-07 23:44 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2007-04-24 10:32:59 UTC
It is not allowed to create second collaboration or sequence diagram in the same
interaction.
e.g. CDFS doesn't allow this.
Bit it is possible with 'Save As' action.

steps:
- create uml project
- create collaboration diagram.
- invoke 'Create diagram on Selected Eloements' on interaction node.
It is not allowed to create the second collab. diagram in the same interaction.
- invoke 'save as' on collaboration diagram node.
- type new name and press 'OK'

New collab diagram will be created in the same interaction.
Comment 1 Yang Su 2007-06-26 21:16:31 UTC
I guess it's not allowed to create two sequence or collaboration diagrams for the same interaction mainly because the
elements and their relationship that form the sequence or collaboration diagrams are already determined given the same
interaction object.

But we overlooked the need that user might want to have another diagram with same information but different presentation
/ layout.

This restriction sounds too strong and unnecessary to me, I'll leave it for iteam to decide.
 
Comment 2 Sergey Petrov 2007-06-26 21:36:02 UTC
There is a question if it should be the same interaction to represent interaction in another layout or may be it's
better to create copy of interaction on save action? In my opinion diagram is a representation of an interaction and
user may want to add some new elements to one of copies and do not ad to another, is it ok? if ok we may want to cancel
limitation for cdfs and 'New|DiGRAM' action also
Comment 3 Peter Lam 2007-07-10 23:49:04 UTC
Save As should be disabled under the interaction node. As for New->Diagram on the interaction node, the Create New
Diagram checks for multiple sequence diagrams under the same interaction node so the Finish button is not enabled if
multiple sequence diagram is to be created.
Comment 4 Yang Su 2007-07-17 21:31:35 UTC
removed 'Save As' on interaction diagram nodes (collaboration and sequence), per team's decision.
Comment 5 Peter Lam 2007-07-17 23:02:01 UTC
an enhancement requst to copy the whole interaction to a new interaction is now being tracked by issue 110073.
Comment 6 Peter Lam 2007-07-20 00:47:16 UTC
verified in build 070719
Comment 7 moilejter 2008-06-20 16:35:12 UTC
I think sergeyp had a good point - I could imagine interactions that could be captured by more than one diagram, in
order to present "summary" vs. "detail" views of what is going on.  It would be just one interaction, and I would be
happy with just one model, but where each diagram could choose to hide or show individual elements in the interaction.

Along similar lines - I am not sure whether you meant a "use case", when you mention an "interaction".  If so, it would
still make sense to allow more than one diagram, and it would also make sense to allow for different elements to appear
in different diagrams.  It seems to me the diagrams would correspond to different scenarios within the same use case -
and these could have differences...
Comment 8 Trey Spiva 2008-07-07 23:44:41 UTC
Since currently we designed the tool around a one interaction one diagram concept, I am making this an enhancement.