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

Bug 363583

Summary: Openning the xml under diagrams folder with JPA Diagram Editor results in an error
Product: [WebTools] Dali JPA Tools Reporter: Alexander Silgidjian <alexander.silgidjian>
Component: Diagram EditorAssignee: Petya Sabeva <petya.sabeva>
Status: RESOLVED FIXED QA Contact: Stefan Dimov <stefan.dimov>
Severity: normal    
Priority: P3 CC: alexander.silgidjian, karenfbutzke, krum.bakalsky, petya.sabeva
Version: 3.1   
Target Milestone: 3.2 M7   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
This is the exception when you try to open the xml
none
Once broken, you cannot open the Editor anymore
none
set meaningfull error message none

Description Alexander Silgidjian CLA 2011-11-11 08:55:00 EST
Build Identifier: 

I am not sure if it should be possible to open the xml in diagram editor, but even if it is not possible, there should be a better error message. Fox example if I try it with Server Editor, the message is: Could not open the editor: Could not open editor because ggg.xml is not a valid server. Use Open With to open this file with a different editor.

Furthermore doing this, you could not open the Diagram in the normal way anymore - there is a NPE thrown

Reproducible: Always

Steps to Reproduce:
1. Create a JPA 1.0 project
2. Open/Close the diagram in order to create diagrams folder and xml
3. Go to diagrams folder and right click the generated xml. Select Open With -> Other -> JPA Diagram Editor

Result: Could not open the editor: An exception was thrown during initialization
Comment 1 Alexander Silgidjian CLA 2011-11-11 08:58:21 EST
Created attachment 206843 [details]
This is the exception when you try to open the xml
Comment 2 Alexander Silgidjian CLA 2011-11-11 08:58:52 EST
Created attachment 206844 [details]
Once broken, you cannot open the Editor anymore
Comment 3 Petya Sabeva CLA 2012-03-29 08:10:12 EDT
Created attachment 213329 [details]
set meaningfull error message
Comment 4 Petya Sabeva CLA 2012-03-29 08:15:45 EDT
Submitted in HEAD
Comment 5 Petya Sabeva CLA 2012-03-29 08:18:32 EDT
Just a little remark: to open the diagram in a normal way, just select Open With -> XML Editor.