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.
[ JDK VERSION : 1.6.0_07 ] In a Java project for me it's annoying to always see the '.java' extension in project browser and in the editor tabs. Especially in editor tabs it wastes so much space, which could be better used to have more documents in view at the same time. In files window it should be OK to see the extensions, but also here a java file is denoted by it's icon, and could be verbosed by tooltip. At least please introduce a setting in View menu. See also: issue 80890
In contrast the location should be denoted clearly if I have same named files from different locations in the editor tabs at the same time.
not a project specific issue. handled by java dataobject?
Not sure why this should be handled by the Java support.
I still do not understand: why this should be handled by the Java support? Do we really want a language-specific option, implemented per language, to switch off the extensions? Not a good idea, IMO. To my knoledge, Java support uses DataNode, without any tricks that would be related to showing extensions. If we want to implement this, it should be (IMO) done centrally for all in DataNode
openide.loaders is just a library. It does not control how it is used. It would be a bug if the library limited you to implement what is necessary. But it does not, there is many ways to get the desired state including: http://bits.netbeans.org/dev/javadoc/org-openide-loaders/org/openide/loaders/DataNode.html#setShowFileExtensions(boolean)
Well, I know it can be implemented in Java support (if DataNode wouldn't allow it, I could reimplement the DataNode, right). But, what I am asking is: Do we really want a per-language option, which will be implemented per language? I do not think this is a good idea. So that there will be another option (implemented separately, using duplicate code, increasing code size and memory consumption) for C/C++, JSP, XML, ... I do not agree with this, and I will not do this. The correct solution would be, IMO, to simply allow the user to hide all file extensions (this was possible in some time ago, IIRC).
I guess Jesse knows why the extensions were turned on in 4.0, so he can react.
Hiding extensions on file nodes was madness. Hiding them in editor window tabs (except for DefaultDataObject's) may make sense. I fear this would not work well for some kinds of development, PHP for example.
Recently I noticed, that in editor diff tabs the extension is hidden. So please make this adjustable for "normal" tabs soon.
*** Bug 100374 has been marked as a duplicate of this bug. ***
Seems to be a defect, as we had it available before. See: Bug 100374
It doesn't have to be separate code for each file type. How about a general option "Don't Show these File Extensions in Editor Tabs" and have the user add the extensions they want suppressed in a list. Would that fix any PHP problem? The drop-down file list should probably keep the extensions. It may also be nice if the list were pre-populated with extensions which Netbeans has a unique icon for, since the icons are on the tabs anyway.