Java Code Examples for org.openide.WizardDescriptor#InstantiatingIterator
The following examples show how to use
org.openide.WizardDescriptor#InstantiatingIterator .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PlatformInstallIterator.java From netbeans with Apache License 2.0 | 6 votes |
private void updateIterator (final WizardDescriptor.InstantiatingIterator<WizardDescriptor> it) { if (this.typeIterator != null) { this.typeIterator.uninitialize (this.wizard); } if (it != null) { it.initialize (this.wizard); updatePanelsList(new JComponent[]{ (JComponent)selectorPanel.getComponent(), (JComponent)locationPanel.getComponent(), (JComponent)it.current().getComponent(), }, it); } else { updatePanelsList(new JComponent[]{ (JComponent)selectorPanel.getComponent(), (JComponent)locationPanel.getComponent() }, null); } typeIterator = it; wizard.putProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, new Integer(panelNumber)); // NOI18N }
Example 2
Source File: EditorConfigDataObject.java From editorconfig-netbeans with MIT License | 5 votes |
@TemplateRegistration( displayName = "#LBL_EditorConfig_template_displayName", description = "description.html", folder = "Other", targetName = "", content = "../EditorConfigExample.editorconfig", iconBase = LOGO_PATH, position = 112) public static WizardDescriptor.InstantiatingIterator templateIterator() { return null; }
Example 3
Source File: FileTemplates.java From nb-springboot with Apache License 2.0 | 5 votes |
@TemplateRegistration( folder = FOLDER_SPRING_BOOT, iconBase = ICON_BOOT_CLASS, displayName = "#cmdlinerunner_displayName", content = "CmdLineRunner.java.template", description = "CmdLineRunner.html", scriptEngine = "freemarker", category = {CATEGORY_SPRING_BOOT}, position = 200) @NbBundle.Messages(value = "cmdlinerunner_displayName=CommandLineRunner Class") public static WizardDescriptor.InstantiatingIterator<WizardDescriptor> cmdLineRunner() { return JavaTemplates.createJavaTemplateIterator(); }
Example 4
Source File: FileTemplates.java From nb-springboot with Apache License 2.0 | 5 votes |
@TemplateRegistration( folder = FOLDER_SPRING_BOOT, iconBase = ICON_BOOT_CLASS, displayName = "#infocontributor_displayName", content = "InfoContributor.java.template", description = "InfoContributor.html", scriptEngine = "freemarker", category = {CATEGORY_SPRING_BOOT_ACTUATOR}, position = 400) @NbBundle.Messages(value = "infocontributor_displayName=InfoContributor Class") public static WizardDescriptor.InstantiatingIterator<WizardDescriptor> infoContributor() { return JavaTemplates.createJavaTemplateIterator(); }
Example 5
Source File: ArchetypeWizards.java From netbeans with Apache License 2.0 | 5 votes |
/** * @sinced 2.138 */ public static WizardDescriptor.InstantiatingIterator<?> definedArchetype( String groupId, String artifactId, String version, @NullAllowed String repository, String title, Map<String,String> defaultProps ) { Archetype arch = new Archetype(); arch.setGroupId(groupId); arch.setArtifactId(artifactId); arch.setVersion(version); arch.setRepository(repository); return new MavenWizardIterator(arch, title, defaultProps); }
Example 6
Source File: JavaFXWizardIterator.java From netbeans with Apache License 2.0 | 5 votes |
private static WizardDescriptor.InstantiatingIterator<?> definedFXArchetype(String g, String a, String v, String name) { Map<String, String> props = new HashMap<>(); if (System.getProperty("java.version").startsWith("1.8")) { props.put("javafx-version", "1.8"); } props.put("add-debug-configuration", "Y"); return ArchetypeWizards.definedArchetype(g, a, v, null, name, props); }
Example 7
Source File: NewJavaFileWizardIterator.java From netbeans with Apache License 2.0 | 5 votes |
@NonNull private static Optional<WizardDescriptor.InstantiatingIterator<WizardDescriptor>> asInstantiatingIterator( @NullAllowed final WizardDescriptor.Iterator<WizardDescriptor> it) { return Optional.ofNullable(it) .map((p)->{ return p instanceof WizardDescriptor.InstantiatingIterator ? (WizardDescriptor.InstantiatingIterator<WizardDescriptor>) p: null; }); }
Example 8
Source File: NbTemplateWizardProviderImpl.java From netbeans with Apache License 2.0 | 4 votes |
@Override public WizardDescriptor.InstantiatingIterator createWizardForSuperClass() { return TemplateWizardIterator.createForSuperclass(); }
Example 9
Source File: LocationChooser.java From netbeans with Apache License 2.0 | 4 votes |
/** * Returns the currently selected installer. */ WizardDescriptor.InstantiatingIterator<WizardDescriptor> getInstallerIterator() { return getComponent().getInstaller(); }
Example 10
Source File: PlatformInstallIteratorTest.java From netbeans with Apache License 2.0 | 4 votes |
public WizardDescriptor.InstantiatingIterator<WizardDescriptor> createIterator(FileObject baseFolder) { return this.iterator; }
Example 11
Source File: ClientProjectWizardProviderImplementation.java From netbeans with Apache License 2.0 | 4 votes |
@Override public WizardDescriptor.InstantiatingIterator<WizardDescriptor> newClientProjectWithExtender() { return ClientSideProjectWizardIterator.newProjectWithExtender(); }
Example 12
Source File: OptionalFactory.java From netbeans with Apache License 2.0 | 4 votes |
public WizardDescriptor.InstantiatingIterator getAddInstanceIterator() { return new AddInstanceIterator(); }
Example 13
Source File: BundleWizard.java From netbeans with Apache License 2.0 | 4 votes |
@TemplateRegistration(folder=ArchetypeWizards.TEMPLATE_FOLDER, position=290, displayName="#template.project.OSGi", iconBase="org/netbeans/modules/maven/osgi/maven_osgi_16.png", description="OSGiDescription.html") @Messages("template.project.OSGi=OSGi Bundle") public static WizardDescriptor.InstantiatingIterator<?> create() { return ArchetypeWizards.definedArchetype("org.codehaus.mojo.archetypes", "osgi-archetype", "1.4", null, template_project_OSGi()); }
Example 14
Source File: ServerUtilities.java From netbeans with Apache License 2.0 | 2 votes |
/** * Creates an iterator for a wizard to instantiate server objects. * <p/> * @return Server wizard iterator initialized with supported GlassFish * server versions. */ public static WizardDescriptor.InstantiatingIterator getInstantiatingIterator() { return ServerDetails.getInstantiatingIterator(); }
Example 15
Source File: PlatformInstall.java From netbeans with Apache License 2.0 | 2 votes |
/** * Creates a {@link WizardDescriptor.InstantiatingIterator} for an accepted * folder. The platform definition file returned by the instantiate method * should be created in the Services/Platforms/org-netbeans-api-java-Platform * folder on the system filesystem. * @return TemplateWizard.Iterator instance responsible for instantiating * the platform. The instantiate method of the returned iterator should * return the Set containing the platform. */ public abstract WizardDescriptor.InstantiatingIterator<WizardDescriptor> createIterator(FileObject baseFolder);
Example 16
Source File: CustomPlatformInstall.java From netbeans with Apache License 2.0 | 2 votes |
/** * Returns the {@link WizardDescriptor#InstantiatingIterator} used to install * the platform. The platform definition file returned by the instantiate method * should be created in the Services/Platforms/org-netbeans-api-java-Platform * folder on the system filesystem. * @return TemplateWizard.Iterator instance responsible for instantiating * the platform. The instantiate method of the returned iterator should * return the Set containing the platform. */ public abstract WizardDescriptor.InstantiatingIterator<WizardDescriptor> createIterator();
Example 17
Source File: Factory.java From netbeans with Apache License 2.0 | 2 votes |
/** Creates new iterator for data provided by given file object. * * @param fo file object describing the iterator * @return the Feature On Demand-ready iterator * @throws java.io.IOException */ public static WizardDescriptor.InstantiatingIterator newProject (FileObject fo) throws IOException { return FeatureOnDemandWizardIterator.newProject(fo); }
Example 18
Source File: ArchetypeWizards.java From netbeans with Apache License 2.0 | 2 votes |
/** * Wizard iterator using a predetermined archetype. * @since 2.63 * @see TemplateRegistration * @see #TEMPLATE_FOLDER */ public static WizardDescriptor.InstantiatingIterator<?> definedArchetype(String groupId, String artifactId, String version, @NullAllowed String repository, String title) { return definedArchetype(groupId, artifactId, version, repository, title, null); }
Example 19
Source File: TemplateWizardFactory.java From netbeans with Apache License 2.0 | 2 votes |
/** * Returns an iterator for template wizard * @return an {@link WizardDescriptor.InstantiatingIterator} */ public static WizardDescriptor.InstantiatingIterator<WizardDescriptor> create() { return getProvider().createWizard(); }
Example 20
Source File: TemplateWizardFactory.java From netbeans with Apache License 2.0 | 2 votes |
/** * Returns an iterator for template wizard, with editable superclass * @return an {@link WizardDescriptor.InstantiatingIterator} */ public static WizardDescriptor.InstantiatingIterator<WizardDescriptor> createForSuperClass() { return getProvider().createWizardForSuperClass(); }