Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334166

Summary: Diagram location in project should not be a src folder
Product: [WebTools] Dali JPA Tools Reporter: Shaun Smith <shaun.smith>
Component: Diagram EditorAssignee: Stefan Dimov <stefan.dimov>
Status: VERIFIED FIXED QA Contact: Stefan Dimov <stefan.dimov>
Severity: normal    
Priority: P3 CC: jolene.moffitt
Version: 0.5   
Target Milestone: 3.0 M6   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 335176    
Attachments:
Description Flags
Folder for diagrams - not in src none

Description Shaun Smith CLA 2011-01-12 16:28:39 EST
When a diagram is created it is automatically put into the diagrams folder in the first src folder.  Diagrams should not be stored in src as resources in src are copied into the output folder and potentially jar'd and deployed.

Since the diagrams are design time only artifacts they should stored in a project folder identified by the user.  A default folder name like "diagrams" would be reasonable so the user can quickly click through diagram creation.
Comment 1 Stefan Dimov CLA 2011-01-20 09:49:02 EST
I think I'm gonna add another preference/project property 'Diagrams folder:', which default value will be 'diagrams'.
Comment 2 Stefan Dimov CLA 2011-01-24 06:46:09 EST
Created attachment 187412 [details]
Folder for diagrams - not in src

Now the folder for diagrams is not under src folder. It's a direct project subfolder It's name is defined by user from the preference/property page. By default it's 'diagrams'. If during rename there is an existing folders for diagrams with a diagram in, this folder should be renamed. This is not covered by this patch. It will be tracked in bug #335176
Comment 3 Stefan Dimov CLA 2011-01-24 06:58:25 EST
Patch committed ...
Comment 4 Stefan Dimov CLA 2011-02-08 10:20:20 EST
The fix was submitted in the timeframe of M5, but the JPA Diagram Editor wasn't integrated in PDE build of WTP before the M5 release date, so I'm retargeting this bug to M6.
Comment 5 Jolene Moffitt CLA 2011-04-16 09:17:39 EDT
Verified in Build I-3.3.0-20110414085808

Verified when you create the diagram editor a diagrams folder appears and the .xmi editor appears within the folder.  See the link to view test steps
for verification. http://wiki.eclipse.org/Dali_3.0_M6