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 252016

Summary: Allow access to CreateDescriptor
Product: platform Reporter: Svata Dedic <sdedic>
Component: TemplatesAssignee: apireviews <apireviews>
Status: RESOLVED FIXED    
Severity: normal CC: sdedic, tmysik
Priority: P3 Keywords: API, API_REVIEW_FAST
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 251977    
Attachments: Proposed changes

Description Svata Dedic 2015-04-23 11:34:32 UTC
Project bridge implementation (and possibly other ones) need to create a CreateDescriptor in order to bridge project-local CreateFromAttribute providers to the general Lookup.
It also needs to manipulate the contents of CreateDescriptor (or create new instnaces) and add attributes as they are collected from individual Providers, similar to what the CreateFromTemplateImpl does during the processing.

I propose to add two methods which would:
1/ create a forked FileBuilder, inheriting the same parameters as the original. 
2/ allow to get a CreateDescriptor describing the current FileBuilder state

See the attachment for the proposed changes.
Comment 1 Svata Dedic 2015-04-23 11:39:14 UTC
Created attachment 153322 [details]
Proposed changes
Comment 2 Svata Dedic 2015-04-23 11:40:03 UTC
The patch contains changes to api.templates module + application in the project system.
Comment 3 Svata Dedic 2015-04-29 08:52:35 UTC
Last call, if there are no objections, I'll integrate the patch tomorrow.
Comment 4 Tomas Mysik 2015-05-06 12:34:02 UTC
(In reply to Svata Dedic from comment #3)
> Last call, if there are no objections, I'll integrate the patch tomorrow.

Go ahead! :)
Comment 5 Svata Dedic 2015-05-06 12:53:10 UTC
Will be pushed as jet-main#6dff401f1554
Comment 6 Quality Engineering 2015-05-14 03:08:20 UTC
Integrated into 'main-silver', will be available in build *201505140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6dff401f1554
User: Svata Dedic <sdedic@netbeans.org>
Log: #252016: added support for template attribute composition