public TableItem(String url) { myUrl = url; final VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(url); if (file != null) { myCellAppearance = CellAppearanceUtils.forVirtualFile(file); } else { myCellAppearance = SimpleTextCellAppearance.invalid(url, CellAppearanceUtils.INVALID_ICON); } }
public TableItem(VirtualFile file) { myUrl = file.getUrl(); myCellAppearance = CellAppearanceUtils.forVirtualFile(file); }