@@ -28,19 +28,19 @@ public class CopyMagentoPath extends CopyPathProvider {
28
28
};
29
29
30
30
@ Override
31
- public void update (@ NotNull AnActionEvent e ) {
32
- final VirtualFile virtualFile = e .getData (PlatformDataKeys .VIRTUAL_FILE );
31
+ public void update (@ NotNull final AnActionEvent event ) {
32
+ final VirtualFile virtualFile = event .getData (PlatformDataKeys .VIRTUAL_FILE );
33
33
if (virtualFile != null && virtualFile .isDirectory ()) {
34
- e .getPresentation ().setVisible (false );
34
+ event .getPresentation ().setVisible (false );
35
35
}
36
36
}
37
37
38
38
@ Nullable
39
39
@ Override
40
40
public String getPathToElement (
41
- @ NotNull Project project ,
42
- @ Nullable VirtualFile virtualFile ,
43
- @ Nullable Editor editor
41
+ @ NotNull final Project project ,
42
+ @ Nullable final VirtualFile virtualFile ,
43
+ @ Nullable final Editor editor
44
44
) {
45
45
final PsiDirectory directory
46
46
= PsiManager .getInstance (project ).findFile (virtualFile ).getContainingDirectory ();
@@ -63,9 +63,9 @@ public String getPathToElement(
63
63
return path ;
64
64
}
65
65
66
- private int getIndexOf (StringBuilder fullPath , String path ) {
67
- return fullPath .lastIndexOf (path ) ! = -1
68
- ? fullPath . lastIndexOf ( path )
69
- : getIndexOf ( fullPath , templatePaths [++ index ] );
66
+ private int getIndexOf (final StringBuilder fullPath , final String path ) {
67
+ return fullPath .lastIndexOf (path ) = = -1
68
+ ? getIndexOf ( fullPath , templatePaths [++ index ] )
69
+ : fullPath . lastIndexOf ( path );
70
70
}
71
71
}
0 commit comments