File tree Expand file tree Collapse file tree 3 files changed +21
-8
lines changed
src/main/java/org/axonframework/intellij/ide/plugin/handler Expand file tree Collapse file tree 3 files changed +21
-8
lines changed Original file line number Diff line number Diff line change 179
179
<properties >
180
180
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
181
181
<maven .javadoc.skip>true</maven .javadoc.skip>
182
- <idea .version>14.1.3 </idea .version>
182
+ <idea .version>LOCAL </idea .version>
183
183
<ij .plugin>true</ij .plugin>
184
184
</properties >
185
185
</project >
Original file line number Diff line number Diff line change @@ -4,8 +4,22 @@ if [ ! -e "$IDEA" ]
4
4
then
5
5
export IDEA=" /Applications/IntelliJ IDEA 14.app/Contents"
6
6
fi
7
+ if [ ! -e " $IDEA " ]
8
+ then
9
+ export IDEA=" /Applications/IntelliJ IDEA CE.app/Contents"
10
+ fi
11
+ if [ ! -e " $IDEA " ]
12
+ then
13
+ echo " IDEA libraries not found!"
14
+ echo " Checked: /C/Program Files (x86)/JetBrains/IntelliJ IDEA 14.1"
15
+ echo " Checked: /Applications/IntelliJ IDEA 14.app/Contents"
16
+ echo " Checked: /Applications/IntelliJ IDEA CE.app/Contents"
17
+ echo " "
18
+ echo " Try installing the IDEA Community Edition"
19
+ exit 1
20
+ fi
7
21
8
- export IDEA_VERSION=14.1.3
22
+ export IDEA_VERSION=LOCAL
9
23
mvn install:install-file -Dfile=" $IDEA /lib/annotations.jar" -DgroupId=com.intellij.idea -DartifactId=annotations -Dversion=$IDEA_VERSION -Dpackaging=jar
10
24
mvn install:install-file -Dfile=" $IDEA /lib/idea.jar" -DgroupId=com.intellij.idea -DartifactId=idea -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true -Dversion=$IDEA_VERSION
11
25
mvn install:install-file -Dfile=" $IDEA /lib/openapi.jar" -DgroupId=com.intellij.idea -DartifactId=openapi -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true -Dversion=$IDEA_VERSION
Original file line number Diff line number Diff line change @@ -44,15 +44,14 @@ public boolean isSagaEvent() {
44
44
45
45
public static Handler createEventHandler (PsiMethod method ) {
46
46
PsiType [] methodArguments = getMethodArguments (method );
47
- return new CommandEventHandler (methodArguments [0 ], method );
47
+ return methodArguments . length > 0 ? new CommandEventHandler (methodArguments [0 ], method ) : null ;
48
48
}
49
49
50
50
private static PsiType [] getMethodArguments (PsiMethod method ) {
51
- PsiParameterList list = method .getParameterList ();
52
- PsiType [] argument = new PsiType [list .getParametersCount ()];
53
- for (int i = 0 ; i < list .getParameters ().length ; i ++) {
54
- PsiParameter psiParameter = list .getParameters ()[i ];
55
- argument [i ] = psiParameter .getType ();
51
+ PsiParameter [] listParameters = method .getParameterList ().getParameters ();
52
+ PsiType [] argument = new PsiType [listParameters .length ];
53
+ for (int i = 0 ; i < listParameters .length ; i ++) {
54
+ argument [i ] = listParameters [i ].getType ();
56
55
}
57
56
return argument ;
58
57
}
You can’t perform that action at this time.
0 commit comments