From ec2e32b92bb8fec4f5322ed8660984bc8701e505 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Thu, 14 Apr 2016 19:28:32 +0300 Subject: [PATCH] merging AndroidStudio 2.0 --- .../src/com/intellij/ui/components/labels/ActionLink.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/platform-api/src/com/intellij/ui/components/labels/ActionLink.java b/platform/platform-api/src/com/intellij/ui/components/labels/ActionLink.java index 4a790facf2ee..601881fb4df1 100644 --- a/platform/platform-api/src/com/intellij/ui/components/labels/ActionLink.java +++ b/platform/platform-api/src/com/intellij/ui/components/labels/ActionLink.java @@ -22,6 +22,7 @@ import com.intellij.util.ui.UIUtil; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import org.jetbrains.annotations.TestOnly; import javax.swing.*; import java.awt.*; @@ -119,4 +120,9 @@ public class ActionLink extends LinkLabel implements DataProvider { return null; } + + @TestOnly + public AnAction getAction() { + return myAction; + } }