int indexInModel = detailledModel.getIndexWebFile(this.webFile); detailledModel.fireTableRowsUpdated(indexInModel, indexInModel);
int indexInModel = DetailledModel.getInstance().getIndexWebFile(this.webFile); DetailledModel.getInstance().fireTableRowsUpdated(indexInModel, indexInModel);
	public void run() {		URI webFileUri = this.webFile.getURI();		String webFileHostURI;				if (webFileUri.getPort() > 0) {			webFileHostURI = webFileUri.getScheme() + HtmlConstants.SCHEME_AND_AUTHORITY_SEPARATOR + webFileUri.getHost() + ":" + webFileUri.getPort();		} else {			webFileHostURI = webFileUri.getScheme() + HtmlConstants.SCHEME_AND_AUTHORITY_SEPARATOR + webFileUri.getHost();		}				//download the webFile		System.out.println("--Downloading: " + webFileHostURI + webFileUri.getPath() + " - depth: " + this.webFile.getDepth());				//filter the links which have not the same host		if (webFileHostURI.equals(this.defaultHost)) {			boolean downloadedFile = false;			try {				downloadedFile = download();			} catch (IOException e1) {				System.err.println(e1);			}			if (downloadedFile) {				//parsing of the webFile if it is a HTML document				if (this.webFile.getContentType().contains(HtmlConstants.TEXT_HTML)) {					System.out.println("------parsing: " + this.destDirectory + webFileUri.getPath());					parseHtml(this.webFile);				}			} else {				//error during download, set the progression to (-1)				this.webFile.setProgression(-2);				//do a fire in the detailledModel				int indexInModel = detailledModel.getIndexWebFile(this.webFile);				detailledModel.fireTableRowsUpdated(indexInModel, indexInModel);			}		} else {			//it is not the same web site or the same protocol			System.err.println(webFileHostURI + " / " + this.defaultHost + ": NOT THE SAME HOST OR THE SAME PROTOCOL");		}				this.downloadManager.endDownload(this.webFile);	}