public interface CreateFromTemplateDecorator
isAfterCreation()return values. A decorator may perform both pre- and post- processing. First the decorator is asked to
accept(org.netbeans.api.templates.CreateDescriptor)the creation process; if it does not, it will not be invoked at all. Before/after main file creation the
decorate(org.netbeans.api.templates.CreateDescriptor, java.util.List<org.openide.filesystems.FileObject>)method is called to perform its magic. Any reported additional files will be returned as part of
|Modifier and Type||Method and Description|
Determines whether the decorator is willing to participate in creation.
Extends the creation process.
Determines if the decorator should be called after template processing.
Determines if the decorator should be called before template processing.
boolean accept(CreateDescriptor desc)
decorate(org.netbeans.api.templates.CreateDescriptor, java.util.List<org.openide.filesystems.FileObject>)will not be called. It
desc- describes the request that is about to be performed
@CheckForNull List<FileObject> decorate(@NonNull CreateDescriptor desc, @NonNull List<FileObject> createdFiles) throws IOException
desc- command objects that describes the file creation request
createdFiles- files created so far as part of the template creation
IOException- if something goes wrong with I/O
Built on August 9 2022. | Copyright © 2017-2022 Apache Software Foundation. All Rights Reserved.