Search in sources :

Example 21 with GutterMark

use of com.intellij.codeInsight.daemon.GutterMark in project intellij-plugins by JetBrains.

the class FlexColorAnnotatorTest method findAppropriateRenderer.

@NotNull
private FlexMxmlColorAnnotator.MyRenderer findAppropriateRenderer(String extension) throws Exception {
    GutterMark r = myFixture.findGutter(getTestName(false) + '.' + extension);
    assertNotNull(r);
    assertInstanceOf(r, FlexMxmlColorAnnotator.MyRenderer.class);
    return (FlexMxmlColorAnnotator.MyRenderer) r;
}
Also used : GutterMark(com.intellij.codeInsight.daemon.GutterMark) FlexMxmlColorAnnotator(com.intellij.javascript.flex.mxml.FlexMxmlColorAnnotator) NotNull(org.jetbrains.annotations.NotNull)

Example 22 with GutterMark

use of com.intellij.codeInsight.daemon.GutterMark in project intellij-plugins by JetBrains.

the class FlexColorAnnotatorTest method testGutter5.

@JSTestOptions({ JSTestOption.WithFlexFacet, JSTestOption.WithCssSupportLoader })
public void testGutter5() throws Exception {
    GutterMark r = myFixture.findGutter(getTestName(false) + '.' + "css");
    assertNotNull(r);
    assertInstanceOf(r.getIcon(), ColorIconCache.ColorIcon.class);
}
Also used : GutterMark(com.intellij.codeInsight.daemon.GutterMark) ColorIconCache(com.intellij.xml.util.ColorIconCache) JSTestOptions(com.intellij.lang.javascript.JSTestOptions)

Example 23 with GutterMark

use of com.intellij.codeInsight.daemon.GutterMark in project intellij-plugins by JetBrains.

the class JspActionAnnotatorTest method checkGutterActionMethodTargetElements.

/**
   * Checks whether the gutter target elements resolve to the given Action names.
   *
   * @param jspFile             JSP file to check.
   * @param expectedActionNames Names of the actions.
   */
private void checkGutterActionMethodTargetElements(@NonNls final String jspFile, @NonNls final String... expectedActionNames) {
    final GutterMark gutterIconRenderer = myFixture.findGutter(jspFile);
    assertNotNull(gutterIconRenderer);
    AnnotatorTestUtils.checkGutterTargets(gutterIconRenderer, psiElement -> ((PsiMethod) psiElement).getName(), expectedActionNames);
}
Also used : GutterMark(com.intellij.codeInsight.daemon.GutterMark)

Aggregations

GutterMark (com.intellij.codeInsight.daemon.GutterMark)23 NonHideableIconGutterMark (com.intellij.codeInsight.daemon.NonHideableIconGutterMark)6 HintHint (com.intellij.ui.HintHint)6 RelativePoint (com.intellij.ui.awt.RelativePoint)6 ScalableIcon (com.intellij.openapi.util.ScalableIcon)4 JSTestOptions (com.intellij.lang.javascript.JSTestOptions)3 Ref (com.intellij.openapi.util.Ref)3 TooltipController (com.intellij.codeInsight.hint.TooltipController)2 ApplicationManager (com.intellij.openapi.application.ApplicationManager)2 Document (com.intellij.openapi.editor.Document)2 MarkupModelEx (com.intellij.openapi.editor.ex.MarkupModelEx)2 RangeHighlighterEx (com.intellij.openapi.editor.ex.RangeHighlighterEx)2 com.intellij.openapi.editor.markup (com.intellij.openapi.editor.markup)2 Project (com.intellij.openapi.project.Project)2 Balloon (com.intellij.openapi.ui.popup.Balloon)2 ContainerUtil (com.intellij.util.containers.ContainerUtil)2 ColorIconCache (com.intellij.xml.util.ColorIconCache)2 NotNull (org.jetbrains.annotations.NotNull)2 Nullable (org.jetbrains.annotations.Nullable)2 GutterIconNavigationHandler (com.intellij.codeInsight.daemon.GutterIconNavigationHandler)1