Skip to content

Commit e82943a

Browse files
author
Vitaliy Boyko
committed
Increasing module version to support 2020.* IDE's, removed usage of the deprecated method
1 parent 80760d5 commit e82943a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

META-INF/plugin.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<idea-plugin>
22
<id>com.magento.idea.magento2plugin</id>
33
<name>Magento PhpStorm</name>
4-
<version>0.3.0</version>
4+
<version>1.0.0</version>
55
<vendor url="https://github.com/magento/magento2-phpstorm-plugin">Magento Inc.</vendor>
66

77
<description><![CDATA[
@@ -19,7 +19,7 @@
1919
</change-notes>
2020

2121
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description -->
22-
<idea-version since-build="172"/>
22+
<idea-version since-build="193.4386.10"/>
2323

2424
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products
2525
on how to target different products -->

src/com/magento/idea/magento2plugin/project/ProjectDetector.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@
2525

2626
public class ProjectDetector implements DirectoryProjectConfigurator {
2727
@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) {
2929
StartupManager.getInstance(project).runWhenProjectIsInitialized(() -> {
3030
DumbService.getInstance(project).smartInvokeLater(() -> {
3131
if (null == VfsUtil.findRelativeFile(project.getBaseDir(), "app", "etc", "di.xml")) {
3232
return;
3333
}
3434
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();
4443
}
44+
}
4545
);
4646
Notifications.Bus.notify(notification, project);
4747
});

0 commit comments

Comments
 (0)