本文整理汇总了Java中com.intellij.util.IconUtil.getIcon方法的典型用法代码示例。如果您正苦于以下问题:Java IconUtil.getIcon方法的具体用法?Java IconUtil.getIcon怎么用?Java IconUtil.getIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.util.IconUtil
的用法示例。
在下文中一共展示了IconUtil.getIcon方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getIcon
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public static Icon getIcon(Object object, @Iconable.IconFlags int flags, Project project) {
if (object instanceof PsiElement) {
return ((PsiElement)object).getIcon(flags);
}
if (object instanceof Module) {
return ModuleType.get((Module)object).getIcon();
}
if (object instanceof VirtualFile) {
VirtualFile file = (VirtualFile)object;
return IconUtil.getIcon(file, flags, project);
}
return ElementPresentationManager.getIcon(object);
}
示例2: getIcon
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
@Override
public Icon getIcon(final boolean expanded) {
if (isSyntheticJSP()) {
final PsiElement element = getElement();
if (element != null && element.isValid()) {
return IconUtil.getIcon(element.getContainingFile().getVirtualFile(),
Iconable.ICON_FLAG_VISIBILITY | Iconable.ICON_FLAG_READ_STATUS, element.getProject());
}
}
return super.getIcon(expanded);
}
示例3: getIcon
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public Icon getIcon() {
if (myAddedFile.isDirectory()) {
return AllIcons.Nodes.Folder;
}
else {
return IconUtil.getIcon(myAddedFile, 0, myProject);
}
}
示例4: getIconImpl
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
private Icon getIconImpl() {
return IconUtil.getIcon(myFile, Iconable.ICON_FLAG_READ_STATUS, myProject);
}
示例5: getIcon
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public Icon getIcon(final VirtualFile file) {
if (file.isDirectory()) {
return dressIcon(file, PlatformIcons.DIRECTORY_CLOSED_ICON);
}
return IconUtil.getIcon(file, Iconable.ICON_FLAG_READ_STATUS, null);
}
示例6: getIcon
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
public static Icon getIcon(@NotNull VirtualFile vFile) {
return IconUtil.getIcon(vFile, 0, null);
}
示例7: getIcon
import com.intellij.util.IconUtil; //导入方法依赖的package包/类
@Override
public Icon getIcon() {
return IconUtil.getIcon(myVFile, Iconable.ICON_FLAG_VISIBILITY | Iconable.ICON_FLAG_READ_STATUS, myProject);
}