Java Code Examples for com.intellij.codeInsight.daemon.LineMarkerInfo#getLineMarkerTooltip()
The following examples show how to use
com.intellij.codeInsight.daemon.LineMarkerInfo#getLineMarkerTooltip() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnnotationLightCodeInsightFixtureTestCase.java From idea-php-generics-plugin with MIT License | 6 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { if(markerInfo.getLineMarkerTooltip() == null || !markerInfo.getLineMarkerTooltip().equals(toolTip)) { return false; } if(!(markerInfo instanceof RelatedItemLineMarkerInfo)) { return false; } for (Object o : ((RelatedItemLineMarkerInfo) markerInfo).createGotoRelatedItems()) { if(o instanceof GotoRelatedItem && this.pattern.accepts(((GotoRelatedItem) o).getElement())) { return true; } } return false; }
Example 2
Source File: AbstractTestCase.java From idea-php-typo3-plugin with MIT License | 6 votes |
public void assertLineMarker(@NotNull PsiElement psiElement, @NotNull String markerTooltip) { final List<PsiElement> elements = collectPsiElementsRecursive(psiElement); for (LineMarkerProvider lineMarkerProvider : LineMarkerProviders.getInstance().allForLanguage(psiElement.getLanguage())) { Collection<LineMarkerInfo> lineMarkerInfos = new ArrayList<>(); lineMarkerProvider.collectSlowLineMarkers(elements, lineMarkerInfos); if (lineMarkerInfos.size() == 0) { continue; } for (LineMarkerInfo lineMarkerInfo : lineMarkerInfos) { String lineMarkerTooltip = lineMarkerInfo.getLineMarkerTooltip(); if (lineMarkerTooltip.equals(String.format("<html><body>%s<br></body></html>", markerTooltip))) { return; } } } fail(String.format("Line marker %s not found", markerTooltip)); }
Example 3
Source File: LaravelLightCodeInsightFixtureTestCase.java From idea-php-laravel-plugin with MIT License | 6 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { if(markerInfo.getLineMarkerTooltip() == null || !markerInfo.getLineMarkerTooltip().equals(toolTip)) { return false; } if(!(markerInfo instanceof RelatedItemLineMarkerInfo)) { return false; } for (Object o : ((RelatedItemLineMarkerInfo) markerInfo).createGotoRelatedItems()) { if(o instanceof GotoRelatedItem && this.pattern.accepts(((GotoRelatedItem) o).getElement())) { return true; } } return false; }
Example 4
Source File: ShopwareLightCodeInsightFixtureTestCase.java From idea-php-shopware-plugin with MIT License | 6 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { if(markerInfo.getLineMarkerTooltip() == null || !markerInfo.getLineMarkerTooltip().equals(toolTip)) { return false; } if(!(markerInfo instanceof RelatedItemLineMarkerInfo)) { return false; } for (Object o : ((RelatedItemLineMarkerInfo) markerInfo).createGotoRelatedItems()) { if(o instanceof GotoRelatedItem && this.pattern.accepts(((GotoRelatedItem) o).getElement())) { return true; } } return false; }
Example 5
Source File: DrupalLightCodeInsightFixtureTestCase.java From idea-php-drupal-symfony2-bridge with MIT License | 6 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { if(markerInfo.getLineMarkerTooltip() == null || !markerInfo.getLineMarkerTooltip().equals(toolTip)) { return false; } if(!(markerInfo instanceof RelatedItemLineMarkerInfo)) { return false; } for (Object o : ((RelatedItemLineMarkerInfo) markerInfo).createGotoRelatedItems()) { if(o instanceof GotoRelatedItem && this.pattern.accepts(((GotoRelatedItem) o).getElement())) { return true; } } return false; }
Example 6
Source File: SymfonyLightCodeInsightFixtureTestCase.java From idea-php-symfony2-plugin with MIT License | 6 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { if(markerInfo.getLineMarkerTooltip() == null || !markerInfo.getLineMarkerTooltip().equals(toolTip)) { return false; } if(!(markerInfo instanceof RelatedItemLineMarkerInfo)) { return false; } for (Object o : ((RelatedItemLineMarkerInfo) markerInfo).createGotoRelatedItems()) { if(o instanceof GotoRelatedItem && this.pattern.accepts(((GotoRelatedItem) o).getElement())) { return true; } } return false; }
Example 7
Source File: AnnotationLightCodeInsightFixtureTestCase.java From idea-php-annotation-plugin with MIT License | 6 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { if(markerInfo.getLineMarkerTooltip() == null || !markerInfo.getLineMarkerTooltip().equals(toolTip)) { return false; } if(!(markerInfo instanceof RelatedItemLineMarkerInfo)) { return false; } for (Object o : ((RelatedItemLineMarkerInfo) markerInfo).createGotoRelatedItems()) { if(o instanceof GotoRelatedItem && this.pattern.accepts(((GotoRelatedItem) o).getElement())) { return true; } } return false; }
Example 8
Source File: ExpectedHighlightingData.java From consulo with Apache License 2.0 | 6 votes |
private static boolean containsLineMarker(LineMarkerInfo info, Collection<LineMarkerInfo> where) { final String infoTooltip = info.getLineMarkerTooltip(); for (LineMarkerInfo markerInfo : where) { String markerInfoTooltip; if (markerInfo.startOffset == info.startOffset && markerInfo.endOffset == info.endOffset && ( Comparing.equal(infoTooltip, markerInfoTooltip = markerInfo.getLineMarkerTooltip()) || ANY_TEXT.equals(markerInfoTooltip) || ANY_TEXT.equals(infoTooltip) ) ) { return true; } } return false; }
Example 9
Source File: ExpectedHighlightingData.java From consulo with Apache License 2.0 | 5 votes |
private void refreshLineMarkers() { for (Map.Entry<RangeMarker, LineMarkerInfo> entry : lineMarkerInfos.entrySet()) { RangeMarker rangeMarker = entry.getKey(); int startOffset = rangeMarker.getStartOffset(); int endOffset = rangeMarker.getEndOffset(); final LineMarkerInfo value = entry.getValue(); LineMarkerInfo markerInfo = new LineMarkerInfo<PsiElement>(value.getElement(), new TextRange(startOffset,endOffset), null, value.updatePass, new Function<PsiElement,String>() { @Override public String fun(PsiElement psiElement) { return value.getLineMarkerTooltip(); } }, null, GutterIconRenderer.Alignment.RIGHT); entry.setValue(markerInfo); } }
Example 10
Source File: AnnotationLightCodeInsightFixtureTestCase.java From idea-php-generics-plugin with MIT License | 4 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { return markerInfo.getLineMarkerTooltip() != null && markerInfo.getLineMarkerTooltip().equals(toolTip); }
Example 11
Source File: LaravelLightCodeInsightFixtureTestCase.java From idea-php-laravel-plugin with MIT License | 4 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { return markerInfo.getLineMarkerTooltip() != null && markerInfo.getLineMarkerTooltip().equals(toolTip); }
Example 12
Source File: ShopwareLightCodeInsightFixtureTestCase.java From idea-php-shopware-plugin with MIT License | 4 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { return markerInfo.getLineMarkerTooltip() != null && markerInfo.getLineMarkerTooltip().equals(toolTip); }
Example 13
Source File: DrupalLightCodeInsightFixtureTestCase.java From idea-php-drupal-symfony2-bridge with MIT License | 4 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { return markerInfo.getLineMarkerTooltip() != null && markerInfo.getLineMarkerTooltip().equals(toolTip); }
Example 14
Source File: SymfonyLightCodeInsightFixtureTestCase.java From idea-php-symfony2-plugin with MIT License | 4 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { return markerInfo.getLineMarkerTooltip() != null && markerInfo.getLineMarkerTooltip().equals(toolTip); }
Example 15
Source File: AnnotationLightCodeInsightFixtureTestCase.java From idea-php-annotation-plugin with MIT License | 4 votes |
@Override public boolean match(@NotNull LineMarkerInfo markerInfo) { return markerInfo.getLineMarkerTooltip() != null && markerInfo.getLineMarkerTooltip().equals(toolTip); }