Recently there have been some good postings about using namespaces in Delphi such as the ones here, here, and here. I like how namespaces are implemented in Delphi but I have been slow to adopt them in my Delphi code (especially Win32 code). The problem I have is that the BDS Project Manager has no collapsible view, or grouping for namespaces. Instead, Project Manager lists the unit names. My namespaces tend to be wordy which means I cannot easily see the unit name without making the Project Manager window very wide.

It will be great if the next release of BDS provides some sort of grouping of namespaces within the Project Manager. For example, each segment in the namespace could be represented as a folder that can expand and collapse. And the contents of the folder would be the final unit name or additional namespaces contained within. In other words, the Project Manager would look something like this when the following units are included:

Units:

WhitePeakSoftware.Data.DataProvider.pas
WhitePeakSoftware.Data.Providers.SqlProvider.pas
WhitePeakSoftware.Data.Providers.SqliteProvider.pas
WhitePeakSoftware.Net.MailClient.pas

Project Manager:

ProjectGroup
- MyProgram.exe
+ References
- WhitePeakSoftware
- Data
- Providers
- SqlProvider.pas
- SqliteProvider.pas
- DataProvider.pas
- Net
- MailClient.pas


There is already a feature request in the QC that asks for namespace grouping. Please vote for this feature if you are using namespaces in Delphi and you would like to see some type of namespace grouping.

posted by Kirby | 25-Oct-2006 12:01 PM | comments (2)


Since I am doing ONLY Win32 in Delphi, I have not even looked into namespaces yet. And, until I can do DotNet 2.0+, I do not see the need to learn.

posted by Mike | October 29 05:19 PM


I'm using them and they work really well. I even started using namespaces with a new Win32 project I started last week. Still, I wish the BDS Project Manager had some type of namespace grouping feature.

posted by Kirby Turner | October 30 04:59 AM

Add Your Comment

Comment:
(No HTML)

Name:
E-mail/Web site:
Your e-mail/web site will not be published on this site. It is optional and will only be used by me should I need to contact you directly.
 
By checking this option, this site will remember your name and e-mail/web site on future visits. Uncheck this option to have the site not remember who you are on future visits.
 
Enter the code shown above:
Copyright © 1999-2008 Kirby Turner.
Site software written by White Peak Software Inc, a provider of custom software and software development coaching.