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 239983 - @TemplateRegistration: The attribute iconBase should be extended to resolve values starting with "nbres:/"
Summary: @TemplateRegistration: The attribute iconBase should be extended to resolve v...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Templates (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-04 15:05 UTC by oliverrettig
Modified: 2014-01-04 15:05 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 oliverrettig 2014-01-04 15:05:03 UTC
The annotation @TemplateRegistration allows to set an icon via the attribute iconBase. This attribute allows only an absolute path. 

In many cases the icon is included in other modules than the module where the annotation is used. E.g if you have an module A which defined a specific Project-Type and then you want to have a module B to define a project template. The project template maye wants to add a sample of the Project-Type and this should have the same icon. To do this you have to copy the icon from the module A.

I will be better if there is a way to reference the icon path to the module A using the following syntax:

nbres:/path/to/the/icon/in/the/other/module/icon.png