|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.spi.project.ui.templates.support.Templates
Default implementations of template UI.
Method Summary | |
static WizardDescriptor.Panel |
createSimpleTargetChooser(Project project,
SourceGroup[] folders)
Create a basic target chooser suitable for many kinds of templates. |
static WizardDescriptor.Panel |
createSimpleTargetChooser(Project project,
SourceGroup[] folders,
WizardDescriptor.Panel bottomPanel)
Create a basic target chooser suitable for many kinds of templates. |
static Project |
getProject(WizardDescriptor wizardDescriptor)
Method to communicate current choice of project to a custom WizardIteartor associated with particular template |
static FileObject |
getTargetFolder(WizardDescriptor wizardDescriptor)
Method to communicate current choice of target folder to a custom WizardDescriptor.InstantiatingIterator associated with particular template. |
static String |
getTargetName(WizardDescriptor wizardDescriptor)
Method to communicate current choice of target name to a custom WizardDescriptor.InstantiatingIterator associated with particular template. |
static FileObject |
getTemplate(WizardDescriptor wizardDescriptor)
Method to communicate current choice of template to a custom WizardDescriptor.InstantiatingIterator associated with particular template. |
static void |
setTargetFolder(WizardDescriptor wizardDescriptor,
FileObject folder)
Sets the target folder for given WizardDescriptor to be used from custom target choosers |
static void |
setTargetName(WizardDescriptor wizardDescriptor,
String targetName)
Sets the target name for given WizardDescriptor to be used from custom target choosers |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Project getProject(WizardDescriptor wizardDescriptor)
public static FileObject getTemplate(WizardDescriptor wizardDescriptor)
WizardDescriptor.InstantiatingIterator
associated with particular template.
public static FileObject getTargetFolder(WizardDescriptor wizardDescriptor)
WizardDescriptor.InstantiatingIterator
associated with particular template.
public static void setTargetFolder(WizardDescriptor wizardDescriptor, FileObject folder)
public static String getTargetName(WizardDescriptor wizardDescriptor)
WizardDescriptor.InstantiatingIterator
associated with particular template.
public static void setTargetName(WizardDescriptor wizardDescriptor, String targetName)
public static WizardDescriptor.Panel createSimpleTargetChooser(Project project, SourceGroup[] folders)
DataObject.createFromTemplate(org.openide.loaders.DataFolder)
.
project
- The project to work on.folders
- a list of possible roots to create the new file in
public static WizardDescriptor.Panel createSimpleTargetChooser(Project project, SourceGroup[] folders, WizardDescriptor.Panel bottomPanel)
DataObject.createFromTemplate(org.openide.loaders.DataFolder)
.
Resulting panel can be decorated with additional panel placed below the standard target
chooser.
project
- The project to work on.folders
- a list of possible roots to create the new file inbottomPanel
- panel which should be placed underneth the default chooser
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |