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.
Sometimes developers have more versions of the same project opened in the IDE. It would be helpful if the root nodes in the Projects window has the version appended to the name. For maven projects, this information is guaranteed to be in the pom.xml, so I gues this woulb be a quick fix. Thanks for considering.
While there are circumstances where this would be helpful, for most users this would just waste horizontal label space and be a distraction. The version is also available in the tool tip in the Projects node.
Those "circumstances" are quite often - every time when two versions of some project are compared. How about making it configurable?
We generally avoid adding configuration options unless it is pretty general and would be widely used (and the opposite choice would also be widely used). But a useful enhancement would be to display the version only if another project with the same coordinates except differing in version were also opened. This ensures that the extra visual space is used only when it would actually be differentiating information.
BTW: since we use ${project.name} as project display in the projects view, one always has the option to add ${project.version} in the <name> element of your project..
I created a RFE for such a extension point - "Project Label Annotator". http://netbeans.org/bugzilla/show_bug.cgi?id=224536
*** Bug 227120 has been marked as a duplicate of this bug. ***
https://hg.netbeans.org/core-main/rev/69ca3e1caff3 allows to customize project's display name. The global definition is at $userhome/Preferences/org/netbeans/modules/maven.properties' property project.displayName property netbeans.hint.displayName in pom.xml overrides even the global setting and can be inherited/shared by multiple projects or defined in settings.xml file or profiles. in both cases, regular maven expressions apply - eg. ${project.artifactId} or ${basedir} no UI (done or planned) apart from code completion hint in pom.xml's <properties> element does not correctly interact with "Rename project" action. That one will still only edit the project.name xml element. No way around it anyway I guess.
(In reply to comment #7) > https://hg.netbeans.org/core-main/rev/69ca3e1caff3 > > allows to customize project's display name. > Thank you! I will give it a try when it is integrated. > no UI (done or planned) May I propose a patch for it?
(In reply to comment #8) > > > no UI (done or planned) > May I propose a patch for it? sure. not entirely clear of both project and global value needs to be shown in UI. maybe just global option would be sufficient to show.
(In reply to comment #9) > (In reply to comment #8) > > > > > no UI (done or planned) > > May I propose a patch for it? > > sure. not entirely clear of both project and global value needs to be shown in > UI. maybe just global option would be sufficient to show. FYI: I created the follow-up issue http://netbeans.org/bugzilla/show_bug.cgi?id=227578 for this RFE.
(In reply to comment #7) > does not correctly interact with "Rename project" action. That one will still > only edit the project.name xml element. No way around it anyway I guess. Could revert the change to Info and only customize the root node’s displayName. That would solve that issue, at the expense of leaving the window title, Open Project label, etc. etc. as <name>.
*** Bug 179571 has been marked as a duplicate of this bug. ***