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 182388

Summary: provide api to set the DisplayName of a Library created programmatically
Product: projects Reporter: Vince Kraemer <vkraemer>
Component: LibrariesAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: dkonecny, dstrupl, jglick
Priority: P2 Keywords: API, PLAN
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 199253    
Bug Blocks: 182304    

Description Vince Kraemer 2010-03-19 16:26:35 UTC
If I create a library using LibraryManager.createLibrary(String,String,Map) or LibraryManager.createURILibrary(String,String,Map), the name is used as the display name.

If I create a library through the layer/library definition file strategy, I can set a DisplayName, that can be localized and human-friendly.

there are situation where we must create a libraries programmatically and they are not amenable to i18n/l10n.

The easiest solution is to add a new pair of create*Library methods:

LibraryManager.create.*Library(String type, String name, String displayName, Map content)
Comment 1 Vince Kraemer 2010-07-08 14:45:08 UTC
folks told me to increase the priority on this issue.
Comment 2 Tomas Zezula 2010-07-08 14:53:42 UTC
OK, I will put it into the plan for NB 6.10.
Comment 3 David Konecny 2010-07-08 20:11:57 UTC
Thanks Tomas.
Comment 4 Jesse Glick 2011-01-25 21:26:19 UTC
I would fine this useful too.
Comment 5 Vince Kraemer 2011-02-16 20:04:21 UTC
Hey... did this get implemented?
Comment 6 Tomas Zezula 2011-06-16 09:13:49 UTC
Fixed jet-main ac7d98ff7208