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 69288 - [50cat] Project name is not shown for files not named build.xml
Summary: [50cat] Project name is not shown for files not named build.xml
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-24 19:54 UTC by misterm
Modified: 2008-12-10 00:45 UTC (History)
0 users

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 misterm 2005-11-24 19:54:34 UTC
[ BUILD # : beta 2 ]
[ JDK VERSION : 1.4.2_xx ]

Steps to reproduce:

1. Create two Ant build files, one named build.xml and the other named test.xml;
2. Give a different project name for both of them;
3. With the editor selected, do a CTRL+TAB

The project name for the build.xml file is shown in [], but the same behaviour does not apply to the test.xml file.
Comment 1 Jesse Glick 2005-11-28 18:47:47 UTC
Intentionally; the project name is only displayed for files named "build.xml",
since this filename is so common for Ant scripts that they would otherwise be
indistinguishable in the editor.
Comment 2 misterm 2005-11-28 18:53:55 UTC
I understand this might be designed, but I have a valid use case for making it 
the default behaviour. I am using Ant's import facilities in all my build 
script files. Therefore, there are several master_build.xml/build.xml files in 
my projects, though there are less files named master_build.xml. When I have 
more than one of them open in the editor, they are impossible to distinguish by 
their name. That was my motivation for filing this issue.

Is there any chance this behaviour could be changed?
Comment 3 Jesse Glick 2005-11-29 20:40:10 UTC
No plans to change it, since I don't see any obvious way to decide what is a
"generic enough" Ant build script name, and it may be undesirable to have the
project name pollute the editor tabs for even those scripts which are already
distinctively named. No other file type includes additional information of this
kind in editor tab names; an exception was made just for build.xml files.

Workarounds: Shift-F4 to see paths; Ctrl-Tab might do it too, not sure.

No changes possible for 5.0.
Comment 4 Jesse Glick 2008-12-10 00:45:41 UTC
Probably unnecessary.