Révision 667
| tmp/org.txm.utils/src/org/txm/utils/logger/Log.java (revision 667) | ||
|---|---|---|
| 249 | 249 |
* @param flag where to print the message |
| 250 | 250 |
*/ |
| 251 | 251 |
public static void severe(String message, int flag) {
|
| 252 |
if ((flag & CONSOLE) == CONSOLE) printConsoleError(message); |
|
| 252 |
if ((flag & CONSOLE) == CONSOLE) {
|
|
| 253 |
printConsoleError(message); |
|
| 254 |
} |
|
| 253 | 255 |
txm.severe(message); |
| 254 | 256 |
} |
| 255 | 257 |
|
| ... | ... | |
| 373 | 375 |
if (Level.SEVERE.intValue() < txm.getLevel().intValue()) {
|
| 374 | 376 |
return; |
| 375 | 377 |
} |
| 376 |
System.out.println(message);
|
|
| 378 |
System.err.println(message);
|
|
| 377 | 379 |
// txm.log(Level.SEVERE, message); |
| 378 | 380 |
} |
| 379 | 381 |
|
| tmp/org.txm.index.core/src/org/txm/index/core/functions/Index.java (revision 667) | ||
|---|---|---|
| 117 | 117 |
|
| 118 | 118 |
/** The string used to separated property values. */ |
| 119 | 119 |
@Parameter(key=IndexPreferences.PROPERTIES_SEPARATOR) |
| 120 |
protected String pPropertiesSeparator; // the separator of properties values //$NON-NLS-1$
|
|
| 120 |
protected String pPropertiesSeparator; |
|
| 121 | 121 |
|
| 122 | 122 |
/** The CQP query. */ |
| 123 | 123 |
@Parameter |
| ... | ... | |
| 165 | 165 |
|
| 166 | 166 |
if (parent instanceof Corpus && "[]".equals(pQuery.getQueryString()) && pProperties.size() == 1) {
|
| 167 | 167 |
computeWithCorpusAndNoQuery(); // internally using a lexicon |
| 168 |
} else {
|
|
| 168 |
} |
|
| 169 |
else {
|
|
| 169 | 170 |
this.lexicon = null; |
| 170 | 171 |
|
| 171 | 172 |
if (parent instanceof Corpus) {
|
| ... | ... | |
| 183 | 184 |
|
| 184 | 185 |
getAllLines(); |
| 185 | 186 |
|
| 186 |
} else if (parent instanceof Partition) {
|
|
| 187 |
} |
|
| 188 |
else if (parent instanceof Partition) {
|
|
| 187 | 189 |
|
| 188 | 190 |
Partition partition = (Partition)parent; |
| 189 | 191 |
partnames.clear(); |
| ... | ... | |
| 197 | 199 |
|
| 198 | 200 |
getAllLines(); |
| 199 | 201 |
|
| 200 |
} else {
|
|
| 202 |
} |
|
| 203 |
else {
|
|
| 201 | 204 |
System.out.println("Error: Index parent is neither a Corpus nor a partition.");
|
| 202 | 205 |
return false; |
| 203 | 206 |
} |
| ... | ... | |
| 226 | 229 |
*/ |
| 227 | 230 |
public static String createQuery(List<Line> lines) {
|
| 228 | 231 |
String query = ""; //$NON-NLS-1$ |
| 229 |
if (lines.size() == 0) return query; |
|
| 232 |
if (lines.size() == 0) {
|
|
| 233 |
return query; |
|
| 234 |
} |
|
| 230 | 235 |
|
| 231 | 236 |
Line line = lines.get(0); |
| 232 | 237 |
int nbToken = line.getUnitsProperties().get(0).size(); |
| ... | ... | |
| 238 | 243 |
for (int p = 0; p < nbProps; p++) {
|
| 239 | 244 |
if (props.get(p) instanceof StructuralUnitProperty) {
|
| 240 | 245 |
query += "_."+((StructuralUnitProperty)props.get(p)).getFullName() + "=\""; //$NON-NLS-1$ //$NON-NLS-2$ |
| 241 |
} else {
|
|
| 246 |
} |
|
| 247 |
else {
|
|
| 242 | 248 |
query += props.get(p) + "=\""; //$NON-NLS-1$ |
| 243 | 249 |
} |
| 244 | 250 |
for (int l = 0; l < nbLines; l++) {
|
| ... | ... | |
| 278 | 284 |
return false; |
| 279 | 285 |
} |
| 280 | 286 |
HashMap<String, Integer> ref_counts = new HashMap<String, Integer>(); |
| 281 |
for(int i = 0 ; i < ref_forms.length ; i++) ref_counts.put(ref_forms[i], ref_freqs[i]); |
|
| 287 |
for(int i = 0 ; i < ref_forms.length ; i++) {
|
|
| 288 |
ref_counts.put(ref_forms[i], ref_freqs[i]); |
|
| 289 |
} |
|
| 282 | 290 |
|
| 283 | 291 |
for (org.txm.index.core.functions.Line l : this.getAllLines()) {
|
| 284 | 292 |
String key = l.toString(); |
| ... | ... | |
| 295 | 303 |
@Override |
| 296 | 304 |
public boolean canCompute() {
|
| 297 | 305 |
if (getCorpus() == null && getPartition() == null) {
|
| 298 |
System.out.println("Corpus or partition not set");
|
|
| 306 |
Log.severe("Corpus or partition not set."); //$NON-NLS-1$
|
|
| 299 | 307 |
return false; |
| 300 | 308 |
} |
| 301 | 309 |
|
| 302 | 310 |
if (pProperties == null || pProperties.size() == 0) {
|
| 303 |
System.out.println("No property set.");
|
|
| 311 |
Log.severe("No property set."); //$NON-NLS-1$
|
|
| 304 | 312 |
return false; |
| 305 | 313 |
} |
| 306 | 314 |
|
| 307 | 315 |
if (pQuery == null || pQuery.getQueryString().length() == 0) {
|
| 308 |
System.out.println("No query set.");
|
|
| 316 |
Log.severe("No query set."); //$NON-NLS-1$
|
|
| 309 | 317 |
return false; |
| 310 | 318 |
} |
| 311 | 319 |
|
| ... | ... | |
| 381 | 389 |
|
| 382 | 390 |
lines.add(l); |
| 383 | 391 |
|
| 384 |
if (Fmin > freqs[i]) |
|
| 392 |
if (Fmin > freqs[i]) {
|
|
| 385 | 393 |
Fmin = freqs[i]; |
| 386 |
if (Fmax < freqs[i]) |
|
| 394 |
} |
|
| 395 |
if (Fmax < freqs[i]) {
|
|
| 387 | 396 |
Fmax = freqs[i]; |
| 397 |
} |
|
| 388 | 398 |
|
| 389 | 399 |
// getAllLines(); |
| 390 | 400 |
} |
| ... | ... | |
| 399 | 409 |
* |
| 400 | 410 |
*/ |
| 401 | 411 |
public void cut() {
|
| 402 |
if (pVmaxFilter == null) return; |
|
| 412 |
if (pVmaxFilter == null) {
|
|
| 413 |
return; |
|
| 414 |
} |
|
| 403 | 415 |
|
| 404 | 416 |
this.acquireSemaphore(); |
| 405 | 417 |
|
| ... | ... | |
| 643 | 655 |
return ""; |
| 644 | 656 |
} |
| 645 | 657 |
|
| 658 |
/** |
|
| 659 |
* Gets the number of lines per page. |
|
| 660 |
* @return the number of lines per page |
|
| 661 |
*/ |
|
| 646 | 662 |
public Integer getNLinesPerPage() {
|
| 647 | 663 |
return pNLinesPerPage ; |
| 648 | 664 |
} |
| ... | ... | |
| 651 | 667 |
/** |
| 652 | 668 |
* Gets the partition. |
| 653 | 669 |
* |
| 654 |
* @return the partition |
|
| 670 |
* @return the partition if exists otherwise null
|
|
| 655 | 671 |
*/ |
| 656 | 672 |
public Partition getPartition() {
|
| 657 | 673 |
try {
|
| ... | ... | |
| 663 | 679 |
} |
| 664 | 680 |
|
| 665 | 681 |
/** |
| 666 |
* Gets the partnames. |
|
| 682 |
* Gets the part names.
|
|
| 667 | 683 |
* |
| 668 |
* @return the partnames |
|
| 684 |
* @return the part names
|
|
| 669 | 685 |
*/ |
| 670 | 686 |
public List<String> getPartnames() {
|
| 671 | 687 |
return partnames; |
| ... | ... | |
| 681 | 697 |
} |
| 682 | 698 |
|
| 683 | 699 |
|
| 684 |
|
|
| 700 |
/** |
|
| 701 |
* |
|
| 702 |
* @return |
|
| 703 |
*/ |
|
| 685 | 704 |
public String getPropertySeparator() {
|
| 686 | 705 |
return pPropertiesSeparator ; |
| 687 | 706 |
} |
| ... | ... | |
| 725 | 744 |
return nTotalTokens; |
| 726 | 745 |
} |
| 727 | 746 |
|
| 747 |
/** |
|
| 748 |
* |
|
| 749 |
* @return |
|
| 750 |
*/ |
|
| 728 | 751 |
public int getTopIndex() {
|
| 729 | 752 |
return pTopIndex; |
| 730 | 753 |
} |
| ... | ... | |
| 767 | 790 |
|
| 768 | 791 |
// System.out.println("nLines : "+nLines);
|
| 769 | 792 |
List<Match> matches = null; |
| 770 |
if (nbresults > 0) |
|
| 771 |
matches = result.getMatches(0, nbresults - 1); // get the |
|
| 772 |
// indexes |
|
| 773 |
// sequences of |
|
| 774 |
// result's |
|
| 775 |
// tokens |
|
| 776 |
else |
|
| 793 |
if (nbresults > 0) {
|
|
| 794 |
matches = result.getMatches(0, nbresults - 1); // get the indexes sequences of result's tokens |
|
| 795 |
} |
|
| 796 |
else {
|
|
| 777 | 797 |
matches = new ArrayList<Match>(); |
| 778 |
// List<Integer> beginingOfKeywordsPositions = new |
|
| 779 |
// ArrayList<Integer>(); |
|
| 780 |
// List<Integer> lengthOfKeywords = new ArrayList<Integer>(); |
|
| 781 |
// Map<Property, List<List<String>>> keywordsViewPropValues = new |
|
| 782 |
// HashMap<Property, List<List<String>>>(); |
|
| 783 |
|
|
| 798 |
} |
|
| 784 | 799 |
// count matches |
| 785 | 800 |
// time = System.currentTimeMillis(); |
| 786 | 801 |
List<Integer> allpositions = new ArrayList<Integer>(); |
| ... | ... | |
| 791 | 806 |
// lengthOfKeywords.add(match.size());// get the last index |
| 792 | 807 |
if (isTargetUsed) {
|
| 793 | 808 |
allpositions.add(match.getTarget()); |
| 794 |
} else {
|
|
| 795 |
for (int i = match.getStart(); i <= match.getEnd(); i++) |
|
| 809 |
} |
|
| 810 |
else {
|
|
| 811 |
for (int i = match.getStart(); i <= match.getEnd(); i++) {
|
|
| 796 | 812 |
allpositions.add(i); |
| 813 |
} |
|
| 797 | 814 |
} |
| 798 | 815 |
} |
| 799 | 816 |
// System.out.println("get string data");
|
| ... | ... | |
| 810 | 827 |
|
| 811 | 828 |
int[] allpositionsarray = new int[allpositions.size()]; |
| 812 | 829 |
int pcount = 0; |
| 813 |
for (int p : allpositions) |
|
| 830 |
for (int p : allpositions) {
|
|
| 814 | 831 |
allpositionsarray[pcount++] = p; |
| 832 |
} |
|
| 815 | 833 |
|
| 816 | 834 |
// time = System.currentTimeMillis(); |
| 817 | 835 |
HashMap<Property, int[]> propsId = new HashMap<Property, int[]>(); |
| 818 | 836 |
for (Property property : pProperties) {
|
| 819 | 837 |
try {
|
| 820 | 838 |
if (property instanceof StructuralUnitProperty) {
|
| 821 |
int[] structs = CorpusManager.getCorpusManager() |
|
| 822 |
.getCqiClient().cpos2Struc( |
|
| 823 |
property.getQualifiedName(), |
|
| 824 |
allpositionsarray); |
|
| 839 |
int[] structs = CorpusManager.getCorpusManager().getCqiClient().cpos2Struc(property.getQualifiedName(), allpositionsarray); |
|
| 825 | 840 |
propsId.put(property, structs); |
| 826 |
} else {
|
|
| 827 |
int[] indices = CorpusManager.getCorpusManager() |
|
| 828 |
.getCqiClient().cpos2Id( |
|
| 829 |
property.getQualifiedName(), |
|
| 830 |
allpositionsarray); |
|
| 841 |
} |
|
| 842 |
else {
|
|
| 843 |
int[] indices = CorpusManager.getCorpusManager().getCqiClient().cpos2Id(property.getQualifiedName(), allpositionsarray); |
|
| 831 | 844 |
propsId.put(property, indices); |
| 832 | 845 |
} |
| 833 | 846 |
} catch (Exception e) {
|
| ... | ... | |
| 855 | 868 |
|
| 856 | 869 |
String signature = line.getSignature(); |
| 857 | 870 |
|
| 858 |
if (counts.containsKey(signature)) // if the counts contains the |
|
| 859 |
// signature, increment its corresponding value |
|
| 860 |
{
|
|
| 861 |
while (counts.get(signature).size() <= currentpartid) |
|
| 871 |
// if the counts contains the signature, increment its corresponding value |
|
| 872 |
if (counts.containsKey(signature)) {
|
|
| 873 |
while (counts.get(signature).size() <= currentpartid) {
|
|
| 862 | 874 |
counts.get(signature).add(0); |
| 875 |
} |
|
| 863 | 876 |
int c = counts.get(signature).get(currentpartid) + 1; |
| 864 | 877 |
counts.get(signature).set(currentpartid, c); |
| 865 |
} else // else initialize count of the signature to 1 |
|
| 866 |
{
|
|
| 878 |
} |
|
| 879 |
// else initialize count of the signature to 1 |
|
| 880 |
else {
|
|
| 867 | 881 |
// System.out.println("add new sign "+signature+" of line "+line.toString());
|
| 868 | 882 |
ArrayList<Integer> tmp = new ArrayList<Integer>(); |
| 869 |
for (int j = 0; j < currentpartid + 1; j++) |
|
| 883 |
for (int j = 0; j < currentpartid + 1; j++) {
|
|
| 870 | 884 |
tmp.add(0); |
| 885 |
} |
|
| 871 | 886 |
counts.put(signature, tmp); |
| 872 | 887 |
counts.get(signature).set(currentpartid, 1); |
| 873 | 888 |
|
| ... | ... | |
| 891 | 906 |
protected void setLineCounts() {
|
| 892 | 907 |
for (Line line : lines) {// for each Line set its count
|
| 893 | 908 |
int[] c = new int[partnames.size()]; |
| 894 |
for (int i = 0; i < partnames.size(); i++) |
|
| 895 |
if (counts.get(line.getSignature()).size() <= i) |
|
| 909 |
for (int i = 0; i < partnames.size(); i++) {
|
|
| 910 |
if (counts.get(line.getSignature()).size() <= i) {
|
|
| 896 | 911 |
c[i] = 0; |
| 897 |
else |
|
| 912 |
} |
|
| 913 |
else {
|
|
| 898 | 914 |
c[i] = counts.get(line.getSignature()).get(i); |
| 915 |
} |
|
| 916 |
} |
|
| 899 | 917 |
line.setCounts(c, -1); |
| 900 | 918 |
} |
| 901 | 919 |
} |
| ... | ... | |
| 905 | 923 |
} |
| 906 | 924 |
|
| 907 | 925 |
public void setParameters(List<Property> props) {
|
| 908 |
this.pQuery = new Query("[]");
|
|
| 926 |
this.pQuery = new Query("[]"); //$NON-NLS-1$
|
|
| 909 | 927 |
this.pProperties = props; |
| 910 | 928 |
this.lexicon = null; |
| 911 | 929 |
} |
| ... | ... | |
| 948 | 966 |
if (nLinesPerPage != null) this.pNLinesPerPage = nLinesPerPage; |
| 949 | 967 |
} |
| 950 | 968 |
|
| 969 |
@Override |
|
| 951 | 970 |
public boolean setParameters(TXMParameters parameters) {
|
| 952 | 971 |
try {
|
| 953 |
List<Property> props = (List<Property>) parameters.get("props");
|
|
| 954 |
Query query = (Query) parameters.get("query");
|
|
| 955 |
Integer filterFmin = (Integer) parameters.get("filterFmin");
|
|
| 956 |
Integer filterFmax = (Integer) parameters.get("filterFmax");
|
|
| 957 |
Integer filterVmax = (Integer) parameters.get("filterVmax");
|
|
| 958 |
Integer nLinesPerPage = (Integer) parameters.get("nLinesPerPage");
|
|
| 972 |
List<Property> props = (List<Property>) parameters.get("props"); //$NON-NLS-1$
|
|
| 973 |
Query query = (Query) parameters.get("query"); //$NON-NLS-1$
|
|
| 974 |
Integer filterFmin = (Integer) parameters.get("filterFmin"); //$NON-NLS-1$
|
|
| 975 |
Integer filterFmax = (Integer) parameters.get("filterFmax"); //$NON-NLS-1$
|
|
| 976 |
Integer filterVmax = (Integer) parameters.get("filterVmax"); //$NON-NLS-1$
|
|
| 977 |
Integer nLinesPerPage = (Integer) parameters.get("nLinesPerPage"); //$NON-NLS-1$
|
|
| 959 | 978 |
|
| 960 | 979 |
this.setParameters(query, props, filterFmin, filterFmax, filterVmax, nLinesPerPage); |
| 961 | 980 |
} catch (Exception e) {
|
| 962 |
System.out.println("Error while setting parameters of Index: "+e.getLocalizedMessage());
|
|
| 981 |
Log.severe("Error while setting parameters of Index: " + e.getLocalizedMessage()); //$NON-NLS-1$
|
|
| 963 | 982 |
Log.printStackTrace(e); |
| 964 | 983 |
return false; |
| 965 | 984 |
} |
| tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/preferences/DiagnosticPreferencePage.java (revision 667) | ||
|---|---|---|
| 1 |
// Copyright © 2010-2013 ENS de Lyon. |
|
| 2 |
// Copyright © 2007-2010 ENS de Lyon, CNRS, INRP, University of |
|
| 3 |
// Lyon 2, University of Franche-Comté, University of Nice |
|
| 4 |
// Sophia Antipolis, University of Paris 3. |
|
| 5 |
// |
|
| 6 |
// The TXM platform is free software: you can redistribute it |
|
| 7 |
// and/or modify it under the terms of the GNU General Public |
|
| 8 |
// License as published by the Free Software Foundation, |
|
| 9 |
// either version 2 of the License, or (at your option) any |
|
| 10 |
// later version. |
|
| 11 |
// |
|
| 12 |
// The TXM platform is distributed in the hope that it will be |
|
| 13 |
// useful, but WITHOUT ANY WARRANTY; without even the implied |
|
| 14 |
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
| 15 |
// PURPOSE. See the GNU General Public License for more |
|
| 16 |
// details. |
|
| 17 |
// |
|
| 18 |
// You should have received a copy of the GNU General |
|
| 19 |
// Public License along with the TXM platform. If not, see |
|
| 20 |
// http://www.gnu.org/licenses. |
|
| 21 |
// |
|
| 22 |
// |
|
| 23 |
// |
|
| 24 |
// $LastChangedDate:$ |
|
| 25 |
// $LastChangedRevision:$ |
|
| 26 |
// $LastChangedBy:$ |
|
| 27 |
// |
|
| 28 |
package org.txm.searchengine.cqp.rcp.preferences; |
|
| 29 |
|
|
| 30 |
import org.eclipse.jface.preference.IntegerFieldEditor; |
|
| 31 |
import org.eclipse.ui.IWorkbench; |
|
| 32 |
import org.eclipse.ui.preferences.ScopedPreferenceStore; |
|
| 33 |
import org.txm.rcp.Application; |
|
| 34 |
import org.txm.rcp.RCPMessages; |
|
| 35 |
import org.txm.rcp.preferences.TXMPreferencePage; |
|
| 36 |
import org.txm.rcp.preferences.TXMPreferenceStore; |
|
| 37 |
import org.txm.searchengine.cqp.CQPPreferences; |
|
| 38 |
// TODO: Auto-generated Javadoc |
|
| 39 |
/** |
|
| 40 |
* This class represents a preference page that is contributed to the |
|
| 41 |
* Preferences dialog. By subclassing <samp>FieldEditorPreferencePage</samp>, we |
|
| 42 |
* can use the field support built into JFace that allows us to create a page |
|
| 43 |
* that is small and knows how to save, restore and apply itself. |
|
| 44 |
* <p> |
|
| 45 |
* This page is used to modify preferences only. They are stored in the |
|
| 46 |
* preference store that belongs to the main plug-in class. That way, |
|
| 47 |
* preferences can be accessed directly via the preference store. |
|
| 48 |
*/ |
|
| 49 |
|
|
| 50 |
public class DiagnosticPreferencePage extends TXMPreferencePage {
|
|
| 51 |
|
|
| 52 |
/** The diag_maxvalue. */ |
|
| 53 |
private IntegerFieldEditor diag_maxvalue; |
|
| 54 |
|
|
| 55 |
@Override |
|
| 56 |
public void init(IWorkbench workbench) {
|
|
| 57 |
this.setPreferenceStore(new TXMPreferenceStore(CQPPreferences.PREFERENCES_NODE)); |
|
| 58 |
} |
|
| 59 |
|
|
| 60 |
/** |
|
| 61 |
* Instantiates a new diagnostic preference page. |
|
| 62 |
*/ |
|
| 63 |
public DiagnosticPreferencePage() {
|
|
| 64 |
super(); |
|
| 65 |
setTitle(RCPMessages.DiagnosticPreferencePage_1); |
|
| 66 |
} |
|
| 67 |
|
|
| 68 |
/** |
|
| 69 |
* Creates the field editors. Field editors are abstractions of the common |
|
| 70 |
* GUI blocks needed to manipulate various types of preferences. Each field |
|
| 71 |
* editor knows how to save and restore itself. |
|
| 72 |
*/ |
|
| 73 |
@Override |
|
| 74 |
public void createFieldEditors() {
|
|
| 75 |
|
|
| 76 |
diag_maxvalue = new IntegerFieldEditor(CQPPreferences.MAXVALUE, RCPMessages.DiagnosticPreferencePage_2, getFieldEditorParent()); |
|
| 77 |
diag_maxvalue.setValidRange(1, 9999); |
|
| 78 |
addField(diag_maxvalue); |
|
| 79 |
} |
|
| 80 |
} |
|
| tmp/org.txm.searchengine.cqp.rcp/OSGI-INF/l10n/bundle_fr.properties (revision 667) | ||
|---|---|---|
| 1 | 1 |
#Properties file for org.txm.searchengine.cqp.rcp |
| 2 | 2 |
Bundle-Name = CQP RCP |
| 3 |
command.label.36=Add Project
|
|
| 4 |
command.label.37=Add Base
|
|
| 3 |
command.label.37=Ajouter une Base
|
|
| 4 |
command.label.36=Ajouter un Projet
|
|
| 5 | 5 |
command.label.65=Delete |
| 6 | 6 |
command.label.148=Open biblio |
| 7 | 7 |
command.name.52=Corpus in binary format... |
| ... | ... | |
| 11 | 11 |
command.tooltip.4=Divide the selected item in several parts |
| 12 | 12 |
command.tooltip.71=Export as a binary file |
| 13 | 13 |
|
| 14 |
command.label.49=Description |
|
| 15 |
command.label.48=Description |
|
| 14 |
command.label.49=Information |
|
| 15 |
command.label.48=Information |
|
| 16 |
|
|
| 17 |
page.name.9=Information |
|
| tmp/org.txm.searchengine.cqp.rcp/OSGI-INF/l10n/bundle.properties (revision 667) | ||
|---|---|---|
| 11 | 11 |
command.tooltip.4=Divide the selected item in several parts |
| 12 | 12 |
command.tooltip.71=Export as a binary file |
| 13 | 13 |
|
| 14 |
command.label.49=Description |
|
| 15 |
command.label.48=Description |
|
| 14 |
command.label.49=Information |
|
| 15 |
command.label.48=Information |
|
| 16 |
|
|
| 17 |
page.name.9=Information |
|
| tmp/org.txm.searchengine.cqp.rcp/OSGI-INF/l10n/bundle_ru.properties (revision 667) | ||
|---|---|---|
| 1 |
#Properties file for org.txm.searchengine.cqp.rcp |
|
| 2 |
Bundle-Name = CQP RCP |
|
| 3 |
command.label.37=Добавить базу |
|
| 4 |
command.label.36=Добавить проект |
|
| 5 |
command.label.65=Delete |
|
| 6 |
command.label.148=Open biblio |
|
| 7 |
command.name.52=Corpus in binary format... |
|
| 8 |
command.label.8=Partition |
|
| 9 |
command.name.63=Open Biblio |
|
| 10 |
command.name.2=Create Partition |
|
| 11 |
command.tooltip.4=Divide the selected item in several parts |
|
| 12 |
command.tooltip.71=Export as a binary file |
|
| 13 |
|
|
| 14 |
page.name.9=Описание |
|
| 0 | 15 | |
| tmp/org.txm.searchengine.cqp.rcp/plugin.xml (revision 667) | ||
|---|---|---|
| 45 | 45 |
<menuContribution |
| 46 | 46 |
locationURI="popup:org.txm.rcp.views.BasesView"> |
| 47 | 47 |
<command |
| 48 |
commandId="HIDEorg.txm.rcp2.commands.workspace.AddProject"
|
|
| 48 |
commandId="org.txm.rcp.commands.workspace.AddProject"
|
|
| 49 | 49 |
label="%command.label.36" |
| 50 | 50 |
style="push"> |
| 51 | 51 |
<visibleWhen |
| ... | ... | |
| 310 | 310 |
id="org.txm.searchengine.cqp.rcp.preferences.CQPPreferencePage" |
| 311 | 311 |
name="CQP"> |
| 312 | 312 |
</page> |
| 313 |
<page |
|
| 314 |
category="org.txm.rcp.preferences.UserPreferencePage" |
|
| 315 |
class="org.txm.rcp.preferences.DiagnosticPreferencePage" |
|
| 316 |
id="org.txm.rcp.preferences.DiagnosticPreferencePage" |
|
| 317 |
name="%page.name.9"> |
|
| 318 |
</page> |
|
| 313 | 319 |
</extension> |
| 314 | 320 |
<extension |
| 315 | 321 |
point="org.eclipse.ui.editors"> |
| tmp/org.txm.rcp/plugin.xml (revision 667) | ||
|---|---|---|
| 315 | 315 |
</page> |
| 316 | 316 |
<page |
| 317 | 317 |
category="org.txm.rcp.preferences.UserPreferencePage" |
| 318 |
class="org.txm.rcp.preferences.DiagnosticPreferencePage" |
|
| 319 |
id="org.txm.rcp.preferences.DiagnosticPreferencePage" |
|
| 320 |
name="%page.name.9"> |
|
| 321 |
</page> |
|
| 322 |
<page |
|
| 323 |
category="org.txm.rcp.preferences.UserPreferencePage" |
|
| 324 | 318 |
class="org.txm.rcp.preferences.ExportPreferencePage" |
| 325 | 319 |
id="org.txm.rcp.preferences.ExportPreferencePage" |
| 326 | 320 |
name="%page.name.12"> |
| ... | ... | |
| 1313 | 1307 |
allPopups="true" |
| 1314 | 1308 |
locationURI="toolbar:org.eclipse.ui.main.toolbar"> |
| 1315 | 1309 |
<toolbar |
| 1316 |
id="org.txm.rcp.toolbarresult"> |
|
| 1310 |
id="org.txm.rcp.toolbars.result">
|
|
| 1317 | 1311 |
<command |
| 1318 | 1312 |
commandId="org.txm.rcp.commands.function.ExportResult" |
| 1319 | 1313 |
icon="icons/functions/export_data.png" |
| ... | ... | |
| 1451 | 1445 |
tooltip="%command.tooltip.0"> |
| 1452 | 1446 |
</command> |
| 1453 | 1447 |
<separator |
| 1454 |
name="org.txm.rcp.toolbartools.extensions"
|
|
| 1448 |
name="org.txm.rcp.toolbars.tools.separators.extensions"
|
|
| 1455 | 1449 |
visible="true"> |
| 1456 | 1450 |
</separator> |
| 1457 | 1451 |
</toolbar> |
| ... | ... | |
| 2060 | 2054 |
</menuContribution> |
| 2061 | 2055 |
<menuContribution |
| 2062 | 2056 |
locationURI="popup:org.txm.rcp.views.BasesView"> |
| 2063 |
<command |
|
| 2064 |
commandId="HIDEorg.txm.rcp2.commands.workspace.AddProject" |
|
| 2065 |
label="%command.label.36" |
|
| 2066 |
style="push"> |
|
| 2067 |
<visibleWhen |
|
| 2068 |
checkEnabled="false"> |
|
| 2069 |
<reference |
|
| 2070 |
definitionId="OneProjectSelected"> |
|
| 2071 |
</reference> |
|
| 2072 |
</visibleWhen> |
|
| 2073 |
</command> |
|
| 2074 |
<command |
|
| 2075 |
commandId="org.txm.rcp.commands.workspace.AddBase" |
|
| 2076 |
label="%command.label.37" |
|
| 2077 |
style="push"> |
|
| 2078 |
<visibleWhen |
|
| 2079 |
checkEnabled="false"> |
|
| 2080 |
<reference |
|
| 2081 |
definitionId="OneProjectSelected"> |
|
| 2082 |
</reference> |
|
| 2083 |
</visibleWhen> |
|
| 2084 |
</command> |
|
| 2085 | 2057 |
<separator |
| 2086 | 2058 |
name="org.txm.rcp.separator1"> |
| 2087 | 2059 |
</separator> |
| ... | ... | |
| 2312 | 2284 |
name="%category.name.0"> |
| 2313 | 2285 |
</category> |
| 2314 | 2286 |
<command |
| 2315 |
categoryId="org.eclipse.ui.category.edit" |
|
| 2316 |
defaultHandler="org.txm.rcp.commands.EditFile" |
|
| 2317 |
id="org.txm.rcp.commands.EditFile" |
|
| 2318 |
name="%command.name"> |
|
| 2319 |
<commandParameter |
|
| 2320 |
id="org.txm.rcp.commands.commandParameter2" |
|
| 2321 |
name="%commandParameter.name" |
|
| 2322 |
optional="true"> |
|
| 2323 |
</commandParameter> |
|
| 2324 |
</command> |
|
| 2325 |
<command |
|
| 2326 | 2287 |
defaultHandler="org.txm.rcp.commands.ExecuteGroovyScript" |
| 2327 | 2288 |
id="org.txm.rcp.commands.ExecuteScriptGroovy" |
| 2328 | 2289 |
name="%command.name.0"> |
| ... | ... | |
| 2383 | 2344 |
</command> |
| 2384 | 2345 |
|
| 2385 | 2346 |
<command |
| 2386 |
defaultHandler="org.txm.rcp.commands.CreateFile" |
|
| 2387 |
id="org.txm.rcp.commands.CreateFile" |
|
| 2388 |
name="%command.name.47"> |
|
| 2389 |
</command> |
|
| 2390 |
<command |
|
| 2391 |
defaultHandler="org.txm.rcp.commands.CreateFolder" |
|
| 2392 |
id="org.txm.rcp.commands.CreateFolder" |
|
| 2393 |
name="%command.name.48"> |
|
| 2394 |
</command> |
|
| 2395 |
<command |
|
| 2396 | 2347 |
categoryId="org.eclipse.ui.category.edit" |
| 2397 | 2348 |
defaultHandler="org.txm.rcp.commands.OpenImportForm" |
| 2398 | 2349 |
id="org.txm.rcp.commands.OpenImportForm" |
| ... | ... | |
| 2442 | 2393 |
name="%command.name.50"> |
| 2443 | 2394 |
</command> |
| 2444 | 2395 |
<command |
| 2445 |
defaultHandler="org.txm.rcp.commands.editor.SaveAs" |
|
| 2446 |
id="org.txm.rcp.commands.editor.SaveAs" |
|
| 2447 |
name="%command.name.67"> |
|
| 2448 |
</command> |
|
| 2449 |
<command |
|
| 2450 |
defaultHandler="org.txm.rcp.commands.DeleteFile" |
|
| 2451 |
id="org.txm.rcp.commands.DeleteFile" |
|
| 2452 |
name="%command.name.68"> |
|
| 2453 |
</command> |
|
| 2454 |
<command |
|
| 2455 |
defaultHandler="org.txm.rcp.commands.CopyFile" |
|
| 2456 |
id="org.txm.rcp.commands.CopyFile" |
|
| 2457 |
name="%command.name.69"> |
|
| 2458 |
</command> |
|
| 2459 |
<command |
|
| 2460 |
defaultHandler="org.txm.rcp.commands.PasteFile" |
|
| 2461 |
id="org.txm.rcp.commands.PasteFile" |
|
| 2462 |
name="%command.name.70"> |
|
| 2463 |
</command> |
|
| 2464 |
<command |
|
| 2465 |
defaultHandler="org.txm.rcp.commands.CutFile" |
|
| 2466 |
id="org.txm.rcp.commands.CutFile" |
|
| 2467 |
name="%command.name.71"> |
|
| 2468 |
</command> |
|
| 2469 |
<command |
|
| 2470 |
defaultHandler="org.txm.rcp.commands.RenameFile" |
|
| 2471 |
id="org.txm.rcp.commands.RenameFile" |
|
| 2472 |
name="%command.name.108"> |
|
| 2473 |
</command> |
|
| 2474 |
<command |
|
| 2475 | 2396 |
defaultHandler="org.txm.rcp.commands.editor.SetEncoding" |
| 2476 | 2397 |
id="org.txm.rcp.commands.editor.SetEncoding" |
| 2477 | 2398 |
name="%command.name.72"> |
| ... | ... | |
| 2559 | 2480 |
</command> |
| 2560 | 2481 |
|
| 2561 | 2482 |
<command |
| 2562 |
categoryId="org.eclipse.ui.category.edit" |
|
| 2563 |
defaultHandler="org.txm.rcp.commands.EditSelectedFile" |
|
| 2564 |
id="org.txm.rcp.commands.EditSelectedFile" |
|
| 2565 |
name="%command.name.106"> |
|
| 2566 |
</command> |
|
| 2567 |
<command |
|
| 2568 | 2483 |
categoryId="org.txm.rcp.category.txm" |
| 2569 | 2484 |
defaultHandler="org.txm.rcp.commands.ReloadCorporaView" |
| 2570 | 2485 |
id="org.txm.rcp.commands.ReloadCorporaView" |
| ... | ... | |
| 2677 | 2592 |
</command> |
| 2678 | 2593 |
</extension> |
| 2679 | 2594 |
<extension |
| 2595 |
id="file" |
|
| 2596 |
name="file" |
|
| 2597 |
point="org.eclipse.ui.commands"> |
|
| 2598 |
<category |
|
| 2599 |
description="File" |
|
| 2600 |
id="org.txm.rcp.categories.file" |
|
| 2601 |
name="File"> |
|
| 2602 |
</category> |
|
| 2603 |
<command |
|
| 2604 |
categoryId="org.txm.rcp.categories.file" |
|
| 2605 |
defaultHandler="org.txm.rcp.commands.CutFile" |
|
| 2606 |
id="org.txm.rcp.commands.CutFile" |
|
| 2607 |
name="%command.name.71"> |
|
| 2608 |
</command> |
|
| 2609 |
<command |
|
| 2610 |
categoryId="org.txm.rcp.categories.file" |
|
| 2611 |
defaultHandler="org.txm.rcp.commands.editor.SaveAs" |
|
| 2612 |
id="org.txm.rcp.commands.editor.SaveAs" |
|
| 2613 |
name="%command.name.67"> |
|
| 2614 |
</command> |
|
| 2615 |
<command |
|
| 2616 |
categoryId="org.txm.rcp.categories.file" |
|
| 2617 |
defaultHandler="org.txm.rcp.commands.DeleteFile" |
|
| 2618 |
id="org.txm.rcp.commands.DeleteFile" |
|
| 2619 |
name="%command.name.68"> |
|
| 2620 |
</command> |
|
| 2621 |
<command |
|
| 2622 |
categoryId="org.txm.rcp.categories.file" |
|
| 2623 |
defaultHandler="org.txm.rcp.commands.CopyFile" |
|
| 2624 |
id="org.txm.rcp.commands.CopyFile" |
|
| 2625 |
name="%command.name.69"> |
|
| 2626 |
</command> |
|
| 2627 |
<command |
|
| 2628 |
categoryId="org.txm.rcp.categories.file" |
|
| 2629 |
defaultHandler="org.txm.rcp.commands.PasteFile" |
|
| 2630 |
id="org.txm.rcp.commands.PasteFile" |
|
| 2631 |
name="%command.name.70"> |
|
| 2632 |
</command> |
|
| 2633 |
<command |
|
| 2634 |
categoryId="org.txm.rcp.categories.file" |
|
| 2635 |
defaultHandler="org.txm.rcp.commands.RenameFile" |
|
| 2636 |
id="org.txm.rcp.commands.RenameFile" |
|
| 2637 |
name="%command.name.108"> |
|
| 2638 |
</command> |
|
| 2639 |
<command |
|
| 2640 |
categoryId="org.txm.rcp.categories.file" |
|
| 2641 |
defaultHandler="org.txm.rcp.commands.CreateFile" |
|
| 2642 |
id="org.txm.rcp.commands.CreateFile" |
|
| 2643 |
name="%command.name.47"> |
|
| 2644 |
</command> |
|
| 2645 |
<command |
|
| 2646 |
categoryId="org.txm.rcp.categories.file" |
|
| 2647 |
defaultHandler="org.txm.rcp.commands.CreateFolder" |
|
| 2648 |
id="org.txm.rcp.commands.CreateFolder" |
|
| 2649 |
name="%command.name.48"> |
|
| 2650 |
</command> |
|
| 2651 |
<command |
|
| 2652 |
categoryId="org.txm.rcp.categories.file" |
|
| 2653 |
defaultHandler="org.txm.rcp.commands.EditSelectedFile" |
|
| 2654 |
id="org.txm.rcp.commands.EditSelectedFile" |
|
| 2655 |
name="%command.name.106"> |
|
| 2656 |
</command> |
|
| 2657 |
<command |
|
| 2658 |
categoryId="org.txm.rcp.categories.file" |
|
| 2659 |
defaultHandler="org.txm.rcp.commands.EditFile" |
|
| 2660 |
id="org.txm.rcp.commands.EditFile" |
|
| 2661 |
name="%command.name"> |
|
| 2662 |
<commandParameter |
|
| 2663 |
id="org.txm.rcp.commands.commandParameter2" |
|
| 2664 |
name="%commandParameter.name" |
|
| 2665 |
optional="true"> |
|
| 2666 |
</commandParameter> |
|
| 2667 |
</command> |
|
| 2668 |
</extension> |
|
| 2669 |
<extension |
|
| 2680 | 2670 |
point="org.eclipse.core.expressions.definitions"> |
| 2681 | 2671 |
<definition |
| 2682 | 2672 |
id="OneMainCorpusSelected"> |
| ... | ... | |
| 2715 | 2705 |
</with> |
| 2716 | 2706 |
</definition> |
| 2717 | 2707 |
<definition |
| 2718 |
id="OnePartitionSelected"> |
|
| 2719 |
<with variable="selection"> |
|
| 2720 |
<iterate |
|
| 2721 |
ifEmpty="false" |
|
| 2722 |
operator="and"> |
|
| 2723 |
<instanceof |
|
| 2724 |
value="org.txm.searchengine.cqp.corpus.Partition"> |
|
| 2725 |
</instanceof> |
|
| 2726 |
</iterate> |
|
| 2727 |
</with> |
|
| 2728 |
</definition> |
|
| 2729 |
<definition |
|
| 2730 | 2708 |
id="OneFileSelected"> |
| 2731 | 2709 |
<with |
| 2732 | 2710 |
variable="selection"> |
| tmp/org.txm.rcp/OSGI-INF/l10n/bundle_ru.properties (revision 667) | ||
|---|---|---|
| 87 | 87 |
command.tooltip.3=\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0447\u0430\u0441\u0442\u044c \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0439 |
| 88 | 88 |
command.tooltip.2=\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b TXM |
| 89 | 89 |
command.tooltip.0=\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 |
| 90 |
page.name.9=\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 |
|
| 91 | 90 |
page.name.8=NLP |
| 92 | 91 |
page.name.7=TreeTagger |
| 93 | 92 |
page.name.6=\ TXM |
| ... | ... | |
| 130 | 129 |
category.description=\u0422\u0435\u043a\u0441\u0442\u043e\u043c\u0435\u0442\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b |
| 131 | 130 |
command.label.89=\u0421\u043b\u043e\u0432\u0430\u0440\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 |
| 132 | 131 |
command.label.87=\u042d\u043a\u0441\u043f\u043e\u0440\u0442 |
| 133 |
command.label.85=\u0424\u0410\u0421 |
|
| 134 | 132 |
command.label.84=\u0421\u043b\u043e\u0432\u0430\u0440\u044c |
| 135 | 133 |
command.label.80=\u0424\u0410\u0421 |
| 136 | 134 |
category.name=TXM |
| ... | ... | |
| 192 | 190 |
command.name.31=\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u044f\u0437\u044b\u043a |
| 193 | 191 |
command.name.30=IndexToConcordances |
| 194 | 192 |
command.label.39=\u0414\u043e\u0431\u0430\u0432\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 |
| 195 |
command.label.37=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u0430\u0437\u0443 |
|
| 196 |
command.label.36=\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 |
|
| 197 | 193 |
command.name.29=\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0438\u0437\u0434\u0430\u043d\u0438\u0435 |
| 198 | 194 |
command.name.28=\u0418\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u0440\u043f\u0443\u0441 \u0438\u0437 \u0431\u0443\u0444\u0435\u0440\u0430 \u043e\u0431\u043c\u0435\u043d\u0430 (FR) |
| 199 | 195 |
command.name.26=\u0423\u0434\u0430\u043b\u0438\u0442\u044c |
| tmp/org.txm.rcp/OSGI-INF/l10n/bundle_fr.properties (revision 667) | ||
|---|---|---|
| 140 | 140 |
command.tooltip.2=Quitter la plateforme TXM |
| 141 | 141 |
command.tooltip.1=Import au format XML-PPS de Factiva |
| 142 | 142 |
command.tooltip.0=Afficher les pr?f?rences |
| 143 |
page.name.9=Description |
|
| 144 | 143 |
page.name.8=TAL |
| 145 | 144 |
page.name.7=TreeTagger |
| 146 | 145 |
editor.name.22=Navigateur |
| ... | ... | |
| 218 | 217 |
command.label.89=Table lexicale |
| 219 | 218 |
command.label.88=Tout sauvegarder |
| 220 | 219 |
command.label.86=Sauvegarder |
| 221 |
command.label.85=AFC |
|
| 222 | 220 |
command.label.84=Lexique |
| 223 | 221 |
command.label.83=Nouveau fichier |
| 224 | 222 |
command.label.82=CQP |
| ... | ... | |
| 325 | 323 |
command.name.32=Progression |
| 326 | 324 |
command.name.31=Changer la langue |
| 327 | 325 |
command.name.30=IndexToConcordances |
| 328 |
command.label.37=Ajouter une Base |
|
| 329 |
command.label.36=Ajouter un Projet |
|
| 330 | 326 |
command.label.31=Nils |
| 331 | 327 |
command.label.30=Encodage des caract?res |
| 332 | 328 |
command.label.169=Show Control characters |
| tmp/org.txm.rcp/OSGI-INF/l10n/bundle_ru_utf-8.properties (revision 667) | ||
|---|---|---|
| 85 | 85 |
command.tooltip.3=Выбрать часть употреблений |
| 86 | 86 |
command.tooltip.2=Выйти из платформы TXM |
| 87 | 87 |
command.tooltip.0=Показать настройки |
| 88 |
page.name.9=Описание |
|
| 89 | 88 |
page.name.8=NLP |
| 90 | 89 |
page.name.7=TreeTagger |
| 91 | 90 |
page.name.6=\ TXM |
| ... | ... | |
| 126 | 125 |
category.description=Текстометрические команды |
| 127 | 126 |
command.label.89=Словарная таблица |
| 128 | 127 |
command.label.87=Экспорт |
| 129 |
command.label.85=ФАС |
|
| 130 | 128 |
command.label.84=Словарь |
| 131 | 129 |
category.name=TXM |
| 132 | 130 |
command.label.79=Словарь |
| ... | ... | |
| 188 | 186 |
command.name.31=Изменить язык |
| 189 | 187 |
command.name.30=IndexToConcordances |
| 190 | 188 |
command.label.39=Добавть скрипт |
| 191 |
command.label.37=Добавить базу |
|
| 192 |
command.label.36=Добавить проект |
|
| 193 | 189 |
command.name.29=Открывает издание |
| 194 | 190 |
command.name.28=Импортирует корпус из буфера обмена (FR) |
| 195 | 191 |
command.name.26=Удалить |
| tmp/org.txm.rcp/OSGI-INF/l10n/bundle.properties (revision 667) | ||
|---|---|---|
| 115 | 115 |
command.tooltip.2=Exit the TXM platform |
| 116 | 116 |
command.tooltip.1=Import with the XML-PPS format |
| 117 | 117 |
command.tooltip.0=Open the settings windows |
| 118 |
page.name.9=Description |
|
| 119 | 118 |
page.name.8=NLP |
| 120 | 119 |
page.name.7=TreeTagger |
| 121 | 120 |
editor.name.22=Browser |
| ... | ... | |
| 179 | 178 |
command.label.89=LexicalTable |
| 180 | 179 |
command.label.88=Save All |
| 181 | 180 |
command.label.86=Save |
| 182 |
command.label.85=CA |
|
| 183 | 181 |
command.label.84=Lexicon |
| 184 | 182 |
command.label.83=New file |
| 185 | 183 |
command.label.82=CQP |
| tmp/org.txm.partition.rcp/plugin.xml (revision 667) | ||
|---|---|---|
| 113 | 113 |
</adapter> |
| 114 | 114 |
</factory> |
| 115 | 115 |
</extension> |
| 116 |
<extension |
|
| 117 |
point="org.eclipse.core.expressions.definitions"> |
|
| 118 |
<definition |
|
| 119 |
id="OnePartitionSelected"> |
|
| 120 |
<with |
|
| 121 |
variable="selection"> |
|
| 122 |
<iterate |
|
| 123 |
ifEmpty="false" |
|
| 124 |
operator="and"> |
|
| 125 |
<instanceof |
|
| 126 |
value="org.txm.searchengine.cqp.corpus.Partition"> |
|
| 127 |
</instanceof> |
|
| 128 |
</iterate> |
|
| 129 |
</with> |
|
| 130 |
</definition> |
|
| 131 |
</extension> |
|
| 116 | 132 |
|
| 117 | 133 |
</plugin> |
Formats disponibles : Unified diff