NetBeans silliness: you don't own your extension
jeudi 23 mars 2006. Lien permanent Cyberpunk
According to your bug 44739, to be unable to change a file extension in NetBeans IDE is not a real problem. Well, maybe they use too often Microsoft Windows with the "hide known extensions" innovation activated. Unfortunately the problem exists for real. If you include a jsp fragment through <jsp:include>, you are advised to use the "jspf" extension. Now, if you include something with <%@include%>, there is no standard extension, and no, using "jspf" is not a good idea, because those two types of inclusion are two really different things. Imagine for now that your design changes for the static include to dynamic include... Leave aside NetBeans, change the file extension, come back to NetBeans, wait for the files tree to be refreshed, and trigger a clean build. Do you see a usability problem ? All I read is "Won't fix".
8 réactions
1 De Tim - 23/03/2006, 12:35
True that there's no change-file-extension function in NetBeans, but you shouldn't need to restart NetBeans - just close the file, rename in a shell, and NetBeans will notice the new file there.
2 De Damien B - 23/03/2006, 12:55
"Exit NetBeans" is badly worded, it should be "hide NetBeans", or "switch to another program". I'll rewrite the sentence.
3 De Tim - 23/03/2006, 13:03
BTW, I've reopened the bug with a suggested fix.
4 De Damien B - 22/02/2009, 11:08
February 2009, 3 years later, Netbeans 6: still unable to change a file extension within Netbeans. No target milestone set: http://www.netbeans.org/issues/show_bug.cgi?id=27444
It's just lame.
5 De - 15/07/2009, 13:10
right click on the file in the file browser tree and select "rename". Voila. It's renamed. Works just fine.
6 De Damien B - 15/07/2009, 16:59
Wow anonymous, they managed to fix it after 3 major revisions? I'm impressed.
7 De Namek - 25/12/2009, 08:09
anonymous didn't understand something. It is about renaming EXTENSION. Here now we got NetBeans 6.8 version. Still can't do that. Only filename, without extension, is possible to be changed.
8 De Carl - 31/03/2010, 15:25
I found a klunky way to do it.
In the projects explorer, choose Properties in your file's popup menu and change the Extension property.
It's not ideal, but at least you don't have to wait for the tree to refresh.