Bug 236092 - Edit action on the persistence.xml file doesn't lead to the source editor
Edit action on the persistence.xml file doesn't lead to the source editor
Status: NEW
Product: javaee
Classification: Unclassified
Component: Persistence
7.4
All All
: P3 (vote)
: Dev
Assigned To: Sergey Petrov
issues@javaee
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-18 05:54 UTC by Martin Fousek
Modified: 2014-03-21 15:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2013-09-18 05:54:11 UTC
If I remember this correctly all 'Edit' actions on the XML multiviewed files should lead inside the Source editor of the file. Also the Source tab should be the first one in the multiview selection instead of the 'Design' one.

But the main issue I see in the Edit action which behaves identically to the action Open. BTW, there are now two actions leading to the same tab which is weird too now.

Steps to reproduce:
1, create any persistence.xml
2, right click on it
3, invoke Edit
-> Design view is opened in the editor (as well as by invoking 'Open' action)

Thanks.
Comment 1 Sergey Petrov 2013-12-20 14:31:38 UTC
I suppose it was done with purpose to have design tab as main (1st) to promote design tab usage.
But it may be the reason "Edit" do not show proper tab.
Comment 2 Martin Fousek 2014-01-02 12:13:35 UTC
(In reply to Sergey Petrov from comment #1)
> I suppose it was done with purpose to have design tab as main (1st) to
> promote design tab usage.

Yes I believe that as well, but the concept of the first "Source" tab is probably newer (since the new multiview API appeared).

> But it may be the reason "Edit" do not show proper tab.

In any case this action should open the source view.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo