This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236092 - Edit action on the persistence.xml file doesn't lead to the source editor
Summary: Edit action on the persistence.xml file doesn't lead to the source editor
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-18 05:54 UTC by Martin Fousek
Modified: 2016-07-07 08:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


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.
Comment 3 Martin Balin 2016-07-07 08:55:05 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss