Exemplo n.º 1
0
 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);
   }
 }
Exemplo n.º 2
0
 public TableItem(VirtualFile file) {
   myUrl = file.getUrl();
   myCellAppearance = CellAppearanceUtils.forVirtualFile(file);
 }