Bug 139594 - Create diagrams for non-root element of domain model.
Summary: Create diagrams for non-root element of domain model.
Status: RESOLVED FIXED
Alias: None
Product: GMF-Tooling (ARCHIVED)
Classification: Modeling
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Alex Shatalin CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
Depends on:
Blocks:
 
Reported: 2006-05-01 16:04 EDT by Ferad Zyulkyarov CLA
Modified: 2010-07-19 12:19 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ferad Zyulkyarov CLA 2006-05-01 16:04:29 EDT
In the current version of the UML editor that is implemented as example, UML diagrams are initialized based on the root UML package the “model”. In this way all that is under the root package will be displayed within the particular UML diagram which is not a desired effect.

UML diagrams are just a view on a particular aspect of the UML model. A given diagram has to be able to contain a given subset of the UML (that is not too large). This subset of classifiers may belong to different packages within the model, not necessary to a single package.

Ferad Zyulkyarov
Comment 1 Alex Shatalin CLA 2006-05-02 12:14:37 EDT
As it was discussed in newsgroup (news://news.eclipse.org/e33882$8re$1@utils.eclipse.org) this request should ask for:

The possibility to initialize diagram file using non-root element of the domain model should be implemented. For example, in case of UML we can implement diagramming functionality for UML packages and currently it is possible to use "Init diagram file action" for an existing .uml file to create diagram for the root package contained in this model, but there could be other sub-packages in this model. It should be possible to create diagram representing contents of such a subpackage. 
Comment 2 Alex Shatalin CLA 2006-05-17 11:18:14 EDT
Seems like this action (create new diagram) should be available in the model explorer described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=112818. Another option is to create model browser similar to the "add shortcut" one and allow choosing root diagram element from there.
Comment 3 Alex Shatalin CLA 2006-06-02 11:05:24 EDT
Additional page was added to the wizard available through *InitDiagramFileAction popup menu item. This page allows selecting valid root diagram element from the tree of model elements. Resource root element is selected by default on this page.
Comment 4 Eclipse Webmaster CLA 2010-07-19 12:19:02 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Templates was the original product and component for this bug