Révision 2194
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/CQPCorpus.java (revision 2194) | ||
---|---|---|
37 | 37 |
import java.util.List; |
38 | 38 |
import java.util.Locale; |
39 | 39 |
|
40 |
import org.apache.commons.lang.StringUtils; |
|
40 | 41 |
import org.eclipse.osgi.util.NLS; |
41 | 42 |
import org.txm.core.messages.TXMCoreMessages; |
42 | 43 |
import org.txm.core.preferences.TXMPreferences; |
43 | 44 |
import org.txm.core.results.TXMResult; |
44 | 45 |
import org.txm.objects.CorpusBuild; |
46 |
import org.txm.objects.CorpusCommandPreferences; |
|
45 | 47 |
import org.txm.objects.Project; |
46 | 48 |
import org.txm.objects.SavedQuery; |
47 | 49 |
import org.txm.searchengine.core.messages.SearchEngineCoreMessages; |
... | ... | |
787 | 789 |
|
788 | 790 |
@Override |
789 | 791 |
public String getCQLLimitQuery() { |
790 |
return cql_limit_query; |
|
792 |
CorpusCommandPreferences prefs = getProject().getCommandPreferences("concordance"); |
|
793 |
if (prefs == null) { |
|
794 |
return null; |
|
795 |
} |
|
796 |
String str = prefs.get("context_limits"); |
|
797 |
if (str != null) { |
|
798 |
String type = prefs.get("context_limits_type"); |
|
799 |
if ("list".equals(type)) { |
|
800 |
return "<"+str+"> []"; |
|
801 |
} else { |
|
802 |
return str; |
|
803 |
} |
|
804 |
} else { |
|
805 |
return null; |
|
806 |
} |
|
791 | 807 |
} |
792 | 808 |
|
793 | 809 |
/* |
Formats disponibles : Unified diff