本文整理了Java中org.netbeans.spi.project.ui.templates.support.Templates.createSimpleTargetChooser()
方法的一些代码示例,展示了Templates.createSimpleTargetChooser()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Templates.createSimpleTargetChooser()
方法的具体详情如下:
包路径:org.netbeans.spi.project.ui.templates.support.Templates
类名称:Templates
方法名:createSimpleTargetChooser
暂无
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-spring-beans
List<ConfigFileGroup> configFileGroups = manager != null ? manager.getConfigFileGroups() : null;
SpringXMLConfigGroupPanel configGroupPanel = configFileGroups != null && !configFileGroups.isEmpty() ? new SpringXMLConfigGroupPanel(configFileGroups) : null;
WizardDescriptor.Panel targetChooser = Templates.createSimpleTargetChooser(p, groups, configGroupPanel);
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-core
protected WizardDescriptor.Panel[] createPanels(TemplateWizard wizard) {
Project project = Templates.getProject( wiz );
SourceGroup[] sourceGroups = Util.getJavaSourceGroups(project);
panel = new ListenerPanel(wizard);
WizardDescriptor.Panel packageChooserPanel;
if (sourceGroups.length == 0) {
Sources sources = (Sources) project.getLookup().lookup(org.netbeans.api.project.Sources.class);
sourceGroups = sources.getSourceGroups(Sources.TYPE_GENERIC);
packageChooserPanel = Templates.createSimpleTargetChooser(project, sourceGroups, panel);
}
else
packageChooserPanel = JavaTemplates.createPackageChooser(project, sourceGroups, panel);
return new WizardDescriptor.Panel[] {
// Assuming you want to keep the default 2nd panel:
packageChooserPanel
};
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-core
private WizardDescriptor.Panel createPackageChooserPanel(TemplateWizard wizard, WizardDescriptor.Panel customPanel) {
Project project = Templates.getProject(wizard);
SourceGroup[] sourceGroups = Util.getJavaSourceGroups(project);
if (customPanel==null) {
if (sourceGroups.length == 0) {
Sources sources = ProjectUtils.getSources(project);
sourceGroups = sources.getSourceGroups(Sources.TYPE_GENERIC);
return Templates.createSimpleTargetChooser(project, sourceGroups);
}else {
return JavaTemplates.createPackageChooser(project, sourceGroups);
}
} else {
if (sourceGroups.length == 0) {
Sources sources = ProjectUtils.getSources(project);
sourceGroups = sources.getSourceGroups(Sources.TYPE_GENERIC);
return Templates.createSimpleTargetChooser(project, sourceGroups, customPanel);
} else {
return JavaTemplates.createPackageChooser(project, sourceGroups, customPanel);
}
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-ruby-project
private WizardDescriptor.Panel[] createPanels (WizardDescriptor wizardDescriptor) {
// Ask for Ruby folders
Project project = Templates.getProject( wizardDescriptor );
Sources sources = ProjectUtils.getSources(project);
SourceGroup[] groups = sources.getSourceGroups(RubyProject.SOURCES_TYPE_RUBY);
assert groups != null : "Cannot return null from Sources.getSourceGroups: " + sources;
if (groups.length == 0) {
groups = sources.getSourceGroups( Sources.TYPE_GENERIC );
return new WizardDescriptor.Panel[] {
Templates.createSimpleTargetChooser( project, groups ),
};
} else {
return new WizardDescriptor.Panel[] {
new RubyTargetChooserPanel( project, groups, null, this.type)
};
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-core
protected WizardDescriptor.Panel[] createPanels (Project project,TemplateWizard wiz) {
Sources sources = (Sources) project.getLookup().lookup(org.netbeans.api.project.Sources.class);
SourceGroup[] sourceGroups = Util.getJavaSourceGroups(project);
tagHandlerSelectionPanel = new TagHandlerSelection(wiz);
if (sourceGroups.length == 0)
packageChooserPanel = Templates.createSimpleTargetChooser(project, sourceGroups, tagHandlerSelectionPanel);
else
packageChooserPanel = JavaTemplates.createPackageChooser(project,sourceGroups,tagHandlerSelectionPanel);
sourceGroups = sources.getSourceGroups(WebProjectConstants.TYPE_DOC_ROOT);
if (sourceGroups==null || sourceGroups.length==0)
sourceGroups = Util.getJavaSourceGroups(project);
if (sourceGroups==null || sourceGroups.length==0)
sourceGroups = sources.getSourceGroups(Sources.TYPE_GENERIC);
tagInfoPanel = new TagInfoPanel(wiz, project, sourceGroups);
return new WizardDescriptor.Panel[] {
packageChooserPanel,
tagInfoPanel
};
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-core
Templates.createSimpleTargetChooser(project, sourceGroups)
};
内容来源于网络,如有侵权,请联系作者删除!