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

Bug 323767

Summary: With active JPA Diagram editor, we cannot open persistence.xml from project explorer
Product: [WebTools] Dali JPA Tools Reporter: Ram Venkataswamy <ram.venkataswamy>
Component: Diagram EditorAssignee: Petya Sabeva <petya.sabeva>
Status: CLOSED FIXED QA Contact: Stefan Dimov <stefan.dimov>
Severity: major    
Priority: P3 CC: catapl3xis, petya.sabeva
Version: 0.5   
Target Milestone: 0.5 RC2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch stefan.dimov: iplog+

Description Ram Venkataswamy CLA 2010-08-26 19:33:21 EDT
Build Identifier: M20100818-0800

With active JPA Diagram editor, we cannot open persistence.xml from project explorer

Reproducible: Always

Steps to Reproduce:
- Create/open a JPA project

NOTE: Make sure the JPA diagram is closed to verify the proper behavior of "Open"

- In Project Explorer | JPA Content | right click on > Persistence.xml and select "Open"

At this point, the persistence.xml editor comes up fine.

- now close persistence.xml editor

- In Project explorer, right click on persistence.xml  / entity > "Open Diagram"

JPA Diagram editor comes up.

- Now, on project explorer, right click on persistence.xml > "Open"

Error opening editor - "Compilation unit name must end with .java or one of the registered java-like extension." 

Workaround: close JPA Diagram
Comment 1 Petya Sabeva CLA 2010-08-31 07:20:51 EDT
Created attachment 177823 [details]
patch
Comment 2 Stefan Dimov CLA 2010-08-31 10:44:45 EDT
Patch committed ...
Comment 3 Ram Venkataswamy CLA 2010-09-01 14:30:37 EDT
verified with latest build
Comment 4 Stefan Dimov CLA 2010-09-02 04:09:24 EDT
Closin' the bug ...
Comment 5 Stefan Dimov CLA 2010-09-10 04:22:00 EDT
*** Bug 323892 has been marked as a duplicate of this bug. ***