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


Java LightColors.GREEN属性代码示例

本文整理汇总了Java中com.intellij.ui.LightColors.GREEN属性的典型用法代码示例。如果您正苦于以下问题:Java LightColors.GREEN属性的具体用法?Java LightColors.GREEN怎么用?Java LightColors.GREEN使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.intellij.ui.LightColors的用法示例。


在下文中一共展示了LightColors.GREEN属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getCaptionColor

private Color getCaptionColor(final int i)
{
	if(mySelectionModel.isSelectedIndex(i))
	{
		return LightColors.BLUE;
	}
	if(mySelectedContainer != null)
	{
		if(i >= 0 && i < mySelectedContainer.getGridCellCount(myIsRow))
		{
			final GridChangeUtil.CellStatus status = GridChangeUtil.canDeleteCell(mySelectedContainer, i, myIsRow);
			if(status == GridChangeUtil.CellStatus.Empty || status == GridChangeUtil.CellStatus.Redundant)
			{
				return Color.PINK;
			}
		}
	}
	return LightColors.GREEN;
}
 
开发者ID:consulo,项目名称:consulo-ui-designer,代码行数:19,代码来源:GridCaptionPanel.java

示例2: getColor

private  Color getColor(HighlightSeverity severity) {
  if (SeverityRegistrar.getSeverityRegistrar(myProject).compare(severity, HighlightSeverity.ERROR) >= 0) {
    return LightColors.RED;
  }

  if (SeverityRegistrar.getSeverityRegistrar(myProject).compare(severity, HighlightSeverity.WARNING) >= 0) {
    return LightColors.YELLOW;
  }

  return LightColors.GREEN;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:FileLevelIntentionComponent.java

示例3: getCaptionColor

private Color getCaptionColor(final int i) {
  if (mySelectionModel.isSelectedIndex(i)) {
    return LightColors.BLUE;
  }
  if (mySelectedContainer != null) {
    if (i >= 0 && i < mySelectedContainer.getGridCellCount(myIsRow)) {
      final GridChangeUtil.CellStatus status = GridChangeUtil.canDeleteCell(mySelectedContainer, i, myIsRow);
      if (status == GridChangeUtil.CellStatus.Empty || status == GridChangeUtil.CellStatus.Redundant) {
        return Color.PINK;
      }
    }
  }
  return LightColors.GREEN;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:GridCaptionPanel.java

示例4: getColor

private  Color getColor(HighlightSeverity severity) {
  if (SeverityUtil.getSeverityRegistrar(myProject).compare(severity, HighlightSeverity.ERROR) >= 0) {
    return LightColors.RED;
  }

  if (SeverityUtil.getSeverityRegistrar(myProject).compare(severity, HighlightSeverity.WARNING) >= 0) {
    return LightColors.YELLOW;
  }

  return LightColors.GREEN;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:11,代码来源:FileLevelIntentionComponent.java

示例5: getColor

@Nonnull
private static Color getColor(@Nonnull Project project, @Nonnull HighlightSeverity severity) {
  if (SeverityRegistrar.getSeverityRegistrar(project).compare(severity, HighlightSeverity.ERROR) >= 0) {
    return LightColors.RED;
  }

  if (SeverityRegistrar.getSeverityRegistrar(project).compare(severity, HighlightSeverity.WARNING) >= 0) {
    return LightColors.YELLOW;
  }

  return LightColors.GREEN;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:FileLevelIntentionComponent.java

示例6: CaptionStaticDecorator

public CaptionStaticDecorator(RadComponent component) {
  this(component, LightColors.GREEN);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:3,代码来源:CaptionStaticDecorator.java

示例7: CaptionStaticDecorator

public CaptionStaticDecorator(RadComponent component) {
    this(component, LightColors.GREEN);
}
 
开发者ID:chrimm,项目名称:cordovastudio,代码行数:3,代码来源:CaptionStaticDecorator.java


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