Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312241 - [Wizard] Default value for DiagramKind
Summary: [Wizard] Default value for DiagramKind
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Tatiana Fesenko CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 07:55 EDT by Tatiana Fesenko CLA
Modified: 2010-06-18 09:02 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tatiana Fesenko CLA 2010-05-10 07:55:24 EDT
Let's take a look on SelectDiagramKindPage of the New Papyrus Model wizard. 

Currently the first value is set by default. However, first doesn't meen the most frequently used or the most useful one. I see several ways to choose default kind of diagram:
1. Remember the last selected value
2. Add option 'Default diagram kind' into preferences page (i don't like this idea a lot because it will overload the prefs). 
3. Define the default value in plugin descriptor, e.g. Class D for UML Diagrams.

However, there can be other ways to choose the default diagram kind. Papyrus team, feel free to put your thought about this topis here.
Comment 1 Thibault Landré CLA 2010-05-18 02:58:59 EDT
Maybe we could used both 1 and 3. 

For option 3, we should use a mechanism of priority (like GMF) because as MDT Papyrus will be highly modular, it is possible that user doesn't install all the diagrams of an editor. 

Once the user creates a diagram, we should use by default his last selected value. 

PS : the e-mail "mdt-papyrus-inbox@eclipse.org" doesn't seem to work. So I add Sebastien and Raphael in copy.
Comment 2 Tatiana Fesenko CLA 2010-06-18 09:01:39 EDT
My solution is a variation of
1. Remember the last selected value

I added "Remember Current Selection" checkbox. If the user checks it the current selection will be shown when the user opens the wizard next time. If the user don't check it then he will get an empty selection next time.
Comment 3 Tatiana Fesenko CLA 2010-06-18 09:02:27 EDT
Fixed in HEAD