|
25 | 25 |
|
26 | 26 | public class ProjectDetector implements DirectoryProjectConfigurator {
|
27 | 27 | @Override
|
28 |
| - public void configureProject(Project project, @NotNull VirtualFile virtualFile, Ref<Module> ref) { |
| 28 | + public void configureProject(@NotNull Project project, @NotNull VirtualFile baseDir, @NotNull Ref<Module> moduleRef, boolean newProject) { |
29 | 29 | StartupManager.getInstance(project).runWhenProjectIsInitialized(() -> {
|
30 | 30 | DumbService.getInstance(project).smartInvokeLater(() -> {
|
31 | 31 | if (null == VfsUtil.findRelativeFile(project.getBaseDir(), "app", "etc", "di.xml")) {
|
32 | 32 | return;
|
33 | 33 | }
|
34 | 34 | Notification notification = new Notification("Magento", "Magento",
|
35 |
| - "<a href='enable'>Enable</a> Magento support for this project?", |
36 |
| - NotificationType.INFORMATION, new NotificationListener.Adapter() { |
37 |
| - @Override |
38 |
| - public void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent event) { |
39 |
| - Settings.getInstance(project).pluginEnabled = true; |
40 |
| - IndexManager.manualReindex(); |
41 |
| - MagentoComponentManager.getInstance(project).flushModules(); |
42 |
| - notification.expire(); |
43 |
| - } |
| 35 | + "<a href='enable'>Enable</a> Magento support for this project?", |
| 36 | + NotificationType.INFORMATION, new NotificationListener.Adapter() { |
| 37 | + @Override |
| 38 | + public void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent event) { |
| 39 | + Settings.getInstance(project).pluginEnabled = true; |
| 40 | + IndexManager.manualReindex(); |
| 41 | + MagentoComponentManager.getInstance(project).flushModules(); |
| 42 | + notification.expire(); |
44 | 43 | }
|
| 44 | + } |
45 | 45 | );
|
46 | 46 | Notifications.Bus.notify(notification, project);
|
47 | 47 | });
|
|
0 commit comments