Last active
December 18, 2015 15:09
-
-
Save vexus2/5802607 to your computer and use it in GitHub Desktop.
open PhpNewFileDialog.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected dialog(AnActionEvent e) throws Exception { | |
Project project = e.getProject(); | |
DataContext dataContext = e.getDataContext(); | |
IdeView view = LangDataKeys.IDE_VIEW.getData(dataContext); | |
if (view == null) { | |
return; | |
} | |
Project project = PlatformDataKeys.PROJECT.getData(dataContext); | |
PsiDirectory dir = view.getOrChooseDirectory(); | |
if (dir == null || project == null) return; | |
new PhpNewFileDialog(project, dir).show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment