Skip to content

Commit ddf647c

Browse files
committed
upgrade intellij dev plugin
1 parent 6dd1474 commit ddf647c

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77

88
plugins {
9-
id 'org.jetbrains.intellij' version '0.4.15'
9+
id 'org.jetbrains.intellij' version '1.2.1'
1010
}
1111

1212
group 'com.chuntung.plugin'
@@ -24,12 +24,12 @@ dependencies {
2424

2525
// See https://github.com/JetBrains/gradle-intellij-plugin/
2626
intellij {
27-
pluginName "Gist Snippet"
28-
version ideaVersion
27+
pluginName = "Gist Snippet"
28+
version = ideaVersion
2929
plugins = ["github"]
30-
sameSinceUntilBuild Boolean.valueOf(isEAP)
30+
sameSinceUntilBuild = Boolean.valueOf(isEAP)
3131
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')}"
3434
}
3535
}

src/main/java/com/chuntung/plugin/gistsnippet/view/CustomActionLink.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import com.intellij.openapi.actionSystem.ex.ActionUtil;
2323
import com.intellij.ui.components.labels.LinkLabel;
2424
import com.intellij.ui.components.labels.LinkListener;
25-
import com.intellij.util.ui.EmptyIcon;
26-
import com.intellij.util.ui.JBUI;
2725
import com.intellij.util.ui.UIUtil;
2826
import org.jetbrains.annotations.NonNls;
2927
import org.jetbrains.annotations.NotNull;
@@ -38,7 +36,6 @@
3836
* @author Konstantin Bulenkov
3937
*/
4038
public class CustomActionLink extends LinkLabel<Object> implements DataProvider {
41-
private static final EmptyIcon ICON = JBUI.scale(EmptyIcon.create(0, 12));
4239
private final AnAction myAction;
4340
private final String myPlace = ActionPlaces.UNKNOWN;
4441
private InputEvent myEvent;
@@ -47,7 +44,7 @@ public class CustomActionLink extends LinkLabel<Object> implements DataProvider
4744
private Color myNormalColor;
4845

4946
public CustomActionLink(String text, @NotNull AnAction action) {
50-
this(text, ICON, action);
47+
this(text, null, action);
5148
}
5249

5350
public CustomActionLink(String text, Icon icon, @NotNull AnAction action) {

0 commit comments

Comments
 (0)