Package fr.adrienbrault.idea.symfony2plugin.action.ui

Examples of fr.adrienbrault.idea.symfony2plugin.action.ui.SymfonyCreateService$ServiceColumn


        if(!(psiFile instanceof YAMLFile) && !(psiFile instanceof XmlFile) && !(psiFile instanceof PhpFile)) {
            return;
        }

        SymfonyCreateService symfonyCreateService = new SymfonyCreateService(event.getProject(), (PsiFile) psiFile);

        if(psiFile instanceof PhpFile) {

            if("ProjectViewPopup".equals(event.getPlace())) {
                PhpClass phpClass = PhpElementsUtil.getFirstClassFromFile((PhpFile) psiFile);
                if(phpClass != null) {
                    symfonyCreateService.setClassName(phpClass.getPresentableFQN());
                }
            } else {
                Object psiElement = event.getData(DataKey.create("psi.Element"));
                if(psiElement instanceof PhpClass) {
                    symfonyCreateService.setClassName(((PhpClass) psiElement).getPresentableFQN());
                }
            }


        }

        symfonyCreateService.init();

        Dimension dim = new Dimension();
        symfonyCreateService.setTitle("Create Service");
        symfonyCreateService.pack();
        symfonyCreateService.setLocationRelativeTo(null);
        symfonyCreateService.setVisible(true);


    }
View Full Code Here

TOP

Related Classes of fr.adrienbrault.idea.symfony2plugin.action.ui.SymfonyCreateService$ServiceColumn

Copyright © 2018 www.massapicom. 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.