File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/com/magento/idea/magento2plugin/actions Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,16 @@ public void update(@NotNull AnActionEvent e) {
37
37
38
38
@ Nullable
39
39
@ Override
40
- public String getPathToElement (@ NotNull Project project , @ Nullable VirtualFile virtualFile , @ Nullable Editor editor ) {
41
- final PsiDirectory directory = PsiManager .getInstance (project ).findFile (virtualFile ).getContainingDirectory ();
40
+ public String getPathToElement (
41
+ @ NotNull Project project ,
42
+ @ Nullable VirtualFile virtualFile ,
43
+ @ Nullable Editor editor
44
+ ) {
45
+ final PsiDirectory directory
46
+ = PsiManager .getInstance (project ).findFile (virtualFile ).getContainingDirectory ();
42
47
final StringBuilder fullPath = new StringBuilder (virtualFile .getPath ());
43
- final StringBuilder magentoPath = new StringBuilder (GetModuleNameByDirectoryUtil .execute (directory , project ));
48
+ final StringBuilder magentoPath
49
+ = new StringBuilder (GetModuleNameByDirectoryUtil .execute (directory , project ));
44
50
String path = fullPath .toString ();
45
51
46
52
if (PHTML .equals (virtualFile .getExtension ())) {
You can’t perform that action at this time.
0 commit comments