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 141996 - XML Refactoring on Copy Bug
Summary: XML Refactoring on Copy Bug
Status: RESOLVED INCOMPLETE
Alias: None
Product: xml
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Sonali Kochar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-29 08:09 UTC by qbeukes
Modified: 2009-02-19 23:31 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 qbeukes 2008-07-29 08:09:43 UTC
I have an enterprise project with 2 sub projects, and EJB and a WAR.

In the WAR''s "Web Pages" node I have an "xml" sub directory. In this subdirectory I have a OBS.xsd file.
I wanted to copy this file to SMS.xsd, so I click on it, select Copy, click on the "xml" directory and 
select Paste (which provided a submenu). So I selected the "refactor" option in the sub menu, thinking it
might change my root node or what not.

After completing this I noticed no difference.
Trying it again I noticed it has a "package" option. It copied the XSD to my Java source, iow. the "src" directory
into the package "xml".
Comment 1 Sonali Kochar 2008-08-06 19:01:11 UTC
I dont see this issue. When doing a copy, did you select the right destination package in "To package" drop down? By
default, it copies the file to "src" directory...Not sure how the complete "src" directory got copied under "xml"..That
copy is not done by XML by is handled by java refactoring..
Comment 2 qbeukes 2008-08-06 21:36:50 UTC
That's the problem.

I have the {project}/src/java directory, 
and the {project}/web/xml directory.

I tried to paste into the web/xml directory, but the file ended up in the "src/java/xml" directory. 
Comment 3 Sonali Kochar 2008-08-06 21:48:07 UTC
What did you select in "To Package"?..Do you see a "web.xml" in the drop down box?