本文整理汇总了Java中com.intellij.util.PlatformIcons.CLASS_ICON属性的典型用法代码示例。如果您正苦于以下问题:Java PlatformIcons.CLASS_ICON属性的具体用法?Java PlatformIcons.CLASS_ICON怎么用?Java PlatformIcons.CLASS_ICON使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.intellij.util.PlatformIcons
的用法示例。
在下文中一共展示了PlatformIcons.CLASS_ICON属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPresentation
@NotNull
@Override
public ItemPresentation getPresentation() {
return new ItemPresentation() {
@Nullable
@Override
public String getPresentableText() {
return presText;
}
@Nullable
@Override
public String getLocationString() {
return null;
}
@Nullable
@Override
public Icon getIcon(boolean b) {
return PlatformIcons.CLASS_ICON;
}
};
}
示例2: getImageForType
/**
* Returns an image for the given type
* @param type
* @return
*/
@Nullable
public static Icon getImageForType(int type){
switch (type) {
case IToken.TYPE_CLASS:
return PlatformIcons.CLASS_ICON;
case IToken.TYPE_FUNCTION:
return PlatformIcons.METHOD_ICON;
default:
return null;
}
}
示例3: NewClassAction
public NewClassAction() {
super(PlatformIcons.CLASS_ICON);
}
示例4: CreateItemFilesAction
public CreateItemFilesAction() {
super("", IdeBundle.message("action.create.new.class.description"), PlatformIcons.CLASS_ICON, true);
}
示例5: getIcon
@Override
public Icon getIcon(boolean isOpen) {
return PlatformIcons.CLASS_ICON;
}
示例6: CreateClassAction
public CreateClassAction() {
super("", IdeBundle.message("action.create.new.class.description"), PlatformIcons.CLASS_ICON, true);
}
示例7: getShowContainersAction
protected ShowContainersAction getShowContainersAction() {
return new ShowContainersAction(IdeBundle.message("action.show.classes"), PlatformIcons.CLASS_ICON);
}
示例8: GenerateModuleClassAction
public GenerateModuleClassAction() {
super("", IdeBundle.message("action.create.new.class.description"), PlatformIcons.CLASS_ICON, true);
}