Skip to content

Commit c9ef89b

Browse files
authored
Merge branch '5.3.0-develop' into fix/full-text-search
2 parents f22b233 + e0af1c5 commit c9ef89b

File tree

53 files changed

+377
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+377
-104
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,15 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0).
66

7+
## 5.3.0
8+
79
## 5.2.0
810

11+
### Fixed
12+
13+
- Fixed action update thread deprecation [#2072](https://github.com/magento/magento2-phpstorm-plugin/pull/2072)
14+
- Fixed compatibility with 2024.1 [#2071](https://github.com/magento/magento2-phpstorm-plugin/pull/2071)
15+
916
## 5.1.0
1017

1118
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
1. Check out this repository
4444
1. Open a folder with the project in the IntelliJ Ultimate using the `open` action button.
45-
1. Make sure that you on the latest develop branch (e.g `5.2.0-develop`)
45+
1. Make sure that you on the latest develop branch (e.g `5.3.0-develop`)
4646
1. Right-click on the `build.gradle` file, choose "Import Gradle project" (if this is not exist look for "Build module '<root folder name>'") (you need to have Gradle plugin installed)
4747
1. Check if the right SDK version is used for the project.
4848
- Current Java version for the project is **java 11**, so you should additionally download **SDK 11** and choose it in the module settings: `Right click by the project root > Open Module Settings > Project Settings > Project > Project SDK`

build.gradle

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,33 @@
44
*/
55

66
plugins {
7-
id 'org.jetbrains.intellij' version '1.13.3'
7+
id 'org.jetbrains.intellij' version '1.17.3'
88
id 'checkstyle'
99
id 'pmd'
10-
id 'org.jetbrains.changelog' version '2.0.0'
10+
id 'org.jetbrains.changelog' version '2.2.0'
1111
}
1212

1313
repositories {
1414
mavenCentral()
1515
}
1616

1717
group 'com.magento.idea'
18-
version '5.2.0'
18+
version '5.3.0'
1919

2020
apply plugin: 'org.jetbrains.intellij'
2121
apply plugin: 'java'
2222
apply plugin: 'idea'
2323
apply plugin: 'groovy'
2424
apply plugin: 'org.jetbrains.changelog'
2525

26-
def phpPluginVersion = System.getProperty("phpPluginVersion", "231.8109.199")
27-
def ideaVersion = System.getProperty("ideaVersion", "2023.1")
26+
def phpPluginVersion = System.getProperty("phpPluginVersion", "241.14494.158")
27+
def ideaVersion = System.getProperty("ideaVersion", "2024.1")
2828
def javaVersion = 17
2929

30-
sourceCompatibility = javaVersion
31-
targetCompatibility = javaVersion
30+
java {
31+
sourceCompatibility = javaVersion
32+
targetCompatibility = javaVersion
33+
}
3234

3335
intellij {
3436
version = ideaVersion
@@ -41,7 +43,7 @@ intellij {
4143
'properties',
4244
'com.intellij.css',
4345
'JavaScript',
44-
'com.intellij.lang.jsgraphql:3.4.0',
46+
'com.intellij.lang.jsgraphql:241.14494.150',
4547
'platform-images',
4648
'copyright'
4749
]

gradle-tasks/staticChecks.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,34 @@ pmd {
2323
ruleSets = []
2424
}
2525

26-
tasks.withType(Checkstyle) {
26+
tasks.withType(Checkstyle).configureEach {
2727
// Specify all files that should be checked
2828
classpath = files()
2929
source "${project.rootDir}"
3030
}
3131

3232
// Execute Checkstyle on all files
33-
task checkstyle(type: Checkstyle) {
33+
tasks.register('checkstyle', Checkstyle) {
3434
}
3535

3636
// Execute Checkstyle on all modified files
37-
task checkstyleCI(type: Checkstyle) {
37+
tasks.register('checkstyleCI', Checkstyle) {
3838
def changedFiles = getChangedFiles()
3939
include changedFiles
4040
}
4141

42-
tasks.withType(Pmd) {
42+
tasks.withType(Pmd).configureEach {
4343
// Specify all files that should be checked
4444
classpath = files()
4545
source "${project.rootDir}"
4646
}
4747

4848
// Execute Checkstyle on all files
49-
task pmd(type: Pmd) {
49+
tasks.register('pmd', Pmd) {
5050
}
5151

5252
// Execute Checkstyle on all modified files
53-
task pmdCI(type: Pmd) {
53+
tasks.register('pmdCI', Pmd) {
5454
def changedFiles = getChangedFiles()
5555
include changedFiles
5656
}

resources/META-INF/plugin.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<idea-plugin require-restart="true">
88
<id>com.magento.idea.magento2plugin</id>
99
<name>Magento PhpStorm</name>
10-
<version>5.2.0</version>
10+
<version>5.3.0</version>
1111
<vendor url="https://github.com/magento/magento2-phpstorm-plugin">Magento Inc.</vendor>
1212

1313
<description><![CDATA[
@@ -24,7 +24,7 @@
2424
</change-notes>
2525

2626
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description -->
27-
<idea-version since-build="231.8109.175"/>
27+
<idea-version since-build="241.14494.158"/>
2828

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

src/com/magento/idea/magento2plugin/actions/comparator/CompareTemplateAction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.intellij.diff.DiffDialogHints;
99
import com.intellij.diff.DiffManager;
1010
import com.intellij.diff.chains.DiffRequestChain;
11+
import com.intellij.openapi.actionSystem.ActionUpdateThread;
1112
import com.intellij.openapi.actionSystem.AnAction;
1213
import com.intellij.openapi.actionSystem.AnActionEvent;
1314
import com.intellij.openapi.actionSystem.PlatformDataKeys;
@@ -143,4 +144,9 @@ private void setStatus(final AnActionEvent event, final boolean status) {
143144
event.getPresentation().setVisible(status);
144145
event.getPresentation().setEnabled(status);
145146
}
147+
148+
@Override
149+
public @NotNull ActionUpdateThread getActionUpdateThread() {
150+
return ActionUpdateThread.BGT;
151+
}
146152
}

src/com/magento/idea/magento2plugin/actions/context/AbstractContextAction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import com.intellij.ide.fileTemplates.FileTemplateManager;
1010
import com.intellij.ide.fileTemplates.actions.AttributesDefaults;
1111
import com.intellij.ide.fileTemplates.actions.CreateFromTemplateActionBase;
12+
import com.intellij.openapi.actionSystem.ActionUpdateThread;
1213
import com.intellij.openapi.actionSystem.AnActionEvent;
1314
import com.intellij.openapi.actionSystem.DataContext;
1415
import com.intellij.openapi.actionSystem.DataKey;
@@ -70,6 +71,11 @@ public AbstractContextAction(
7071
this.moduleFile = moduleFile;
7172
}
7273

74+
@Override
75+
public @NotNull ActionUpdateThread getActionUpdateThread() {
76+
return ActionUpdateThread.BGT;
77+
}
78+
7379
@Override
7480
@SuppressWarnings({"PMD.CyclomaticComplexity", "PMD.NPathComplexity"})
7581
public void update(final @NotNull AnActionEvent event) {

src/com/magento/idea/magento2plugin/actions/context/CustomGeneratorContextAction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package com.magento.idea.magento2plugin.actions.context;
77

8+
import com.intellij.openapi.actionSystem.ActionUpdateThread;
89
import com.intellij.openapi.actionSystem.AnAction;
910
import com.intellij.openapi.actionSystem.AnActionEvent;
1011
import com.intellij.openapi.project.Project;
@@ -82,6 +83,11 @@ public void update(final @NotNull AnActionEvent event) {
8283
return file;
8384
}
8485

86+
@Override
87+
public @NotNull ActionUpdateThread getActionUpdateThread() {
88+
return ActionUpdateThread.BGT;
89+
}
90+
8591
/**
8692
* Implement check if an action should be shown in the context defined by the module,
8793
* target directory or target file.

src/com/magento/idea/magento2plugin/actions/context/xml/NewLayoutXmlAction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package com.magento.idea.magento2plugin.actions.context.xml;
77

8+
import com.intellij.openapi.actionSystem.ActionUpdateThread;
89
import com.intellij.openapi.actionSystem.AnAction;
910
import com.intellij.openapi.actionSystem.AnActionEvent;
1011
import com.intellij.openapi.actionSystem.DataContext;
@@ -94,6 +95,11 @@ public void actionPerformed(final @NotNull AnActionEvent event) {
9495
NewLayoutTemplateDialog.open(event.getProject(), targetDirectory);
9596
}
9697

98+
@Override
99+
public @NotNull ActionUpdateThread getActionUpdateThread() {
100+
return ActionUpdateThread.BGT;
101+
}
102+
97103
/**
98104
* Set is action available for event.
99105
*

src/com/magento/idea/magento2plugin/actions/generation/CreateAPluginAction.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
package com.magento.idea.magento2plugin.actions.generation;
77

8+
import com.intellij.openapi.actionSystem.ActionUpdateThread;
9+
import com.intellij.openapi.actionSystem.ActionUpdateThreadAware;
810
import com.intellij.openapi.actionSystem.AnActionEvent;
911
import com.intellij.openapi.actionSystem.PlatformDataKeys;
1012
import com.intellij.openapi.editor.Caret;
@@ -24,7 +26,7 @@
2426
import com.magento.idea.magento2plugin.util.magento.plugin.IsPluginAllowedForMethodUtil;
2527
import org.jetbrains.annotations.NotNull;
2628

27-
public class CreateAPluginAction extends DumbAwareAction {
29+
public class CreateAPluginAction extends DumbAwareAction implements ActionUpdateThreadAware {
2830

2931
public static final String ACTION_NAME = "Create a new Plugin";
3032
public static final String ACTION_DESCRIPTION = "Create a new Magento 2 Plugin";
@@ -90,6 +92,11 @@ public boolean isDumbAware() {
9092
return false;
9193
}
9294

95+
@Override
96+
public @NotNull ActionUpdateThread getActionUpdateThread() {
97+
return ActionUpdateThread.BGT;
98+
}
99+
93100
private Pair<PsiFile, PhpClass> findPhpClass(final @NotNull AnActionEvent event) {
94101
final PsiFile psiFile = event.getData(PlatformDataKeys.PSI_FILE);
95102

0 commit comments

Comments
 (0)