|
| 1 | +/* |
| 2 | + * Copyright © Magento, Inc. All rights reserved. |
| 3 | + * See COPYING.txt for license details. |
| 4 | + */ |
| 5 | + |
1 | 6 | package com.magento.idea.magento2plugin.actions.comparator;
|
2 | 7 |
|
3 | 8 | import com.intellij.diff.DiffContentFactory;
|
|
25 | 30 | import org.apache.commons.lang3.StringUtils;
|
26 | 31 | import org.jetbrains.annotations.NotNull;
|
27 | 32 | import org.jetbrains.annotations.Nullable;
|
| 33 | + |
28 | 34 | import java.nio.file.Path;
|
29 | 35 | import java.util.regex.Matcher;
|
30 | 36 | import java.util.regex.Pattern;
|
@@ -72,7 +78,8 @@ public void update(final @NotNull AnActionEvent event) {
|
72 | 78 | final String fullPath = selectedFile.getPath();
|
73 | 79 | final String area = getArea(fullPath);
|
74 | 80 | final String originalModuleName = getOriginalModuleName(project, psiFile);
|
75 |
| - final PsiDirectory originalModuleDirectory = new ModuleIndex(project).getModuleDirectoryByModuleName(originalModuleName); |
| 81 | + final PsiDirectory originalModuleDirectory = |
| 82 | + new ModuleIndex(project).getModuleDirectoryByModuleName(originalModuleName); |
76 | 83 |
|
77 | 84 | if (originalModuleDirectory == null
|
78 | 85 | || area == null
|
@@ -123,9 +130,11 @@ private String getOriginalModuleName(Project project, PsiFile psiFile) {
|
123 | 130 | }
|
124 | 131 |
|
125 | 132 | @NotNull
|
126 |
| - private MutableDiffRequestChain createMutableChainFromFiles(@Nullable Project project, |
127 |
| - @NotNull VirtualFile file1, |
128 |
| - @NotNull VirtualFile file2) { |
| 133 | + private MutableDiffRequestChain createMutableChainFromFiles( |
| 134 | + @Nullable Project project, |
| 135 | + @NotNull VirtualFile file1, |
| 136 | + @NotNull VirtualFile file2 |
| 137 | + ) { |
129 | 138 | DiffContentFactory contentFactory = DiffContentFactory.getInstance();
|
130 | 139 | DiffRequestFactory requestFactory = DiffRequestFactory.getInstance();
|
131 | 140 |
|
|
0 commit comments