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 63667 - Edit on web.xml does not open it in XML view
Summary: Edit on web.xml does not open it in XML view
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Fiala
URL:
Keywords: REGRESSION, T9Y
Depends on:
Blocks:
 
Reported: 2005-09-05 19:40 UTC by Martin Schovanek
Modified: 2006-01-18 08:49 UTC (History)
0 users

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 Schovanek 2005-09-05 19:40:33 UTC
[#200509041800, jdk1.5.0]

to reproduce:
-------------
1) right click a web.xml and choose Edit
ERROR: web.xml is opened in General instead of XML view

In fact the Edit and Open actions behave identically.
Comment 1 Milan Kuchtiak 2005-09-06 08:54:02 UTC
Pavle, please change it to previous status.
The problem is that edit() method is called prior to getMultiviewDescriptions();

Formerly, the edit method was implemented in a following way :

    public void edit () {
        openView(-1);
    }

and openView(), running in thread and called after
createCloneableTopComponent(), was able to detect correctly the
xmlMultiViewIndex value.
Comment 2 zikmund 2005-09-08 14:08:53 UTC
*** Issue 63789 has been marked as a duplicate of this issue. ***
Comment 4 Martin Schovanek 2005-10-05 13:58:23 UTC
Added REGRESSION keyword as requested by pblaha.
Comment 5 Dan Kolar 2006-01-18 08:49:51 UTC
verified