if (loc instanceof FtpLocation) {
FtpLocation ftp = (FtpLocation) loc;
tt.addEntry("Host:", ftp.getHost());
tt.addEntry("Path:", ftp.getHostPath());
} else if (loc instanceof FileShareLocation) {
FileShareLocation fs = (FileShareLocation) loc;
tt.addEntry("Path:", fs.getPath());
} else if (loc instanceof TemporaryStorageLocation) {
TemporaryStorageLocation ts = (TemporaryStorageLocation) loc;
tt.addEntry("Path:", ts.getPath());
}
tt.addEntry(st == SourceTarget.Source ? "File filter:" : "Filename:", loc.getFileFilter().getFilter());