mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
file type icons
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
package com.intellij.ide.diff;
|
||||
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.util.Icons;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
@@ -80,4 +82,9 @@ public class VirtualFileDiffElement extends DiffElement<VirtualFile> {
|
||||
public VirtualFile getValue() {
|
||||
return myFile;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Icon getIcon() {
|
||||
return isContainer() ? Icons.FOLDER_ICON : myFile.getIcon();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user