Revision 523

tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ConcordanceEditor.java (revision 523)
1262 1262
		//if (true)// concordance==null || concordance.getQuery()!=query)
1263 1263
		try {
1264 1264
			JobsTimer.start();
1265
			Concordance oldConcordance = concordance;
1265
			//Concordance oldConcordance = concordance;
1266 1266
			System.out.println(NLS.bind(Messages.ConcordancesEditor_5, query.getQueryString(), corpus.getName()));
1267
			concordance = new Concordance(corpus);
1267
			//concordance = new Concordance(corpus);
1268 1268
			concordance.setParameters(query,
1269 1269
					selectedLeftSortProperties, 
1270 1270
					selectedRightSortProperties,
......
1289 1289

  
1290 1290

  
1291 1291

  
1292
			if (oldConcordance != null) {
1293
				corpus.removeResult(oldConcordance);
1294
				oldConcordance.clean(); // drop the CQP corpus
1295
			}
1292
//			if (oldConcordance != null) {
1293
//				corpus.removeResult(oldConcordance);
1294
//				oldConcordance.clean(); // drop the CQP corpus
1295
//			}
1296 1296
			//corpus.addResult(concordance);
1297 1297

  
1298 1298
			CorporaView.refresh();

Also available in: Unified diff