当前位置: 首页>>代码示例>>Java>>正文


Java GutterIconRenderer.Alignment方法代码示例

本文整理汇总了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();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:LineMarkerInfo.java

示例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();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:18,代码来源:LineMarkerInfo.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:26,代码来源:LineMarkerInfo.java

示例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;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:RelatedItemLineMarkerInfo.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:MergeableLineMarkerInfo.java

示例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;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:RelatedItemLineMarkerInfo.java

示例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);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:10,代码来源:MergeableLineMarkerInfo.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo-csharp,代码行数:11,代码来源:LambdaLineMarkerCollector.java

示例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;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:RelatedItemLineMarkerInfo.java

示例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);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:10,代码来源:MergeableLineMarkerInfo.java

示例11: getCommonIconAlignment

import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public GutterIconRenderer.Alignment getCommonIconAlignment(@NotNull List<MergeableLineMarkerInfo> infos) {
  return GutterIconRenderer.Alignment.LEFT;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:MergeableLineMarkerInfo.java

示例12: setAlignment

import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public NavigationGutterIconBuilder<T> setAlignment(@NotNull final GutterIconRenderer.Alignment alignment) {
  myAlignment = alignment;
  return this;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:NavigationGutterIconBuilder.java

示例13: getCommonIconAlignment

import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public GutterIconRenderer.Alignment getCommonIconAlignment(@Nonnull List<MergeableLineMarkerInfo> infos) {
  return GutterIconRenderer.Alignment.LEFT;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:MergeableLineMarkerInfo.java

示例14: setAlignment

import com.intellij.openapi.editor.markup.GutterIconRenderer; //导入方法依赖的package包/类
public NavigationGutterIconBuilder<T> setAlignment(@Nonnull final GutterIconRenderer.Alignment alignment) {
  myAlignment = alignment;
  return this;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:NavigationGutterIconBuilder.java


注:本文中的com.intellij.openapi.editor.markup.GutterIconRenderer.Alignment方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。