Révision 1510

tmp/org.txm.index.core/src/org/txm/index/core/functions/Lexicon.java (revision 1510)
31 31
import java.util.List;
32 32

  
33 33
import org.txm.core.messages.TXMCoreMessages;
34
import org.txm.index.core.preferences.IndexPreferences;
34
import org.txm.core.preferences.TXMPreferences;
35 35
import org.txm.searchengine.cqp.corpus.CQPCorpus;
36 36
import org.txm.searchengine.cqp.corpus.CQPLexicon;
37 37
import org.txm.searchengine.cqp.corpus.Property;
......
70 70
			Property property = pProperties.get(0);
71 71
			
72 72
			if (lexicon == null // never computed
73
					|| hasParameterChanged(IndexPreferences.UNIT_PROPERTIES)) { // already computed but the property changed
73
					|| this.hasParameterChanged(TXMPreferences.UNIT_PROPERTIES)) { // already computed but the property changed
74 74
				lexicon = CQPLexicon.getLexicon(getCorpus(), property, monitor);
75 75
				lexicon.setProperty(property);
76 76
				lexicon._compute();
......
105 105
			}
106 106
			
107 107
		} catch (Exception e) {
108
			System.out.println(TXMCoreMessages.bind(TXMCoreMessages.errorColonP0, e.getLocalizedMessage()));
108
			Log.severe(TXMCoreMessages.bind(TXMCoreMessages.errorColonP0, e.getLocalizedMessage()));
109 109
			Log.printStackTrace(e);
110 110
			return false;
111 111
		}
......
113 113
	}
114 114
	
115 115
	/**
116
	 * The Lexicon can be computed without a query but needs at least one property
116
	 * The Lexicon can be computed without a query but needs at least one property.
117 117
	 */
118 118
	@Override
119 119
	public boolean canCompute() {

Formats disponibles : Unified diff