com.intellij.ide.actions.CreateFileFromTemplateDialog Java Examples
The following examples show how to use
com.intellij.ide.actions.CreateFileFromTemplateDialog.
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: CreateMuleComponentFile.java From mule-intellij-plugins with Apache License 2.0 | 5 votes |
@Override protected void buildDialog(Project project, PsiDirectory psiDirectory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle(MULE_CONFIGURATION) .addKind("Mule Configuration", MuleIcons.MuleFileType, MuleFileTemplateDescriptorManager.MULE_CONFIGURATION_FILE) .addKind("MUnit Test", MuleIcons.MUnitFileType, MuleFileTemplateDescriptorManager.MUNIT_FILE) .addKind("DataWeave", MuleIcons.DataFileType, MuleFileTemplateDescriptorManager.DATA_WEAVE_FILE) .addKind("MEL Script", MuleIcons.MelFileType, MuleFileTemplateDescriptorManager.MEL_FILE) .addKind("RAML File", MuleIcons.RamlFileType, MuleFileTemplateDescriptorManager.RAML_FILE); }
Example #2
Source File: CreateXQueryFileAction.java From intellij-xquery with Apache License 2.0 | 5 votes |
@Override protected void buildDialog(final Project project, PsiDirectory psiDirectory, CreateFileFromTemplateDialog.Builder builder) { builder .setTitle(NEW_XQUERY_FILE) .addKind("Library Module", XQueryIcons.FILE, LIBRARY_MODULE + DEFAULT_EXTENSION_WITH_DOT) .addKind("Main Module", XQueryIcons.FILE, MAIN_MODULE + DEFAULT_EXTENSION_WITH_DOT) .setValidator(getValidator()); }
Example #3
Source File: CreateNMMLFileAction.java From intellij-haxe with Apache License 2.0 | 5 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle(HaxeBundle.message("create.nmml.file.action")); for (FileTemplate fileTemplate : HaxeFileTemplateUtil.getNMMLTemplates()) { final String templateName = fileTemplate.getName(); final String shortName = HaxeFileTemplateUtil.getTemplateShortName(templateName); builder.addKind(shortName, icons.HaxeIcons.Nmml_16, templateName); } }
Example #4
Source File: CreateClassAction.java From intellij-haxe with Apache License 2.0 | 5 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle(IdeBundle.message("action.create.new.class")); for (FileTemplate fileTemplate : HaxeFileTemplateUtil.getApplicableTemplates()) { final String templateName = fileTemplate.getName(); final String shortName = HaxeFileTemplateUtil.getTemplateShortName(templateName); final Icon icon = HaxeFileTemplateUtil.getTemplateIcon(templateName); builder.addKind(shortName, icon, templateName); } }
Example #5
Source File: CreateLatexFileAction.java From idea-latex with MIT License | 5 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder .setTitle(LatexBundle.message("action.create.file")) .addKind(LatexBundle.message("action.create.file.kind.empty"), Icons.FILE, LatexTemplates.LATEX_EMPTY) .addKind(LatexBundle.message("action.create.file.kind.article"), Icons.FILE, LatexTemplates.LATEX_ARTICLE) .addKind(LatexBundle.message("action.create.file.kind.report"), Icons.FILE, LatexTemplates.LATEX_REPORT) .addKind(LatexBundle.message("action.create.file.kind.book"), Icons.FILE, LatexTemplates.LATEX_BOOK) .addKind(LatexBundle.message("action.create.file.kind.letter"), Icons.FILE, LatexTemplates.LATEX_LETTER) .addKind(LatexBundle.message("action.create.file.kind.presentation"), Icons.FILE, LatexTemplates.LATEX_PRESENTATION); }
Example #6
Source File: BxNewFileAction.java From bxfs with MIT License | 5 votes |
@Override protected void buildDialog(Project project, PsiDirectory psiDirectory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle("Битрикс: Новая страница") .addKind("Страница", BitrixFramework.bxIcon, "Битрикс - Страница") .addKind("Страница (модерн)", BitrixFramework.bxIcon, "Битрикс - Страница (модерн)") .addKind("Сервис", BitrixFramework.bxIcon, "Битрикс - Сервис"); }
Example #7
Source File: CreateSwaggerFile.java From intellij-swagger with MIT License | 5 votes |
@Override protected void buildDialog( Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder .setTitle("New API Specification") .addKind("Swagger file (YAML)", Icons.SWAGGER_API_ICON, "Swagger File (YAML).yaml") .addKind("Swagger file (JSON)", Icons.SWAGGER_API_ICON, "Swagger File (JSON).json") .addKind("OpenAPI file (YAML)", Icons.OPEN_API_ICON, "OpenAPI File (YAML).yaml") .addKind("OpenAPI file (JSON)", Icons.OPEN_API_ICON, "OpenAPI File (JSON).json"); }
Example #8
Source File: CreateNodeTypeDefinition.java From intellij-neos with GNU General Public License v3.0 | 5 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle(NEW_NODE_TYPE_DEFINITION).addKind("Empty File", NeosIcons.NODE_TYPE, NODE_TYPE_TEMPLATE_NAME); builder.setTitle(NEW_NODE_TYPE_DEFINITION).addKind("Document", NeosIcons.NODE_TYPE, DOCUMENT_NODE_TYPE_TEMPLATE_NAME); builder.setTitle(NEW_NODE_TYPE_DEFINITION).addKind("Content", NeosIcons.NODE_TYPE, CONTENT_NODE_TYPE_TEMPLATE_NAME); builder.setTitle(NEW_NODE_TYPE_DEFINITION).addKind("Collection", NeosIcons.NODE_TYPE, COLLECTION_NODE_TYPE_TEMPLATE_NAME); builder.setTitle(NEW_NODE_TYPE_DEFINITION).addKind("Mixin", NeosIcons.NODE_TYPE, MIXIN_NODE_TYPE_TEMPLATE_NAME); builder.setTitle(NEW_NODE_TYPE_DEFINITION).addKind("Constraint", NeosIcons.NODE_TYPE, CONSTRAINT_NODE_TYPE_TEMPLATE_NAME); }
Example #9
Source File: NewApiDebuggerFileAction.java From ApiDebugger with Apache License 2.0 | 4 votes |
@Override protected void buildDialog(Project project, PsiDirectory psiDirectory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle(TITLE); ApiFileType fileType = ApiFileType.INSTANCE; builder.addKind(fileType.getName(), fileType.getIcon(), fileType.getName() + "." + fileType.getDefaultExtension()); }
Example #10
Source File: JSGraphQLNewFileAction.java From js-graphql-intellij-plugin with MIT License | 4 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder .setTitle("New GraphQL File") .addKind("GraphQL File", JSGraphQLIcons.Files.GraphQL, "GraphQL File"); }
Example #11
Source File: JSGraphQLEndpointNewFileAction.java From js-graphql-intellij-plugin with MIT License | 4 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder .setTitle("New GraphQL Endpoint File") .addKind("GraphQL Endpoint File", JSGraphQLIcons.Files.GraphQLSchema, "GraphQL Endpoint File"); }
Example #12
Source File: DWCreateISMLFileAction.java From intellij-demandware with MIT License | 4 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle("ISML") .addKind("ISML File", DWIcons.DW_ISML_ICON, "ISML File.isml"); }
Example #13
Source File: DWCreateDSFileAction.java From intellij-demandware with MIT License | 4 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle("DS File") .addKind("DS File", DWIcons.DW_DS_ICON, "DS File.ds") .addKind("DS Script Node File", DWIcons.DW_DS_ICON, "DS Script Node File.ds"); }
Example #14
Source File: GLSLCreateNewShaderFile.java From glsl4idea with GNU Lesser General Public License v3.0 | 4 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle("Create new GLSL shader file"); builder.addKind("GLSL Shader", null, "GLSL Shader"); }
Example #15
Source File: CSharpCreateFileAction.java From consulo-csharp with Apache License 2.0 | 4 votes |
private static void addKind(CreateFileFromTemplateDialog.Builder builder, @Nonnull Set<String> used, @Nonnull String kind, @Nullable Image icon, @Nonnull String templateName) { used.add(kind); builder.addKind(kind, icon, templateName); }
Example #16
Source File: CreateFusionFile.java From intellij-neos with GNU General Public License v3.0 | 4 votes |
@Override protected void buildDialog(Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle(NEW_FUSION_FILE).addKind("Empty File", FusionIcons.FILE, "Fusion File"); builder.setTitle(NEW_FUSION_FILE).addKind("Content Prototype", FusionIcons.PROTOTYPE, "Fusion Content Prototype"); builder.setTitle(NEW_FUSION_FILE).addKind("Component Prototype", FusionIcons.PROTOTYPE, "Fusion Component Prototype"); }
Example #17
Source File: LithoTemplateAction.java From litho with Apache License 2.0 | 4 votes |
@Override protected void buildDialog( Project project, PsiDirectory directory, CreateFileFromTemplateDialog.Builder builder) { builder.setTitle("New " + templateName).addKind(templateName, ICON, templateName); }