001 package nl.cwi.sen1.gui.plugin; 002 003 import java.io.File; 004 005 import javax.swing.filechooser.FileView; 006 007 public class DialogFileView extends FileView { 008 DialogFileSystemView fsv; 009 010 public DialogFileView(DialogFileSystemView fsv) { 011 this.fsv = fsv; 012 } 013 014 public String getName(File f) { 015 if (fsv.isRoot(f)) { 016 return fsv.getRootLabel(f); 017 } 018 return super.getName(f); 019 } 020 }