File tree 9 files changed +31
-42
lines changed
src/com/magento/idea/magento2plugin
9 files changed +31
-42
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
13
13
14
14
steps :
15
15
- uses : actions/checkout@v3
16
- - name : Set up JDK 11
16
+ - name : Set up JDK 17
17
17
uses : actions/setup-java@v3
18
18
with :
19
- java-version : 11
19
+ java-version : 17
20
20
distribution : ' temurin'
21
21
cache : gradle
22
22
- uses : actions/cache@v3
@@ -39,10 +39,10 @@ jobs:
39
39
40
40
steps :
41
41
- uses : actions/checkout@v3
42
- - name : Set up JDK 11
42
+ - name : Set up JDK 17
43
43
uses : actions/setup-java@v3
44
44
with :
45
- java-version : 11
45
+ java-version : 17
46
46
distribution : ' temurin'
47
47
cache : gradle
48
48
- uses : actions/cache@v3
@@ -65,10 +65,10 @@ jobs:
65
65
66
66
steps :
67
67
- uses : actions/checkout@v3
68
- - name : Set up JDK 11
68
+ - name : Set up JDK 17
69
69
uses : actions/setup-java@v3
70
70
with :
71
- java-version : 11
71
+ java-version : 17
72
72
distribution : ' temurin'
73
73
cache : gradle
74
74
- uses : actions/cache@v3
@@ -91,10 +91,10 @@ jobs:
91
91
92
92
steps :
93
93
- uses : actions/checkout@v3
94
- - name : Set up JDK 11
94
+ - name : Set up JDK 17
95
95
uses : actions/setup-java@v3
96
96
with :
97
- java-version : 11
97
+ java-version : 17
98
98
distribution : ' temurin'
99
99
cache : gradle
100
100
- uses : actions/cache@v3
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ jobs:
13
13
14
14
steps :
15
15
- uses : actions/checkout@v3
16
- - name : Set up JDK 11
16
+ - name : Set up JDK 17
17
17
uses : actions/setup-java@v3
18
18
with :
19
- java-version : 11
19
+ java-version : 17
20
20
distribution : ' temurin'
21
21
cache : gradle
22
22
- name : Gradle wrapper
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ jobs:
14
14
15
15
steps :
16
16
- uses : actions/checkout@v3
17
- - name : Set up JDK 11
17
+ - name : Set up JDK 17
18
18
uses : actions/setup-java@v3
19
19
with :
20
- java-version : 11
20
+ java-version : 17
21
21
distribution : ' temurin'
22
22
cache : gradle
23
23
- name : Gradle wrapper
Original file line number Diff line number Diff line change 21
21
22
22
## Works with
23
23
24
- * PhpStorm >= 2021.2 .1
25
- * JRE >= 11
24
+ * PhpStorm >= 2023 .1
25
+ * JRE >= 17
26
26
27
27
## Features
28
28
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
plugins {
7
- id ' org.jetbrains.intellij' version ' 1.13.2 '
7
+ id ' org.jetbrains.intellij' version ' 1.13.3 '
8
8
id ' checkstyle'
9
9
id ' pmd'
10
10
id ' org.jetbrains.changelog' version ' 2.0.0'
@@ -23,9 +23,9 @@ apply plugin: 'idea'
23
23
apply plugin : ' groovy'
24
24
apply plugin : ' org.jetbrains.changelog'
25
25
26
- def phpPluginVersion = System . getProperty(" phpPluginVersion" , " 222.3739.45 " )
27
- def ideaVersion = System . getProperty(" ideaVersion" , " 2022.2 .1" )
28
- def javaVersion = 11
26
+ def phpPluginVersion = System . getProperty(" phpPluginVersion" , " 231.8109.199 " )
27
+ def ideaVersion = System . getProperty(" ideaVersion" , " 2023 .1" )
28
+ def javaVersion = 17
29
29
30
30
sourceCompatibility = javaVersion
31
31
targetCompatibility = javaVersion
@@ -39,9 +39,9 @@ intellij {
39
39
' yaml' ,
40
40
' java-i18n' ,
41
41
' properties' ,
42
- ' CSS ' ,
43
- ' JavaScriptLanguage ' ,
44
- ' com.intellij.lang.jsgraphql:3.2.1 ' ,
42
+ ' com.intellij.css ' ,
43
+ ' JavaScript ' ,
44
+ ' com.intellij.lang.jsgraphql:3.4.0 ' ,
45
45
' platform-images' ,
46
46
' copyright'
47
47
]
Original file line number Diff line number Diff line change 24
24
</change-notes >
25
25
26
26
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description -->
27
- <idea-version since-build =" 222.3739.54 " />
27
+ <idea-version since-build =" 231.8109.175 " />
28
28
29
29
<!-- please see http://confluence.jetbrains.com/display/IDEADEV/Plugin+Compatibility+with+IntelliJ+Platform+Products
30
30
on how to target different products -->
33
33
-->
34
34
<depends >com.jetbrains.php</depends >
35
35
<depends >JavaScript</depends >
36
+ <depends >com.intellij.css</depends >
36
37
<depends >com.intellij.modules.platform</depends >
37
38
<depends >com.intellij.platform.images</depends >
38
39
<depends >com.intellij.copyright</depends >
Original file line number Diff line number Diff line change 8
8
import com .intellij .ide .actions .NonTrivialActionGroup ;
9
9
import com .intellij .openapi .util .IconLoader ;
10
10
import com .magento .idea .magento2plugin .MagentoIcons ;
11
- import javax .swing .Icon ;
12
- import org .jetbrains .annotations .NotNull ;
13
11
14
12
public class NewEavAttributeGroup extends NonTrivialActionGroup {
15
13
@@ -19,12 +17,8 @@ public class NewEavAttributeGroup extends NonTrivialActionGroup {
19
17
public NewEavAttributeGroup () {
20
18
super ();
21
19
22
- this .getTemplatePresentation ().setIcon (new IconLoader .LazyIcon () {
23
- @ NotNull
24
- @ Override
25
- protected Icon compute () {
26
- return MagentoIcons .MODULE ;
27
- }
28
- });
20
+ this .getTemplatePresentation ().setIcon (
21
+ IconLoader .createLazy (() -> MagentoIcons .MODULE )
22
+ );
29
23
}
30
24
}
Original file line number Diff line number Diff line change 9
9
import com .intellij .openapi .actionSystem .AnActionEvent ;
10
10
import com .intellij .openapi .actionSystem .PlatformDataKeys ;
11
11
import com .intellij .openapi .project .Project ;
12
- import com .intellij .openapi .util .IconLoader . LazyIcon ;
12
+ import com .intellij .openapi .util .IconLoader ;
13
13
import com .intellij .psi .PsiDirectory ;
14
14
import com .intellij .psi .PsiElement ;
15
15
import com .magento .idea .magento2plugin .MagentoIcons ;
18
18
import com .magento .idea .magento2plugin .project .Settings ;
19
19
import com .magento .idea .magento2plugin .util .magento .GetMagentoModuleUtil ;
20
20
import com .magento .idea .magento2plugin .util .magento .GetModuleNameByDirectoryUtil ;
21
- import javax .swing .Icon ;
22
- import org .jetbrains .annotations .NotNull ;
23
21
24
22
public class NewModuleFileGroup extends NonTrivialActionGroup {
25
23
@@ -29,13 +27,9 @@ public class NewModuleFileGroup extends NonTrivialActionGroup {
29
27
public NewModuleFileGroup () {
30
28
super ();
31
29
32
- this .getTemplatePresentation ().setIcon (new LazyIcon () {
33
- @ NotNull
34
- @ Override
35
- protected Icon compute () {
36
- return MagentoIcons .MODULE ;
37
- }
38
- });
30
+ this .getTemplatePresentation ().setIcon (
31
+ IconLoader .createLazy (() -> MagentoIcons .MODULE )
32
+ );
39
33
}
40
34
41
35
@ Override
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ public void actionPerformed(@NotNull AnActionEvent e) {
184
184
}
185
185
186
186
private static boolean isInIncludePath (@ NotNull VirtualFile fileToCheck , @ NotNull Project project ) {
187
- List <VirtualFile > includePaths = PhpIncludePathManager .getInstance (project ).getRoots ();
187
+ List <VirtualFile > includePaths = PhpIncludePathManager .getInstance (project ).getAllIncludedRoots ();
188
188
Iterator iterator = includePaths .iterator ();
189
189
190
190
VirtualFile file ;
You can’t perform that action at this time.
0 commit comments