File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/com/magento/idea/magento2plugin/actions/generation Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1616import com .magento .idea .magento2plugin .MagentoIcons ;
1717import com .magento .idea .magento2plugin .actions .generation .dialog .NewControllerDialog ;
1818
19- @ SuppressWarnings ({"PMD.OnlyOneReturn" , "PMD.FieldNamingConventions" })
2019public class NewControllerAction extends AnAction {
20+
2121 public static final String ACTION_NAME = "Magento 2 Controller" ;
2222 public static final String ACTION_DESCRIPTION = "Create a new Magento 2 Controller" ;
2323
@@ -36,13 +36,13 @@ public void actionPerformed(final AnActionEvent event) {
3636 if (view == null ) {
3737 return ;
3838 }
39-
4039 final Project project = CommonDataKeys .PROJECT .getData (dataContext );
40+
4141 if (project == null ) {
4242 return ;
4343 }
44-
4544 final PsiDirectory directory = view .getOrChooseDirectory ();
45+
4646 if (directory == null ) {
4747 return ;
4848 }
You can’t perform that action at this time.
0 commit comments