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