File tree 2 files changed +7
-10
lines changed
src/main/java/com/chuntung/plugin/gistsnippet/view
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ buildscript {
6
6
}
7
7
8
8
plugins {
9
- id ' org.jetbrains.intellij' version ' 0.4.15 '
9
+ id ' org.jetbrains.intellij' version ' 1.2.1 '
10
10
}
11
11
12
12
group ' com.chuntung.plugin'
@@ -24,12 +24,12 @@ dependencies {
24
24
25
25
// See https://github.com/JetBrains/gradle-intellij-plugin/
26
26
intellij {
27
- pluginName " Gist Snippet"
28
- version ideaVersion
27
+ pluginName = " Gist Snippet"
28
+ version = ideaVersion
29
29
plugins = [" github" ]
30
- sameSinceUntilBuild Boolean . valueOf(isEAP)
30
+ sameSinceUntilBuild = Boolean . valueOf(isEAP)
31
31
patchPluginXml {
32
- untilBuild customUtilBuild
33
- changeNotes " ${ new File('changeNotes.txt').getText('UTF-8')} "
32
+ untilBuild = customUtilBuild
33
+ changeNotes = " ${ new File('changeNotes.txt').getText('UTF-8')} "
34
34
}
35
35
}
Original file line number Diff line number Diff line change 22
22
import com .intellij .openapi .actionSystem .ex .ActionUtil ;
23
23
import com .intellij .ui .components .labels .LinkLabel ;
24
24
import com .intellij .ui .components .labels .LinkListener ;
25
- import com .intellij .util .ui .EmptyIcon ;
26
- import com .intellij .util .ui .JBUI ;
27
25
import com .intellij .util .ui .UIUtil ;
28
26
import org .jetbrains .annotations .NonNls ;
29
27
import org .jetbrains .annotations .NotNull ;
38
36
* @author Konstantin Bulenkov
39
37
*/
40
38
public class CustomActionLink extends LinkLabel <Object > implements DataProvider {
41
- private static final EmptyIcon ICON = JBUI .scale (EmptyIcon .create (0 , 12 ));
42
39
private final AnAction myAction ;
43
40
private final String myPlace = ActionPlaces .UNKNOWN ;
44
41
private InputEvent myEvent ;
@@ -47,7 +44,7 @@ public class CustomActionLink extends LinkLabel<Object> implements DataProvider
47
44
private Color myNormalColor ;
48
45
49
46
public CustomActionLink (String text , @ NotNull AnAction action ) {
50
- this (text , ICON , action );
47
+ this (text , null , action );
51
48
}
52
49
53
50
public CustomActionLink (String text , Icon icon , @ NotNull AnAction action ) {
You can’t perform that action at this time.
0 commit comments