Revision 1079

tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/CQPCorpus.java (revision 1079)
171 171
		// TODO Auto-generated method stub
172 172
		return false;
173 173
	}
174
	
175
	public MainCorpus getMainCorpus() {
176
		return mainCorpus;
177
	}
174 178
}
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/CQPSearchEngine.java (revision 1079)
442 442
	@Override
443 443
	public boolean hasIndexes(CorpusBuild corpus) {
444 444
		try {
445
			return CorpusManager.getCorpusManager().getCorpus(corpus.getName()) != null;
445
			Corpus cqpcorpus = (Corpus) corpus;
446
			return CorpusManager.getCorpusManager().getCorpus(cqpcorpus.getMainCorpus().getName()) != null;
446 447
		} catch (Exception e) {
447 448
			e.printStackTrace();
448 449
			return false;

Also available in: Unified diff