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 - Allow access to CreateDescriptor
Summary: Allow access to CreateDescriptor
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Templates (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: apireviews
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks: 251977
  Show dependency tree
 
Reported: 2015-04-23 11:34 UTC by Svata Dedic
Modified: 2015-05-14 03:08 UTC (History)
2 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Proposed changes (16.29 KB, patch)
2015-04-23 11:39 UTC, Svata Dedic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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