本文整理汇总了Java中com.intellij.openapi.editor.markup.GutterIconRenderer.Alignment方法的典型用法代码示例。如果您正苦于以下问题:Java GutterIconRenderer.Alignment方法的具体用法?Java GutterIconRenderer.Alignment怎么用?Java GutterIconRenderer.Alignment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.openapi.editor.markup.GutterIconRenderer
的用法示例。
在下文中一共展示了GutterIconRenderer.Alignment方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public LineMarkerInfo(@NotNull T element,
@NotNull TextRange range,
Icon icon,
int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
@NotNull GutterIconRenderer.Alignment alignment) {
myIcon = icon;
myTooltipProvider = tooltipProvider;
myIconAlignment = alignment;
elementRef = new WeakReference<T>(element);
myNavigationHandler = navHandler;
startOffset = range.getStartOffset();
this.updatePass = updatePass;
endOffset = range.getEndOffset();
}
示例2: LineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public LineMarkerInfo(@NotNull T element,
@NotNull TextRange range,
Icon icon,
int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
GutterIconRenderer.Alignment alignment) {
myIcon = icon;
myTooltipProvider = tooltipProvider;
myIconAlignment = alignment;
elementRef = new WeakReference<T>(element);
myNavigationHandler = navHandler;
startOffset = range.getStartOffset();
this.updatePass = updatePass;
endOffset = range.getEndOffset();
}
示例3: LineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
/**
* Creates a line marker info for the element.
* @param element the element for which the line marker is created.
* @param range the range (relative to beginning of file) with which the marker is associated
* @param icon the icon to show in the gutter for the line marker
* @param updatePass the ID of the daemon pass during which the marker should be recalculated
* @param tooltipProvider the callback to calculate the tooltip for the gutter icon
* @param navHandler the handler executed when the gutter icon is clicked
*/
public LineMarkerInfo(@Nonnull T element,
@Nonnull TextRange range,
Icon icon,
int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
@Nonnull GutterIconRenderer.Alignment alignment) {
myIcon = icon;
myTooltipProvider = tooltipProvider;
myIconAlignment = alignment;
elementRef = SmartPointerManager.getInstance(element.getProject()).createSmartPsiElementPointer(element);
myNavigationHandler = navHandler;
startOffset = range.getStartOffset();
endOffset = range.getEndOffset();
this.updatePass = 11; //Pass.LINE_MARKERS;
}
示例4: RelatedItemLineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public RelatedItemLineMarkerInfo(@NotNull T element, @NotNull TextRange range, Icon icon, int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
@NotNull GutterIconRenderer.Alignment alignment,
@NotNull NotNullLazyValue<Collection<? extends GotoRelatedItem>> targets) {
super(element, range, icon, updatePass, tooltipProvider, navHandler, alignment);
myTargets = targets;
}
示例5: MergeableLineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public MergeableLineMarkerInfo(@NotNull T element,
@NotNull TextRange textRange,
Icon icon,
int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
@NotNull GutterIconRenderer.Alignment alignment) {
super(element, textRange, icon, updatePass, tooltipProvider, navHandler, alignment);
}
示例6: RelatedItemLineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public RelatedItemLineMarkerInfo(@NotNull T element, @NotNull TextRange range, Icon icon, int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
GutterIconRenderer.Alignment alignment,
@NotNull NotNullLazyValue<Collection<? extends GotoRelatedItem>> targets) {
super(element, range, icon, updatePass, tooltipProvider, navHandler, alignment);
myTargets = targets;
}
示例7: MergeableLineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public MergeableLineMarkerInfo(@NotNull T element,
@NotNull TextRange textRange,
Icon icon,
int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
GutterIconRenderer.Alignment alignment) {
super(element, textRange, icon, updatePass, tooltipProvider, navHandler, alignment);
}
示例8: MarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public MarkerInfo(@NotNull PsiElement element,
@NotNull TextRange textRange,
Icon icon,
int updatePass,
@Nullable Function<? super PsiElement, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<PsiElement> navHandler,
@NotNull GutterIconRenderer.Alignment alignment)
{
super(element, textRange, icon, updatePass, tooltipProvider, navHandler, alignment);
}
示例9: RelatedItemLineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public RelatedItemLineMarkerInfo(@Nonnull T element, @Nonnull TextRange range, Icon icon, int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
GutterIconRenderer.Alignment alignment,
@Nonnull NotNullLazyValue<Collection<? extends GotoRelatedItem>> targets) {
super(element, range, icon, updatePass, tooltipProvider, navHandler, alignment);
myTargets = targets;
}
示例10: MergeableLineMarkerInfo
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public MergeableLineMarkerInfo(@Nonnull T element,
@Nonnull TextRange textRange,
Icon icon,
int updatePass,
@Nullable Function<? super T, String> tooltipProvider,
@Nullable GutterIconNavigationHandler<T> navHandler,
@Nonnull GutterIconRenderer.Alignment alignment) {
super(element, textRange, icon, updatePass, tooltipProvider, navHandler, alignment);
}
示例11: getCommonIconAlignment
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public GutterIconRenderer.Alignment getCommonIconAlignment(@NotNull List<MergeableLineMarkerInfo> infos) {
return GutterIconRenderer.Alignment.LEFT;
}
示例12: setAlignment
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public NavigationGutterIconBuilder<T> setAlignment(@NotNull final GutterIconRenderer.Alignment alignment) {
myAlignment = alignment;
return this;
}
示例13: getCommonIconAlignment
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public GutterIconRenderer.Alignment getCommonIconAlignment(@Nonnull List<MergeableLineMarkerInfo> infos) {
return GutterIconRenderer.Alignment.LEFT;
}
示例14: setAlignment
import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public NavigationGutterIconBuilder<T> setAlignment(@Nonnull final GutterIconRenderer.Alignment alignment) {
myAlignment = alignment;
return this;
}