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 243135 - Rename HTML Element works but not for XML.
Summary: Rename HTML Element works but not for XML.
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-21 10:26 UTC by Christian Lenz
Modified: 2016-05-26 08:05 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lenz 2014-03-21 10:26:12 UTC
As you can see here: https://netbeans.org/bugzilla/show_bug.cgi?id=224662

click on a tag, press ctrl + r and it works for (X)HTML files only but not for plain XML Well-formed document :/.
Comment 1 Christian Lenz 2014-06-17 14:07:45 UTC
I figured out that if the root folder is public_html, all is fine, I can rename xml files too but if we have no root folder or we have a folder called public inside public_html or not inside, it doesn't matter, the renaming feature doesn't work anymore.
Comment 2 Christian Lenz 2014-07-04 06:29:39 UTC
The same for Remove surrounding tag, surround with tag. No hints are available.
Comment 3 Svata Dedic 2014-07-09 10:51:14 UTC
The feature was not planned or implemented for XMLs, changing to an enhancement.
Comment 4 Christian Lenz 2014-07-09 10:56:11 UTC
But what I figured out was that it's working for XML files, if I created a normal HTML5 project, if I changed the rootfolder to the main projectfolder or added a public folder to the plublic_html folder or whatever, its broken.
Comment 5 Christian Lenz 2014-12-10 09:01:14 UTC
Refactoring doesn't work in a clean maven pom project inside pom.xml or settings.xml or other xml files.
Comment 6 markiewb 2016-03-07 20:23:34 UTC
FYI Code for HTML-Rename is based on CSL

html.editor/src/org/netbeans/modules/html/editor/gsf/HtmlRenameHandler.java
Comment 7 Christian Lenz 2016-05-26 08:05:13 UTC
Can't refactor XML tags inside a layer.xml file inside a netbeans module too.