Examples of checkCreateFile()


Examples of com.intellij.psi.PsiDirectory.checkCreateFile()

                    if (directory == null) {
                        return;
                    }

                    try {
                        directory.checkCreateFile(module.getProject().getName().concat(".go"));
                        GoTemplatesFactory.createFromTemplate(directory, "main", project.getName().concat(".go"), GoTemplatesFactory.Template.GoAppMain);
                    } catch (IncorrectOperationException ignored) {
                    } catch (Exception e) {
                        LOG.error(e.getMessage());
                    }
View Full Code Here

Examples of com.intellij.psi.PsiDirectory.checkCreateFile()

                    if (directory == null) {
                        return;
                    }

                    try {
                        directory.checkCreateFile("app.yaml");
                        GoTemplatesFactory.createFromTemplate(directory, "yaml", "app.yaml", GoTemplatesFactory.Template.GoAppEngineConfig);
                    } catch (IncorrectOperationException ignored) {
                    } catch (Exception e) {
                        LOG.error(e.getMessage());
                    }
View Full Code Here

Examples of com.intellij.psi.PsiDirectory.checkCreateFile()

                    } catch (Exception e) {
                        LOG.error(e.getMessage());
                    }

                    try {
                        directory.checkCreateFile(module.getProject().getName().concat(".go"));
                        GoTemplatesFactory.createFromTemplate(directory, "main", project.getName().concat(".go"), GoTemplatesFactory.Template.GoAppEngineMain);
                    } catch (IncorrectOperationException ignored) {
                    } catch (Exception e) {
                        LOG.error(e.getMessage());
                    }
View Full Code Here

Examples of com.intellij.psi.PsiDirectory.checkCreateFile()

                ApplicationManager.getApplication().runWriteAction(new Runnable() {
                    @Override
                    public void run() {
                        String mainFileName = projectName.concat(".go");
                        mainPackage.checkCreateFile(mainFileName);
                        GoTemplatesFactory.createFromTemplate(mainPackage, "main", "main", mainFileName, GoTemplatesFactory.Template.GoAppMain);
                        toolWindow.printNormalMessage(String.format("%nFinished creating package %s from template.%n", packageName));
                        sourceRoots[0].refresh(true, true);
                    }
                });
View Full Code Here

Examples of com.intellij.psi.PsiDirectory.checkCreateFile()

        if (directory == null) {
            return;
        }

        try {
            directory.checkCreateFile("app.yaml");
            GoTemplatesFactory.createFromTemplate(directory, "yaml", "app.yaml", GoTemplatesFactory.Template.GoAppEngineConfig);
        } catch (IncorrectOperationException ignored) {
        } catch (Exception e) {
            LOG.error(e.getMessage());
        }
View Full Code Here

Examples of com.intellij.psi.PsiDirectory.checkCreateFile()

        } catch (Exception e) {
            LOG.error(e.getMessage());
        }

        try {
            directory.checkCreateFile("main.go");
            GoTemplatesFactory.createFromTemplate(directory, "main", "main.go", GoTemplatesFactory.Template.GoAppEngineMain);
        } catch (IncorrectOperationException ignored) {
        } catch (Exception e) {
            LOG.error(e.getMessage());
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.