本文整理匯總了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);
}