File tree 1 file changed +3
-3
lines changed
src/com/magento/idea/magento2plugin/actions/generation
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
import com .magento .idea .magento2plugin .MagentoIcons ;
17
17
import com .magento .idea .magento2plugin .actions .generation .dialog .NewControllerDialog ;
18
18
19
- @ SuppressWarnings ({"PMD.OnlyOneReturn" , "PMD.FieldNamingConventions" })
20
19
public class NewControllerAction extends AnAction {
20
+
21
21
public static final String ACTION_NAME = "Magento 2 Controller" ;
22
22
public static final String ACTION_DESCRIPTION = "Create a new Magento 2 Controller" ;
23
23
@@ -36,13 +36,13 @@ public void actionPerformed(final AnActionEvent event) {
36
36
if (view == null ) {
37
37
return ;
38
38
}
39
-
40
39
final Project project = CommonDataKeys .PROJECT .getData (dataContext );
40
+
41
41
if (project == null ) {
42
42
return ;
43
43
}
44
-
45
44
final PsiDirectory directory = view .getOrChooseDirectory ();
45
+
46
46
if (directory == null ) {
47
47
return ;
48
48
}
You can’t perform that action at this time.
0 commit comments