Révision 1554
| tmp/org.txm.internalview.rcp/plugin.xml (revision 1554) | ||
|---|---|---|
| 42 | 42 |
</command> |
| 43 | 43 |
</menuContribution> |
| 44 | 44 |
<menuContribution |
| 45 |
locationURI="menu:menu.corpus?after=org.txm.properties.rcp.handlers.ComputeProperties">
|
|
| 45 |
locationURI="menu:menu.corpus?after=org.txm.edition.rcp.handlers.OpenEdition">
|
|
| 46 | 46 |
<command |
| 47 | 47 |
commandId="org.txm.internalview.rcp.handlers.ComputeInternalView" |
| 48 | 48 |
icon="icons/internal_view.png" |
| tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/commands/DoInstallStep.java (revision 1554) | ||
|---|---|---|
| 64 | 64 |
return; |
| 65 | 65 |
} |
| 66 | 66 |
|
| 67 |
Log.warning(Messages.DoInstallStep_18);
|
|
| 67 |
Log.fine(Messages.DoInstallStep_18);
|
|
| 68 | 68 |
URSPreferences.getInstance().put(URSPreferences.VERSION, currentVersion.toString()); |
| 69 | 69 |
return; |
| 70 | 70 |
} |
| tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/toolbar/URSAnnotationToolbar.java (revision 1554) | ||
|---|---|---|
| 135 | 135 |
String text_name = panel.getEdition().getText().getName(); |
| 136 | 136 |
String[] sel = panel.getWordSelection(); |
| 137 | 137 |
if (sel == null) {
|
| 138 |
Log.info("Error: no word selection");
|
|
| 138 |
Log.severe("** Error: no word selection");
|
|
| 139 | 139 |
return null; |
| 140 | 140 |
} |
| 141 | 141 |
//System.out.println("Selection="+sel);
|
| tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/toolbar/UnitToolbar.java (revision 1554) | ||
|---|---|---|
| 848 | 848 |
* @param e |
| 849 | 849 |
*/ |
| 850 | 850 |
public void onIdentifiantComboSelected(Object e) {
|
| 851 |
Log.info(NLS.bind(Messages.UnitToolbar_51, navigationField.getSelectionIndex()));
|
|
| 851 |
Log.fine(NLS.bind(Messages.UnitToolbar_51, navigationField.getSelectionIndex()));
|
|
| 852 | 852 |
int i = navigationField.getSelectionIndex(); |
| 853 | 853 |
if (i <= 0) {
|
| 854 | 854 |
if (previousSelectedUnitIDS != null) {
|
| ... | ... | |
| 891 | 891 |
} |
| 892 | 892 |
|
| 893 | 893 |
protected void onTypecomboSelected(SelectionEvent e) {
|
| 894 |
Log.info(NLS.bind(Messages.UnitToolbar_52, typeCombo.getSelectionIndex()));
|
|
| 894 |
Log.fine(NLS.bind(Messages.UnitToolbar_52, typeCombo.getSelectionIndex()));
|
|
| 895 | 895 |
reloadIdentifiants(); |
| 896 | 896 |
|
| 897 | 897 |
if (typeCombo.getSelectionIndex() > 0) {
|
| ... | ... | |
| 916 | 916 |
* @param unite the unite to select, may be null |
| 917 | 917 |
*/ |
| 918 | 918 |
public void reloadIdentifiants() {
|
| 919 |
Log.info(Messages.UnitToolbar_53);
|
|
| 919 |
Log.fine(Messages.UnitToolbar_53);
|
|
| 920 | 920 |
String type0 = typeCombo.getText(); |
| 921 | 921 |
unites = vue.getUnitesAVoir(type0); |
| 922 | 922 |
String[] identifiants = vue.getIdUnites(type0, unites); |
| ... | ... | |
| 1051 | 1051 |
if (startend == null) return false; |
| 1052 | 1052 |
|
| 1053 | 1053 |
int pos = startend[0]; |
| 1054 |
Log.warning(TXMCoreMessages.bind(Messages.UnitToolbar_60, unite.getDeb(), unite.getFin(), ids, pos));
|
|
| 1054 |
Log.fine(TXMCoreMessages.bind(Messages.UnitToolbar_60, unite.getDeb(), unite.getFin(), ids, pos));
|
|
| 1055 | 1055 |
|
| 1056 | 1056 |
if (mode == 1) { // left
|
| 1057 | 1057 |
analecCorpus.modifBornesUnite(unite, pos, unite.getFin()); |
| tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/toolbar/SchemaToolbar.java (revision 1554) | ||
|---|---|---|
| 646 | 646 |
} |
| 647 | 647 |
|
| 648 | 648 |
protected void onIdentifiantComboSelected(SelectionEvent e) {
|
| 649 |
Log.info("Identifiants SelectionListener: "+navigationField.getSelectionIndex());
|
|
| 649 |
Log.fine("Identifiants SelectionListener: "+navigationField.getSelectionIndex());
|
|
| 650 | 650 |
int iSchema = navigationField.getSelectionIndex(); |
| 651 | 651 |
if (iSchema <= 0) {
|
| 652 | 652 |
if (previousSelectedSchemaIDS != null) {
|
| ... | ... | |
| 672 | 672 |
} |
| 673 | 673 |
|
| 674 | 674 |
protected void onTypeComboSelected(SelectionEvent e) {
|
| 675 |
Log.info("Types SelectionListener: "+typeCombo.getSelectionIndex());
|
|
| 675 |
Log.fine("Types SelectionListener: "+typeCombo.getSelectionIndex());
|
|
| 676 | 676 |
reloadIdentifiants(); |
| 677 | 677 |
if (typeCombo.getSelectionIndex() > 0) {
|
| 678 | 678 |
//String type = unitesAVoir[typeCombo.getSelectionIndex()-1]; |
| ... | ... | |
| 698 | 698 |
* @param unite the unite to select, may be null |
| 699 | 699 |
*/ |
| 700 | 700 |
public void reloadIdentifiants() {
|
| 701 |
Log.info("Reloading identifiants combo values.");
|
|
| 701 |
Log.fine("Reloading identifiants combo values.");
|
|
| 702 | 702 |
String type0 = typeCombo.getText(); |
| 703 | 703 |
schemas = vue.getSchemasAVoir(type0); |
| 704 | 704 |
String[] identifiants = vue.getIdSchemas(type0, schemas); |
| ... | ... | |
| 712 | 712 |
* @param unite the unite to select, may be null |
| 713 | 713 |
*/ |
| 714 | 714 |
public void reloadIdentifiantsUnites() {
|
| 715 |
Log.info("Reloading unites combo values.");
|
|
| 715 |
Log.fine("Reloading unites combo values.");
|
|
| 716 | 716 |
int iSchema = navigationField.getSelectionIndex(); |
| 717 | 717 |
if (iSchema <= 0) {
|
| 718 | 718 |
subNavigationField.setIdentifiants(new String[0], null, null); |
| ... | ... | |
| 845 | 845 |
if (startend == null) return false; |
| 846 | 846 |
|
| 847 | 847 |
int pos = startend[0]; |
| 848 |
Log.warning("Updating annotation limits: "+unite.getDeb()+" -> "+unite.getFin()+" with word id="+id+" with pos="+pos);
|
|
| 848 |
Log.fine("Updating annotation limits: "+unite.getDeb()+" -> "+unite.getFin()+" with word id="+id+" with pos="+pos);
|
|
| 849 | 849 |
if ((pos == unite.getDeb() || pos == unite.getFin()) && (unite.getFin() - unite.getDeb()) == 1) {
|
| 850 | 850 |
analecCorpus.modifBornesUnite(unite, pos, pos); |
| 851 | 851 |
} else if (pos <= unite.getDeb()) {
|
| tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/view/ElementPropertiesView.java (revision 1554) | ||
|---|---|---|
| 315 | 315 |
fields.getParent().layout(); |
| 316 | 316 |
} |
| 317 | 317 |
|
| 318 |
Log.info("Refreshing unit properties view with: "+newElement);
|
|
| 318 |
Log.fine("Refreshing unit properties view with: "+newElement);
|
|
| 319 | 319 |
this.toolbar = toolbar; |
| 320 | 320 |
this.element = newElement; |
| 321 | 321 |
for (Combo t : textWidgets.keySet()) {
|
| tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/handlers/ComputeSpecifictiesSelectionChart.java (revision 1554) | ||
|---|---|---|
| 75 | 75 |
|
| 76 | 76 |
} catch (Exception e) {
|
| 77 | 77 |
System.out.println("Error while computing specificities bar chart: " + e.getLocalizedMessage());
|
| 78 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 78 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 79 | 79 |
} |
| 80 | 80 |
} |
| 81 | 81 |
|
| tmp/org.txm.treetagger.binaries.feature/feature.xml (revision 1554) | ||
|---|---|---|
| 1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 | 2 |
<feature |
| 3 | 3 |
id="org.txm.treetagger.binaries.feature" |
| 4 |
label="TreeTagger binaries"
|
|
| 4 |
label="TreeTagger" |
|
| 5 | 5 |
version="1.0.0.qualifier" |
| 6 | 6 |
provider-name="Textometrie.org"> |
| 7 | 7 |
|
| tmp/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/CooccurrencesEditor.java (revision 1554) | ||
|---|---|---|
| 595 | 595 |
cooc.sort(currentComparator); |
| 596 | 596 |
} catch (CqiClientException e) {
|
| 597 | 597 |
Log.severe(TXMCoreMessages.error_errorWhileSortingResult); |
| 598 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 598 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 599 | 599 |
} |
| 600 | 600 |
} |
| 601 | 601 |
}); |
| 602 | 602 |
} catch (Exception e) {
|
| 603 | 603 |
Log.severe(TXMCoreMessages.error_errorWhileSortingResult); |
| 604 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 604 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 605 | 605 |
} |
| 606 | 606 |
TXMEditor.packColumns(this.viewer); |
| 607 | 607 |
} |
| ... | ... | |
| 619 | 619 |
this.propertiesSelector.setProperties(available, cooc.getProperties()); |
| 620 | 620 |
} catch (Exception e) {
|
| 621 | 621 |
// TODO Auto-generated catch block |
| 622 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 622 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 623 | 623 |
} |
| 624 | 624 |
} |
| 625 | 625 |
|
| tmp/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/EmpantWidget.java (revision 1554) | ||
|---|---|---|
| 291 | 291 |
} |
| 292 | 292 |
} catch (CqiClientException e) {
|
| 293 | 293 |
// TODO Auto-generated catch block |
| 294 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 294 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 295 | 295 |
} |
| 296 | 296 |
} |
| 297 | 297 |
|
| ... | ... | |
| 449 | 449 |
return this.corpus.getStructuralUnit(structs.getText()); |
| 450 | 450 |
} catch (CqiClientException e) {
|
| 451 | 451 |
// TODO Auto-generated catch block |
| 452 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 452 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 453 | 453 |
} |
| 454 | 454 |
return null; |
| 455 | 455 |
} |
| tmp/org.txm.utils/src/org/txm/utils/Sh.java (revision 1554) | ||
|---|---|---|
| 124 | 124 |
org.txm.utils.logger.Log.printStackTrace(e1); |
| 125 | 125 |
} |
| 126 | 126 |
if (e != 0) {
|
| 127 |
System.err.println(UtilsCoreMessages.Sh_4
|
|
| 127 |
Log.fine(UtilsCoreMessages.Sh_4
|
|
| 128 | 128 |
+ e |
| 129 | 129 |
+ " at " //$NON-NLS-1$ |
| 130 | 130 |
+ DateFormat.getDateInstance(DateFormat.FULL, Locale.UK) |
| ... | ... | |
| 152 | 152 |
try {
|
| 153 | 153 |
process = pb.start(); |
| 154 | 154 |
} catch (IOException e) {
|
| 155 |
Log.info(Log.toString(e));
|
|
| 155 |
Log.severe(Log.toString(e));
|
|
| 156 | 156 |
} |
| 157 | 157 |
InputStream is = process.getInputStream(); |
| 158 | 158 |
InputStreamReader isr = new InputStreamReader(is); |
| ... | ... | |
| 169 | 169 |
org.txm.utils.logger.Log.printStackTrace(e1); |
| 170 | 170 |
} |
| 171 | 171 |
if (e != 0) {
|
| 172 |
Log.info(UtilsCoreMessages.Sh_4
|
|
| 172 |
Log.fine(UtilsCoreMessages.Sh_4
|
|
| 173 | 173 |
+ e |
| 174 | 174 |
+ " at " //$NON-NLS-1$ |
| 175 | 175 |
+ DateFormat.getDateInstance(DateFormat.FULL, Locale.UK) |
| tmp/org.txm.utils/src/org/txm/utils/StreamHog.java (revision 1554) | ||
|---|---|---|
| 100 | 100 |
} |
| 101 | 101 |
|
| 102 | 102 |
printMessage(line); |
| 103 |
Log.info(this.getName()+">" + line); //$NON-NLS-1$
|
|
| 103 |
Log.fine(this.getName()+">" + line); //$NON-NLS-1$
|
|
| 104 | 104 |
lastline = line; |
| 105 | 105 |
|
| 106 | 106 |
} |
| tmp/org.txm.utils/src/org/txm/utils/logger/TXMLogger.java (revision 1554) | ||
|---|---|---|
| 49 | 49 |
import java.util.logging.LogRecord; |
| 50 | 50 |
import java.util.logging.Logger; |
| 51 | 51 |
|
| 52 |
// TODO: Auto-generated Javadoc |
|
| 52 |
|
|
| 53 | 53 |
/** |
| 54 | 54 |
* no instanciation to do manage better Exceptions' log. |
| 55 | 55 |
* |
| tmp/org.txm.utils/src/org/txm/utils/logger/Log.java (revision 1554) | ||
|---|---|---|
| 57 | 57 |
/** The fh. */ |
| 58 | 58 |
protected static FileHandler fh; |
| 59 | 59 |
|
| 60 |
/** The default flag. */ |
|
| 61 |
protected static int STANDARD = 1; |
|
| 62 |
|
|
| 63 |
/** The flags. */ |
|
| 64 |
public static final int CONSOLE = 1; |
|
| 60 |
/** The CONSOLE flags indicates if messages with level < INFO are printed in console*/ |
|
| 61 |
public static boolean CONSOLE = false; |
|
| 65 | 62 |
|
| 66 | 63 |
/** The caller information. */ |
| 67 | 64 |
protected static String sourceMethodName; |
| ... | ... | |
| 73 | 70 |
//System.out.println("INIT TXMLOGGER");
|
| 74 | 71 |
txm = new TXMLogger("TXMFileLogger", null);
|
| 75 | 72 |
txm.setLevel(Level.SEVERE); // default is to show errors |
| 73 |
txm.setUseParentHandlers(true); |
|
| 76 | 74 |
frameList = new ArrayList<String>(); |
| 77 | 75 |
frameList.add(id); |
| 78 | 76 |
} |
| ... | ... | |
| 91 | 89 |
* |
| 92 | 90 |
* @param b the new prints the in file |
| 93 | 91 |
*/ |
| 94 |
public static void setPrintInFile(boolean b) {
|
|
| 92 |
public static String setPrintInFile(boolean b) {
|
|
| 95 | 93 |
// System.out.println("set print in file: "+b);
|
| 94 |
String filename = null; |
|
| 96 | 95 |
if (b) {
|
| 97 |
if (txm.getHandlers().length == 0) {
|
|
| 98 | 96 |
try {
|
| 99 | 97 |
SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd"); //$NON-NLS-1$
|
| 100 |
String filename = "/tmp/TXM-" + f.format(new Date()) + ".log"; //$NON-NLS-1$ //$NON-NLS-2$ |
|
| 101 | 98 |
|
| 99 |
filename = System.getProperty("java.io.tmpdir")+"/TXM-" + f.format(new Date()) + ".log"; //$NON-NLS-1$ //$NON-NLS-2$
|
|
| 100 |
|
|
| 102 | 101 |
fh = new FileHandler(filename, false); |
| 103 |
System.out.println(UtilsCoreMessages.Log_3 |
|
| 104 |
+ new File(filename).getAbsolutePath()); |
|
| 102 |
System.out.println(UtilsCoreMessages.Log_3 + new File(filename).getAbsolutePath()); |
|
| 105 | 103 |
fh.setFormatter(new SimpleFormatter()); |
| 106 | 104 |
fh.setEncoding("UTF-8"); //$NON-NLS-1$
|
| 107 | 105 |
txm.addHandler(fh); |
| ... | ... | |
| 110 | 108 |
} catch (IOException e) {
|
| 111 | 109 |
printStackTrace(e); |
| 112 | 110 |
} |
| 113 |
} |
|
| 114 | 111 |
} else {
|
| 115 | 112 |
txm.removeHandler(fh); |
| 116 | 113 |
} |
| 114 |
return filename; |
|
| 117 | 115 |
} |
| 118 | 116 |
|
| 119 | 117 |
static SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd"); //$NON-NLS-1$
|
| ... | ... | |
| 190 | 188 |
* @param b the new prints the in console |
| 191 | 189 |
*/ |
| 192 | 190 |
public static void setPrintInConsole(boolean b) {
|
| 193 |
txm.setUseParentHandlers(b);
|
|
| 191 |
CONSOLE = b;
|
|
| 194 | 192 |
} |
| 195 |
|
|
| 196 |
/** |
|
| 197 |
* Get the standard flag currently used |
|
| 198 |
* |
|
| 199 |
* @return the standard flag |
|
| 200 |
*/ |
|
| 201 |
public static int getStdFlag() {
|
|
| 202 |
return STANDARD; |
|
| 203 |
} |
|
| 204 |
|
|
| 205 |
/** |
|
| 206 |
* Set the standard flag to use |
|
| 207 |
* |
|
| 208 |
* @param flag |
|
| 209 |
*/ |
|
| 210 |
public static void setStdFlag(int flag) {
|
|
| 211 |
STANDARD = flag; |
|
| 212 |
} |
|
| 213 | 193 |
|
| 214 | 194 |
/** |
| 215 |
* Reset the standard flag to the console
|
|
| 195 |
* Sets the prints the in console.
|
|
| 216 | 196 |
* |
| 197 |
* @param b the new prints the in console |
|
| 217 | 198 |
*/ |
| 218 |
public static void resetStdFlag() {
|
|
| 219 |
STANDARD = CONSOLE;
|
|
| 199 |
public static boolean getPrintInConsole() {
|
|
| 200 |
return txm.getUseParentHandlers();
|
|
| 220 | 201 |
} |
| 221 | 202 |
|
| 222 |
/** |
|
| 223 |
* Add a flag to the standard flag |
|
| 224 |
* |
|
| 225 |
* @param flag |
|
| 226 |
*/ |
|
| 227 |
public static void addFlag(int flag) {
|
|
| 228 |
STANDARD |= flag; |
|
| 229 |
} |
|
| 230 |
|
|
| 231 |
/** |
|
| 232 |
* Remove a flag from the standard flag |
|
| 233 |
* |
|
| 234 |
* @param flag |
|
| 235 |
*/ |
|
| 236 |
public static void removeFlag(int flag) {
|
|
| 237 |
STANDARD ^= flag; |
|
| 238 |
} |
|
| 239 |
|
|
| 240 |
/** |
|
| 241 |
* Log a severe message using the default flag |
|
| 242 |
* |
|
| 243 |
* @param message |
|
| 244 |
*/ |
|
| 245 |
public static void severe(String message) {
|
|
| 246 |
severe(message, STANDARD); |
|
| 247 |
} |
|
| 248 | 203 |
|
| 249 | 204 |
/** |
| 250 | 205 |
* Log a severe message using the default flag |
| ... | ... | |
| 260 | 215 |
* Log a severe message |
| 261 | 216 |
* |
| 262 | 217 |
* @param message |
| 263 |
* @param flag where to print the message |
|
| 264 | 218 |
*/ |
| 265 |
public static void severe(String message, int flag) {
|
|
| 266 |
if ((flag & CONSOLE) == CONSOLE) {
|
|
| 267 |
printConsoleError(message);
|
|
| 219 |
public static void severe(String message) {
|
|
| 220 |
if (Level.SEVERE.intValue() >= txm.getLevel().intValue()) {
|
|
| 221 |
System.out.println(message);
|
|
| 268 | 222 |
} |
| 269 | 223 |
txm.severe(message); |
| 270 | 224 |
} |
| ... | ... | |
| 272 | 226 |
/** |
| 273 | 227 |
* Log a warning message using the default flag |
| 274 | 228 |
* |
| 275 |
* @param message |
|
| 276 |
*/ |
|
| 277 |
public static void warning(String message) {
|
|
| 278 |
warning(message, STANDARD); |
|
| 279 |
} |
|
| 280 |
|
|
| 281 |
/** |
|
| 282 |
* Log a warning message using the default flag |
|
| 283 |
* |
|
| 284 | 229 |
* @param t the error to print |
| 285 | 230 |
*/ |
| 286 | 231 |
public static void warning(Throwable e) {
|
| ... | ... | |
| 292 | 237 |
* Log a warning message |
| 293 | 238 |
* |
| 294 | 239 |
* @param message |
| 295 |
* @param flag where to print the message |
|
| 296 | 240 |
*/ |
| 297 |
public static void warning(String message, int flag) {
|
|
| 298 |
if ((flag & CONSOLE) == CONSOLE) |
|
| 299 |
printConsoleWarning(message); |
|
| 241 |
public static void warning(String message) {
|
|
| 242 |
if (Level.WARNING.intValue() >= txm.getLevel().intValue()) {
|
|
| 243 |
System.out.println(message); |
|
| 244 |
} |
|
| 300 | 245 |
txm.warning(message); |
| 301 | 246 |
} |
| 302 | 247 |
|
| 303 |
/** |
|
| 304 |
* Log an info message using the default flag |
|
| 305 |
* |
|
| 306 |
* @param message |
|
| 307 |
*/ |
|
| 308 |
public static void info(String message) {
|
|
| 309 |
info(message, STANDARD); |
|
| 310 |
} |
|
| 311 | 248 |
|
| 312 | 249 |
/** |
| 313 | 250 |
* Log an info message using the default flag |
| ... | ... | |
| 325 | 262 |
* @param message |
| 326 | 263 |
* @param flag where to print the message |
| 327 | 264 |
*/ |
| 328 |
public static void info(String message, int flag) {
|
|
| 329 |
if ((flag & CONSOLE) == CONSOLE) |
|
| 330 |
printConsoleInfo(message); |
|
| 265 |
public static void info(String message) {
|
|
| 266 |
if (Level.INFO.intValue() >= txm.getLevel().intValue()) {
|
|
| 267 |
System.out.println(message); |
|
| 268 |
} |
|
| 331 | 269 |
txm.info(message); |
| 332 | 270 |
} |
| 271 |
|
|
| 333 | 272 |
|
| 334 | 273 |
/** |
| 335 |
* Log an info message using the default flag
|
|
| 274 |
* Log an info message |
|
| 336 | 275 |
* |
| 337 | 276 |
* @param message |
| 277 |
* @param flag where to print the message |
|
| 338 | 278 |
*/ |
| 339 |
public static void fine(String message) {
|
|
| 340 |
fine(message, STANDARD); |
|
| 341 |
} |
|
| 342 |
|
|
| 343 |
/** |
|
| 344 |
* Log an info message using the default flag |
|
| 345 |
* |
|
| 346 |
* @param message |
|
| 347 |
*/ |
|
| 348 | 279 |
public static void finest(String message) {
|
| 349 |
finest(message, STANDARD); |
|
| 280 |
if (CONSOLE && Level.FINEST.intValue() >= txm.getLevel().intValue()) {
|
|
| 281 |
System.out.println(message); |
|
| 282 |
} |
|
| 283 |
txm.finest(message); |
|
| 350 | 284 |
} |
| 351 | 285 |
|
| 352 | 286 |
/** |
| ... | ... | |
| 355 | 289 |
* @param message |
| 356 | 290 |
* @param flag where to print the message |
| 357 | 291 |
*/ |
| 358 |
public static void finest(String message, int flag) {
|
|
| 359 |
if ((flag & CONSOLE) == CONSOLE) |
|
| 360 |
printConsoleInfo(message); |
|
| 361 |
txm.finest(message); |
|
| 292 |
public static void fine(String message) {
|
|
| 293 |
if (CONSOLE && Level.FINE.intValue() >= txm.getLevel().intValue()) {
|
|
| 294 |
System.out.println(message); |
|
| 295 |
} |
|
| 296 |
txm.fine(message); |
|
| 362 | 297 |
} |
| 363 | 298 |
|
| 364 | 299 |
/** |
| ... | ... | |
| 367 | 302 |
* @param message |
| 368 | 303 |
* @param flag where to print the message |
| 369 | 304 |
*/ |
| 370 |
public static void fine(String message, int flag) {
|
|
| 371 |
if ((flag & CONSOLE) == CONSOLE) |
|
| 372 |
printConsoleInfo(message); |
|
| 373 |
txm.fine(message); |
|
| 305 |
public static void finer(String message) {
|
|
| 306 |
if (CONSOLE && Level.FINER.intValue() >= txm.getLevel().intValue()) {
|
|
| 307 |
System.out.println(message); |
|
| 308 |
} |
|
| 309 |
txm.finer(message); |
|
| 374 | 310 |
} |
| 375 | 311 |
|
| 376 | 312 |
|
| ... | ... | |
| 396 | 332 |
return txm.getLevel().intValue() <= Level.INFO.intValue(); |
| 397 | 333 |
} |
| 398 | 334 |
|
| 399 |
/** |
|
| 400 |
* Print an error message in the err output |
|
| 401 |
* |
|
| 402 |
* @param message |
|
| 403 |
*/ |
|
| 404 |
protected static void printConsoleError(String message) {
|
|
| 405 |
if (Level.SEVERE.intValue() < txm.getLevel().intValue()) {
|
|
| 406 |
return; |
|
| 407 |
} |
|
| 408 |
System.err.println(message); |
|
| 409 |
// txm.log(Level.SEVERE, message); |
|
| 410 |
} |
|
| 411 | 335 |
|
| 412 | 336 |
/** |
| 413 |
* Print a warning message in the std output |
|
| 414 |
* |
|
| 415 |
* @param message |
|
| 416 |
*/ |
|
| 417 |
protected static void printConsoleWarning(String message) {
|
|
| 418 |
if (Level.WARNING.intValue() < txm.getLevel().intValue()) {
|
|
| 419 |
return; |
|
| 420 |
} |
|
| 421 |
System.out.println(message); |
|
| 422 |
// txm.log(Level.WARNING, message); |
|
| 423 |
} |
|
| 424 |
|
|
| 425 |
/** |
|
| 426 |
* Print an info message in the std output |
|
| 427 |
* |
|
| 428 |
* @param message |
|
| 429 |
*/ |
|
| 430 |
protected static void printConsoleInfo(String message) {
|
|
| 431 |
if (Level.INFO.intValue() < txm.getLevel().intValue()) {
|
|
| 432 |
return; |
|
| 433 |
} |
|
| 434 |
System.out.println(message); |
|
| 435 |
// txm.log(Level.INFO, message); |
|
| 436 |
} |
|
| 437 |
|
|
| 438 |
/** |
|
| 439 | 337 |
* Method from LogRecord to determine if a frame is a logger frame |
| 440 | 338 |
* |
| 441 | 339 |
* @param cname the frame |
| tmp/org.txm.utils/src/org/txm/utils/messages/messages_fr.properties (revision 1554) | ||
|---|---|---|
| 3 | 3 |
Localizer_0=[Traduction manquante] |
| 4 | 4 |
Pair_1=\ devrait valoir vrai. |
| 5 | 5 |
Localizer_1=messages |
| 6 |
FileCopy_0=** Copie de fichiers \: �chec d'acc�s � la source \:
|
|
| 7 |
FileCopy_2=** Copie de fichiers \: droits d'acc�s insuffisants � la source \:
|
|
| 6 |
FileCopy_0=** Copie de fichiers \: Échec d'accès à la source \:
|
|
| 7 |
FileCopy_2=** Copie de fichiers \: droits d'accès insuffisants à la source \:
|
|
| 8 | 8 |
ExecTimer_3=h, |
| 9 |
FileCopy_4=** Copie de fichiers \: �chec de cr�ation du dossier \:
|
|
| 9 |
FileCopy_4=** Copie de fichiers \: Échec de création du dossier \:
|
|
| 10 | 10 |
Pair_0=\ devrait valoir faux. |
| 11 | 11 |
ExecTimer_0=\ msec |
| 12 | 12 |
ExecTimer_2=\ min et |
| 13 | 13 |
ExecTimer_1=\ sec |
| 14 |
Sh_4=Le processus a termin� avec le code d'erreur \:
|
|
| 15 |
Log_5=�criture des messages dans
|
|
| 14 |
Sh_4=Le processus a terminé avec le code d'erreur \:
|
|
| 15 |
Log_5=Écriture des messages dans
|
|
| 16 | 16 |
LS_1=\ n'est pas un dossier. |
| 17 | 17 |
Log_3=Copie des messages dans |
| 18 | 18 |
LS_0=Erreur \: |
| tmp/org.txm.utils/.settings/org.eclipse.core.resources.prefs (revision 1554) | ||
|---|---|---|
| 1 |
eclipse.preferences.version=1 |
|
| 2 |
encoding//src/org/txm/utils/messages/messages_fr.properties=UTF-8 |
|
| 0 | 3 | |
| tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAFactorialMapChartEditor.java (revision 1554) | ||
|---|---|---|
| 185 | 185 |
// } |
| 186 | 186 |
// catch (StatException e1) {
|
| 187 | 187 |
// // TODO Auto-generated catch block |
| 188 |
// org.txm.rcp.utils.Logger.printStackTrace(e1);
|
|
| 188 |
// org.txm.utils.logger.Log.printStackTrace(e1);
|
|
| 189 | 189 |
// } |
| 190 | 190 |
// String [] items = planes.toArray(new String[planes.size()]); |
| 191 | 191 |
|
| tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAParametersDialog.java (revision 1554) | ||
|---|---|---|
| 110 | 110 |
this.title = title; |
| 111 | 111 |
this.properties = new ArrayList<WordProperty>(corpus.getOrderedProperties()); |
| 112 | 112 |
} catch (CqiClientException e) {
|
| 113 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 113 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 114 | 114 |
} |
| 115 | 115 |
} |
| 116 | 116 |
|
| ... | ... | |
| 131 | 131 |
try {
|
| 132 | 132 |
this.properties = new ArrayList<WordProperty>(corpus.getOrderedProperties()); |
| 133 | 133 |
} catch (CqiClientException e) {
|
| 134 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 134 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 135 | 135 |
} |
| 136 | 136 |
} |
| 137 | 137 |
|
| tmp/org.txm.ca.rcp/src/org/txm/ca/rcp/editors/CAEditor.java (revision 1554) | ||
|---|---|---|
| 177 | 177 |
|
| 178 | 178 |
} |
| 179 | 179 |
catch (Exception e1) {
|
| 180 |
org.txm.rcp.utils.Logger.printStackTrace(e1);
|
|
| 180 |
org.txm.utils.logger.Log.printStackTrace(e1);
|
|
| 181 | 181 |
System.out.println(NLS.bind(CAUIMessages.errorWhileOpeningCAEditorColonP0, e1)); |
| 182 | 182 |
return; |
| 183 | 183 |
} |
| tmp/org.txm.setups/index.php (revision 1554) | ||
|---|---|---|
| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
| 2 |
<html><head> |
|
| 3 |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
|
| 4 |
<meta name="generator" content="ReText 4.1.2"> |
|
| 5 |
<link rel="stylesheet" type="text/css" href="index_files/sf.css"> |
|
| 6 |
<title>Téléchargement de TXM 0.8.0 α2</title> |
|
| 7 |
</head> |
|
| 8 |
<body> |
|
| 9 |
<hr/> |
|
| 10 |
|
|
| 11 |
<h1 align="center">Téléchargement de <span class="big"> TXM 0.8.0 </span> α<br> |
|
| 12 |
<!--<img src="index_files/txm-icon.jpg"><br>--> |
|
| 13 |
<!-- <small><a href="#fr">(instructions d'installation en français ci-dessous - FR FR FR)</a></small> --> |
|
| 14 |
</h1> |
|
| 15 |
<div style="background-image:url('index_files/TXM-background.jpg');background-repeat: no-repeat;background-position: right;">
|
|
| 16 |
|
|
| 17 |
<table > |
|
| 18 |
<td><center><a href="TXM_0.8.0a3_Win64_installer.exe"><img width="125" src="index_files/windows-icon.png"/><br>Windows 7 et plus (64 bit)</a></center></td> |
|
| 19 |
<td><center ><a href="TXM_0.8.0a3_Linux64_installer.deb"><img width="125" src="index_files/ubuntu-icon.png"/><br>Ubuntu 16.04 et plus</a><br></center></li><td> |
|
| 20 |
<td><center ><a href="TXM_0.8.0a3_MacOSX_installer.pkg"><img width="125" src="index_files/macosx-icon.png"/><br>Mac OS X 10.10 et plus</a><br></center></li><td> |
|
| 21 |
</table> |
|
| 22 |
|
|
| 23 |
<?php |
|
| 24 |
|
|
| 25 |
echo '<h2>files</h2>' |
|
| 26 |
|
|
| 27 |
try {
|
|
| 28 |
|
|
| 29 |
} catch (Exception $e) {
|
|
| 30 |
echo '<p>Exception: </p>' |
|
| 31 |
} |
|
| 32 |
|
|
| 33 |
?> |
|
| 34 |
|
|
| 35 |
<h2>Recettes</h2> |
|
| 36 |
<ul> |
|
| 37 |
<li><a href="https://groupes.renater.fr/wiki/txm-info/public/roadmap_0.8#recette_0_-_installation_multiple">Recette 0 </a>: installation</li> |
|
| 38 |
<li><a href="https://groupes.renater.fr/wiki/txm-info/public/roadmap_0.8#recette_1_verification_de_toutes_les_fonctionnalites_de_txm_080" >Recette 1</a> : vérification des fonctionnalités</li> |
|
| 39 |
|
|
| 40 |
</body> |
|
| 41 |
</html> |
|
| tmp/org.txm.setups/SUBVERSION (revision 1554) | ||
|---|---|---|
| 1 |
a3 |
|
| 1 |
a6 |
|
| tmp/org.txm.core.tests/src/org/txm/rcp/commands/tests/NilsTest.java (revision 1554) | ||
|---|---|---|
| 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.rcp.commands.tests; |
|
| 29 |
|
|
| 30 |
import org.eclipse.core.commands.AbstractHandler; |
|
| 31 |
import org.eclipse.core.commands.ExecutionEvent; |
|
| 32 |
import org.eclipse.core.commands.ExecutionException; |
|
| 33 |
import org.eclipse.core.runtime.IProgressMonitor; |
|
| 34 |
import org.eclipse.core.runtime.IStatus; |
|
| 35 |
import org.eclipse.core.runtime.Status; |
|
| 36 |
import org.eclipse.core.runtime.jobs.IJobManager; |
|
| 37 |
import org.txm.rcp.JobsTimer; |
|
| 38 |
import org.txm.rcp.StatusLine; |
|
| 39 |
import org.txm.rcp.utils.JobHandler; |
|
| 40 |
import org.txm.rcp.utils.Logger; |
|
| 41 |
import org.txm.utils.logger.Log; |
|
| 42 |
|
|
| 43 |
public class NilsTest extends AbstractHandler {
|
|
| 44 |
|
|
| 45 |
/* |
|
| 46 |
* (non-Javadoc) |
|
| 47 |
* |
|
| 48 |
* @see |
|
| 49 |
* org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands |
|
| 50 |
* .ExecutionEvent) |
|
| 51 |
*/ |
|
| 52 |
@Override |
|
| 53 |
public Object execute(ExecutionEvent event) throws ExecutionException {
|
|
| 54 |
|
|
| 55 |
JobHandler jobhandler = new JobHandler("Testing TXM") { //$NON-NLS-1$
|
|
| 56 |
@Override |
|
| 57 |
protected IStatus run(IProgressMonitor monitor) {
|
|
| 58 |
// this.setCurrentMonitor(monitor); |
|
| 59 |
this.runInit(monitor); |
|
| 60 |
JobsTimer.start(); |
|
| 61 |
int ii = 0; |
|
| 62 |
try {
|
|
| 63 |
// while (ii++ < 999999999) {
|
|
| 64 |
// ii = 0; |
|
| 65 |
// } |
|
| 66 |
monitor.beginTask("Testing commands", 100); //$NON-NLS-1$
|
|
| 67 |
monitor.subTask("P1"); //$NON-NLS-1$
|
|
| 68 |
//Thread.sleep(3000); |
|
| 69 |
monitor.worked(30);// if (monitor.isCanceled()) return |
|
| 70 |
// Status.CANCEL_STATUS; |
|
| 71 |
|
|
| 72 |
this.acquireSemaphore(); |
|
| 73 |
System.out.println("test");
|
|
| 74 |
// Logger.addFlag(Logger.STATUSLINE); |
|
| 75 |
// Logger.severe("test severe std");
|
|
| 76 |
// Logger.addFlag(Logger.MSGBOX); |
|
| 77 |
// Logger.removeFlag(Logger.CONSOLE); |
|
| 78 |
// Logger.severe("severe status line", Logger.STATUSLINE);
|
|
| 79 |
// Logger.info("info msgbox", Logger.MSGBOX | Logger.CONSOLE);
|
|
| 80 |
// Logger.info("info std");
|
|
| 81 |
// Logger.warning("warn all", Logger.STATUSLINE | Logger.MSGBOX);
|
|
| 82 |
Logger.info("NilsTest running", Logger.STATUSLINE_REMAIN); //$NON-NLS-1$
|
|
| 83 |
throw new Exception("test exception");
|
|
| 84 |
/* |
|
| 85 |
try {
|
|
| 86 |
monitor.subTask("P2"); //$NON-NLS-1$
|
|
| 87 |
Thread.sleep(1000); |
|
| 88 |
monitor.worked(30);// if (monitor.isCanceled()) return |
|
| 89 |
// Status.CANCEL_STATUS; |
|
| 90 |
} catch (Exception e) {
|
|
| 91 |
System.out.println("catch p2"); //$NON-NLS-1$
|
|
| 92 |
} |
|
| 93 |
|
|
| 94 |
this.releaseSemaphore(); |
|
| 95 |
|
|
| 96 |
monitor.subTask("P3"); //$NON-NLS-1$
|
|
| 97 |
Thread.sleep(1000); |
|
| 98 |
monitor.worked(40);// if (monitor.isCanceled()) return |
|
| 99 |
// Status.CANCEL_STATUS; |
|
| 100 |
* |
|
| 101 |
*/ |
|
| 102 |
} catch (InterruptedException e) {
|
|
| 103 |
System.out.println("Thread interrupted"); //$NON-NLS-1$
|
|
| 104 |
} catch (Exception e) {
|
|
| 105 |
org.txm.rcp.utils.Logger.printStackTrace(e); |
|
| 106 |
} catch (ThreadDeath e) {
|
|
| 107 |
// org.txm.rcp.utils.Logger.printStackTrace(e); |
|
| 108 |
return Status.CANCEL_STATUS; |
|
| 109 |
} finally {
|
|
| 110 |
monitor.done(); |
|
| 111 |
JobsTimer.stopAndPrint(); |
|
| 112 |
} |
|
| 113 |
return Status.OK_STATUS; |
|
| 114 |
} |
|
| 115 |
}; |
|
| 116 |
jobhandler.startJob(); |
|
| 117 |
return null; |
|
| 118 |
} |
|
| 119 |
} |
|
| tmp/org.txm.core.tests/src/org/txm/rcp/commands/tests/TestImportLangs.java (revision 1554) | ||
|---|---|---|
| 84 | 84 |
importTXTCorpus(this, sourcesdir, scriptsdir); |
| 85 | 85 |
|
| 86 | 86 |
} catch (Exception e) {
|
| 87 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 87 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 88 | 88 |
return Status.CANCEL_STATUS; |
| 89 | 89 |
} |
| 90 | 90 |
|
| tmp/org.txm.core.tests/src/org/txm/rcp/commands/tests/TestImports.java (revision 1554) | ||
|---|---|---|
| 175 | 175 |
return Status.CANCEL_STATUS; |
| 176 | 176 |
} |
| 177 | 177 |
} catch (Exception e) {
|
| 178 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 178 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 179 | 179 |
return Status.CANCEL_STATUS; |
| 180 | 180 |
} |
| 181 | 181 |
|
| ... | ... | |
| 203 | 203 |
zipFile2.renameTo(zipFile); |
| 204 | 204 |
this.releaseSemaphore(); |
| 205 | 205 |
} catch (IOException e) {
|
| 206 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 206 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 207 | 207 |
return Status.CANCEL_STATUS; |
| 208 | 208 |
} |
| 209 | 209 |
} catch (ThreadDeath td) {
|
| tmp/org.txm.index.rcp/src/org/txm/index/rcp/handlers/PartitionIndexToLexicalTable.java (revision 1554) | ||
|---|---|---|
| 104 | 104 |
// table = new LexicalTable(voc); |
| 105 | 105 |
// } catch (Exception e) {
|
| 106 | 106 |
// // TODO Auto-generated catch block |
| 107 |
// org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 107 |
// org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 108 | 108 |
// return false; |
| 109 | 109 |
// } |
| 110 | 110 |
// |
| ... | ... | |
| 116 | 116 |
// StatusLine.setMessage(LexicalTableUIMessages.ComputeLexicalTable_10); |
| 117 | 117 |
// page.openEditor(editorInput, "org.txm.rcp.editors.lexicaltable.LexicalTableEditor"); //$NON-NLS-1$ |
| 118 | 118 |
// } catch (PartInitException e) {
|
| 119 |
// org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 119 |
// org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 120 | 120 |
// } |
| 121 | 121 |
// |
| 122 | 122 |
// return true; |
| tmp/org.txm.index.rcp/src/org/txm/index/rcp/editors/PartitionIndexEditor.java (revision 1554) | ||
|---|---|---|
| 503 | 503 |
freqColumn.setText(TXMCoreMessages.common_frequency+" T="+index.getPartition().getTotalSize()); //$NON-NLS-1$ |
| 504 | 504 |
} catch (CqiClientException e2) {
|
| 505 | 505 |
// TODO Auto-generated catch block |
| 506 |
org.txm.rcp.utils.Logger.printStackTrace(e2);
|
|
| 506 |
org.txm.utils.logger.Log.printStackTrace(e2);
|
|
| 507 | 507 |
} |
| 508 | 508 |
freqColumn.setToolTipText(TXMCoreMessages.common_frequency); |
| 509 | 509 |
freqColumn.setWidth(100); |
| ... | ... | |
| 542 | 542 |
try {
|
| 543 | 543 |
partColumn.setText(partnames.get(i) + " t=" + parts.get(i).getSize()); //$NON-NLS-1$ |
| 544 | 544 |
} catch (CqiClientException e1) {
|
| 545 |
org.txm.rcp.utils.Logger.printStackTrace(e1);
|
|
| 545 |
org.txm.utils.logger.Log.printStackTrace(e1);
|
|
| 546 | 546 |
} |
| 547 | 547 |
partColumn.setToolTipText(partnames.get(i)); |
| 548 | 548 |
partColumn.setWidth(100); |
| tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/actions/DefineViewReferencePattern.java (revision 1554) | ||
|---|---|---|
| 104 | 104 |
.getOrderedProperties()); |
| 105 | 105 |
|
| 106 | 106 |
} catch (Exception e) {
|
| 107 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 107 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 108 | 108 |
} |
| 109 | 109 |
|
| 110 | 110 |
for (StructuralUnit unit : structuralUnits) {
|
| tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/actions/DefineSortReferencePattern.java (revision 1554) | ||
|---|---|---|
| 105 | 105 |
|
| 106 | 106 |
|
| 107 | 107 |
} catch (Exception e) {
|
| 108 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 108 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 109 | 109 |
} |
| 110 | 110 |
|
| 111 | 111 |
for (StructuralUnit unit : structuralUnits) {
|
| tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/widgets/ComplexSortSelector.java (revision 1554) | ||
|---|---|---|
| 146 | 146 |
editor.sort(); |
| 147 | 147 |
} catch (Exception e) {
|
| 148 | 148 |
System.err.println(NLS.bind(TXMUIMessages.errorDuringSortColonP0, e)); |
| 149 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 149 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 150 | 150 |
} |
| 151 | 151 |
} |
| 152 | 152 |
|
| tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ConcordanceEditor.java (revision 1554) | ||
|---|---|---|
| 750 | 750 |
return Status.CANCEL_STATUS; |
| 751 | 751 |
} catch (Exception e) {
|
| 752 | 752 |
System.err.println(NLS.bind(ConcordanceUIMessages.anErrorOccurredWhileRetrievingTheConcordanceLinesColonP0, e)); |
| 753 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 753 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 754 | 754 |
} catch (Error e) {
|
| 755 | 755 |
System.err.println(ConcordanceUIMessages.bind(ConcordanceUIMessages.fatalErrorColonP0,e)); |
| 756 | 756 |
e.printStackTrace(); |
| ... | ... | |
| 765 | 765 |
jobhandler.startJob(); |
| 766 | 766 |
} catch (Exception e) {
|
| 767 | 767 |
System.err.println(NLS.bind(ConcordanceUIMessages.anErrorOccurredWhileRetrievingTheConcordanceLinesColonP0, e)); |
| 768 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 768 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 769 | 769 |
} |
| 770 | 770 |
} |
| 771 | 771 |
} |
| ... | ... | |
| 796 | 796 |
lines = concordance.getLines(from, to); |
| 797 | 797 |
} catch (Exception e) {
|
| 798 | 798 |
System.err.println(NLS.bind(ConcordanceUIMessages.anErrorOccurredWhileRetrievingTheConcordanceLinesColonP0, e)); |
| 799 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 799 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 800 | 800 |
} |
| 801 | 801 |
} |
| 802 | 802 |
else {
|
| ... | ... | |
| 1218 | 1218 |
} catch (Exception e1) {
|
| 1219 | 1219 |
System.out.println(NLS.bind(ConcordanceUIMessages.errorWhileComputingTheConcordanceColonP0, Log.toString(e1))); |
| 1220 | 1220 |
//System.err.println(Messages.CorporaView_3); |
| 1221 |
org.txm.rcp.utils.Logger.printStackTrace(e1);
|
|
| 1221 |
org.txm.utils.logger.Log.printStackTrace(e1);
|
|
| 1222 | 1222 |
try {
|
| 1223 | 1223 |
Log.severe(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.lastCQPErrorColon, CQPSearchEngine.getCqiClient().getLastCQPError())); |
| 1224 | 1224 |
} catch (Exception e2) {
|
| 1225 | 1225 |
System.out.println(NLS.bind(CQPSearchEngineCoreMessages.cQPErrorColonP0, e2)); |
| 1226 |
org.txm.rcp.utils.Logger.printStackTrace(e1);
|
|
| 1226 |
org.txm.utils.logger.Log.printStackTrace(e1);
|
|
| 1227 | 1227 |
Log.severe(Log.toString(e1)); |
| 1228 | 1228 |
} |
| 1229 | 1229 |
} |
| ... | ... | |
| 1814 | 1814 |
// Log.info("Corpus' base ("+baseid+") : "+corpus.getParent());
|
| 1815 | 1815 |
} catch (Exception e2) {
|
| 1816 | 1816 |
System.out.println(Messages.ConcordancesEditor_8); |
| 1817 |
org.txm.rcp.utils.Logger.printStackTrace(e2);
|
|
| 1817 |
org.txm.utils.logger.Log.printStackTrace(e2);
|
|
| 1818 | 1818 |
return; |
| 1819 | 1819 |
} |
| 1820 | 1820 |
|
| ... | ... | |
| 1828 | 1828 |
lineids = line.getMatch().getValuesForProperty( |
| 1829 | 1829 |
corpus.getProperty("id")); //$NON-NLS-1$
|
| 1830 | 1830 |
} catch (Exception e1) {
|
| 1831 |
org.txm.rcp.utils.Logger.printStackTrace(e1);
|
|
| 1831 |
org.txm.utils.logger.Log.printStackTrace(e1);
|
|
| 1832 | 1832 |
return; |
| 1833 | 1833 |
} |
| 1834 | 1834 |
Log.info(NLS.bind(Messages.ConcordancesEditor_26, |
| tmp/org.txm.referencer.rcp/src/org/txm/referencer/rcp/editors/ReferencerEditor.java (revision 1554) | ||
|---|---|---|
| 343 | 343 |
try {
|
| 344 | 344 |
lines = referencer.getLines(from, to); |
| 345 | 345 |
} catch (Exception e) {
|
| 346 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 346 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 347 | 347 |
lines = new ArrayList<Line>(); |
| 348 | 348 |
} |
| 349 | 349 |
} else {
|
| ... | ... | |
| 446 | 446 |
} |
| 447 | 447 |
|
| 448 | 448 |
} catch (CqiClientException e1) {
|
| 449 |
org.txm.rcp.utils.Logger.printStackTrace(e1);
|
|
| 449 |
org.txm.utils.logger.Log.printStackTrace(e1);
|
|
| 450 | 450 |
} |
| 451 | 451 |
|
| 452 | 452 |
// references |
| ... | ... | |
| 466 | 466 |
|
| 467 | 467 |
this.patternArea.setProperties(availables2, selectedProps); |
| 468 | 468 |
} catch (CqiClientException e1) {
|
| 469 |
org.txm.rcp.utils.Logger.printStackTrace(e1);
|
|
| 469 |
org.txm.utils.logger.Log.printStackTrace(e1);
|
|
| 470 | 470 |
return; |
| 471 | 471 |
} |
| 472 | 472 |
} |
| tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/CQPSearchEngine.java (revision 1554) | ||
|---|---|---|
| 58 | 58 |
|
| 59 | 59 |
useNetCQi = CQPLibPreferences.getInstance().getBoolean(CQPLibPreferences.CQI_NETWORK_MODE); |
| 60 | 60 |
|
| 61 |
Log.warning("Killing CQP processes if any.");
|
|
| 61 |
Log.fine("Killing CQP processes if any.");
|
|
| 62 | 62 |
killSearchEngine(); |
| 63 | 63 |
|
| 64 | 64 |
boolean remote = CQPLibPreferences.getInstance().getBoolean(CQPLibPreferences.CQI_SERVER_IS_REMOTE); |
| ... | ... | |
| 69 | 69 |
String path_separator = System.getProperty("path.separator");
|
| 70 | 70 |
File wl = Toolbox.workspace.getLocation(); |
| 71 | 71 |
if (wl == null) {
|
| 72 |
System.out.println("Error: Toolbox is not correctly initialized. Aborting CQP engine start...");
|
|
| 72 |
Log.severe("Error: Toolbox is not correctly initialized. Aborting CQP engine start...");
|
|
| 73 | 73 |
return false; |
| 74 | 74 |
} |
| 75 | 75 |
for (File binDir : wl.listFiles(IOUtils.FILTER_HIDDEN)) {
|
| ... | ... | |
| 92 | 92 |
try {
|
| 93 | 93 |
PatchCwbRegistry.patch(registryFile, dataDirectory); |
| 94 | 94 |
} catch (IOException e) {
|
| 95 |
System.out.println(TXMCoreMessages.bind("Error while updating registry file {0}.", registryFile));
|
|
| 95 |
Log.severe(TXMCoreMessages.bind("Error while updating registry file {0}.", registryFile));
|
|
| 96 | 96 |
Log.printStackTrace(e); |
| 97 | 97 |
return false; |
| 98 | 98 |
} |
| ... | ... | |
| 104 | 104 |
|
| 105 | 105 |
String init_path = CQPLibPreferences.getInstance().getString(CQPLibPreferences.CQI_SERVER_PATH_TO_INIT_FILE); |
| 106 | 106 |
if (init_path.length() > 0 && !new File(init_path).exists()) {
|
| 107 |
System.out.println(TXMCoreMessages.bind("Warning: the given CQP init file path can not be found in {0}.", init_path));
|
|
| 107 |
Log.warning(TXMCoreMessages.bind("Warning: the given CQP init file path can not be found in {0}.", init_path));
|
|
| 108 | 108 |
init_path = null; |
| 109 | 109 |
} |
| 110 | 110 |
|
| ... | ... | |
| 126 | 126 |
String exec_path = CQPLibPreferences.getInstance().getString(CQPLibPreferences.CQI_SERVER_PATH_TO_EXECUTABLE); |
| 127 | 127 |
|
| 128 | 128 |
if (exec_path == null || exec_path.length() == 0 || new File(exec_path).exists()) {
|
| 129 |
System.out.println(TXMCoreMessages.bind("Error: the '{0}' preference is not set.", CQPLibPreferences.CQI_SERVER_PATH_TO_EXECUTABLE));
|
|
| 129 |
Log.severe(TXMCoreMessages.bind("Error: the '{0}' preference is not set.", CQPLibPreferences.CQI_SERVER_PATH_TO_EXECUTABLE));
|
|
| 130 | 130 |
} |
| 131 | 131 |
// if (new File(exec_path).exists()) {
|
| 132 | 132 |
// System.out.println("Error: the '"+CQPLibPreferences.CQI_SERVER_PATH_TO_EXECUTABLE+"' preference is not set.");
|
| ... | ... | |
| 181 | 181 |
} |
| 182 | 182 |
|
| 183 | 183 |
if (state == false) {
|
| 184 |
System.out.println(TXMCoreMessages.errorWhileConnectingToSearchEngine);
|
|
| 184 |
Log.severe(TXMCoreMessages.errorWhileConnectingToSearchEngine);
|
|
| 185 | 185 |
if (cqiClient instanceof NetCqiClient) {
|
| 186 |
System.out.println(TXMCoreMessages.bind(TXMCoreMessages.wrongLoginOrPasswordOrPortColon, CQPLibPreferences.getInstance().getString(CQPLibPreferences.CQI_SERVER_LOGIN),
|
|
| 186 |
Log.severe(TXMCoreMessages.bind(TXMCoreMessages.wrongLoginOrPasswordOrPortColon, CQPLibPreferences.getInstance().getString(CQPLibPreferences.CQI_SERVER_LOGIN),
|
|
| 187 | 187 |
CQPLibPreferences.getInstance().getString(CQPLibPreferences.CQI_SERVER_PASSWORD), CQPLibPreferences.getInstance().getString(CQPLibPreferences.CQI_SERVER_HOST), |
| 188 | 188 |
CQPLibPreferences.getInstance().getInt(CQPLibPreferences.CQI_SERVER_PORT))); |
| 189 | 189 |
} |
| 190 | 190 |
if (cqiServer != null && cqiServer instanceof NetCqiServer) {
|
| 191 |
System.out.println(TXMCoreMessages.bind(TXMCoreMessages.orTheEngineWasNotStartedWithTheCommandLineColon, cqiServer.getLastCmdLine()));
|
|
| 191 |
Log.severe(TXMCoreMessages.bind(TXMCoreMessages.orTheEngineWasNotStartedWithTheCommandLineColon, cqiServer.getLastCmdLine()));
|
|
| 192 | 192 |
} |
| 193 | 193 |
} else {
|
| 194 | 194 |
if (cqiServer == null || cqiServer instanceof NetCqiServer) |
| 195 |
System.out.println(TXMCoreMessages.connectedToCQP);
|
|
| 195 |
Log.fine(TXMCoreMessages.connectedToCQP);
|
|
| 196 | 196 |
} |
| 197 | 197 |
|
| 198 | 198 |
CorpusManager.setCqiClient(cqiClient); |
| ... | ... | |
| 207 | 207 |
CorpusManager.getCorpusManager().getCorpora(); |
| 208 | 208 |
scount++; |
| 209 | 209 |
if (scount >= 10) {
|
| 210 |
Log.warning(TXMCoreMessages.endOfCQPWaitTest);
|
|
| 210 |
Log.fine(TXMCoreMessages.endOfCQPWaitTest);
|
|
| 211 | 211 |
break; |
| 212 | 212 |
} |
| 213 | 213 |
} while (CorpusManager.getCorpusManager().getCorpora().size() == 0); |
| ... | ... | |
| 233 | 233 |
// } |
| 234 | 234 |
// } |
| 235 | 235 |
|
| 236 |
Log.info(TXMCoreMessages.common_done);
|
|
| 236 |
Log.fine(TXMCoreMessages.common_done);
|
|
| 237 | 237 |
|
| 238 | 238 |
return state; |
| 239 | 239 |
} |
| tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/MemCqiServer.java (revision 1554) | ||
|---|---|---|
| 188 | 188 |
fieldSysPath.set( null, null ); |
| 189 | 189 |
|
| 190 | 190 |
System.loadLibrary("cqpjni"); //$NON-NLS-1$
|
| 191 |
Log.info("cqpjni loaded from dirs: " + path + ".");
|
|
| 191 |
Log.fine("cqpjni loaded from dirs: " + path + ".");
|
|
| 192 | 192 |
isLoaded = true; |
| 193 | 193 |
|
| 194 | 194 |
} catch (Throwable e) {
|
| 195 |
System.err.println("MemCqiServer: Failed to load CQP lib with exception: "+e);
|
|
| 196 |
System.err.println("Tried to load Cqi libs in: "+System.getProperty("java.library.path") + ".");
|
|
| 197 |
System.err.println("Current directory: "+new File(".").getAbsolutePath());
|
|
| 195 |
Log.severe("MemCqiServer: Failed to load CQP lib with exception: "+e);
|
|
| 196 |
Log.severe("Tried to load Cqi libs in: "+System.getProperty("java.library.path") + ".");
|
|
| 197 |
Log.severe("Current directory: "+new File(".").getAbsolutePath());
|
|
| 198 | 198 |
throw new Exception(e); |
| 199 | 199 |
} |
| 200 | 200 |
} |
| ... | ... | |
| 210 | 210 |
cmd.add(pathToRegistry); |
| 211 | 211 |
cmd.addAll(Arrays.asList(additionalOptions.trim().split(" ")));
|
| 212 | 212 |
cmdLine = cmd.toArray(new String[cmd.size()]); |
| 213 |
Log.info("Starting NullSearchEngineServer: " + cmd + " ... ");
|
|
| 213 |
Log.fine("Starting NullSearchEngineServer: " + cmd + " ... ");
|
|
| 214 | 214 |
|
| 215 | 215 |
//try {
|
| 216 | 216 |
isLoaded = start(cmdLine); |
| ... | ... | |
| 218 | 218 |
if (isLoaded) {
|
| 219 | 219 |
//System.out.println(TXMCoreMessages.CqiClient_34); |
| 220 | 220 |
} else {
|
| 221 |
System.out.println("Failed to start SearchEngine in memory mode.");
|
|
| 221 |
Log.severe("Failed to start SearchEngine in memory mode.");
|
|
| 222 | 222 |
} |
| 223 | 223 |
return isLoaded; |
| 224 | 224 |
} |
| tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/NetCqiServer.java (revision 1554) | ||
|---|---|---|
| 261 | 261 |
cmd.add(pathToRegistry); |
| 262 | 262 |
cmd.addAll(Arrays.asList(additionalOptions.trim().split(" ")));
|
| 263 | 263 |
cmdLine = cmd.toArray(new String[cmd.size()]); |
| 264 |
Log.info("Starting NullSearchEngineServer: " + cmd + " ... ");
|
|
| 264 |
Log.fine("Starting NullSearchEngineServer: " + cmd + " ... ");
|
|
| 265 | 265 |
|
| 266 | 266 |
try {
|
| 267 | 267 |
// System.out.println(Messages.bind(Messages.STARTING_SERVER, |
| ... | ... | |
| 285 | 285 |
System.out.println(CQPSearchEngineCoreMessages.cqpserverStdoutColon + line); |
| 286 | 286 |
} |
| 287 | 287 |
} catch (IOException e) {
|
| 288 |
// TODO Auto-generated catch block |
|
| 289 |
Log.warning(Log.toString(e)); |
|
| 288 |
Log.severe(Log.toString(e)); |
|
| 290 | 289 |
} |
| 291 | 290 |
} |
| 292 | 291 |
}; |
| ... | ... | |
| 325 | 324 |
*/ |
| 326 | 325 |
@Override |
| 327 | 326 |
public Boolean stop() {
|
| 328 |
Log.info(SearchEngineCoreMessages.info_stoppingSearchEngine);
|
|
| 327 |
Log.fine(SearchEngineCoreMessages.info_stoppingSearchEngine);
|
|
| 329 | 328 |
|
| 330 | 329 |
try {
|
| 331 | 330 |
process.destroy(); |
| ... | ... | |
| 334 | 333 |
Log.finest(Log.toString(e)); |
| 335 | 334 |
return false; |
| 336 | 335 |
} |
| 337 |
Log.info(SearchEngineCoreMessages.info_searchEngineStopped);
|
|
| 336 |
Log.fine(SearchEngineCoreMessages.info_searchEngineStopped);
|
|
| 338 | 337 |
return true; |
| 339 | 338 |
} |
| 340 | 339 |
|
| tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/NetCqiClient.java (revision 1554) | ||
|---|---|---|
| 739 | 739 |
this.socket.connect(serverAddress); |
| 740 | 740 |
this.streamToServer = new DataOutputStream(this.socket.getOutputStream()); |
| 741 | 741 |
this.streamFromServer = new DataInputStream(this.socket.getInputStream()); |
| 742 |
Log.info(CQPSearchEngineCoreMessages.searchEngineLaunched);
|
|
| 742 |
Log.fine(CQPSearchEngineCoreMessages.searchEngineLaunched);
|
|
| 743 | 743 |
return; |
| 744 | 744 |
} catch (IOException e) {
|
| 745 | 745 |
System.err.print("."); //$NON-NLS-1$
|
| tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/Part.java (revision 1554) | ||
|---|---|---|
| 80 | 80 |
@Override |
| 81 | 81 |
protected boolean _compute() throws Exception {
|
| 82 | 82 |
|
| 83 |
Log.info(NLS.bind(SearchEngineCoreMessages.info_partXCreatedWithQueryZ, this.getName(), this.pQuery));
|
|
| 83 |
Log.fine(NLS.bind(SearchEngineCoreMessages.info_partXCreatedWithQueryZ, this.getName(), this.pQuery));
|
|
| 84 | 84 |
|
| 85 | 85 |
long start = System.currentTimeMillis(); |
| 86 | 86 |
try {
|
| tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/Partition.java (revision 1554) | ||
|---|---|---|
| 134 | 134 |
this.userName = "no_name"; |
| 135 | 135 |
} |
| 136 | 136 |
|
| 137 |
Log.info(NLS.bind(SearchEngineCoreMessages.info_creatingNewPartition, this.getParent(), this.userName));
|
|
| 137 |
Log.fine(NLS.bind(SearchEngineCoreMessages.info_creatingNewPartition, this.getParent(), this.userName));
|
|
| 138 | 138 |
long start = System.currentTimeMillis(); |
| 139 | 139 |
for (int i = 0; i < pQueries.size(); i++) {
|
| 140 | 140 |
String queryS = pQueries.get(i); |
| ... | ... | |
| 149 | 149 |
new Part(this, partName, queryS); |
| 150 | 150 |
} |
| 151 | 151 |
long end = System.currentTimeMillis(); |
| 152 |
Log.info(NLS.bind(SearchEngineCoreMessages.info_partitionCreatedInXMs, this.userName, (end - start)));
|
|
| 152 |
Log.fine(NLS.bind(SearchEngineCoreMessages.info_partitionCreatedInXMs, this.userName, (end - start)));
|
|
| 153 | 153 |
|
| 154 | 154 |
return pQueries.size() > 0; |
| 155 | 155 |
} |
| tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/CQPCorpus.java (revision 1554) | ||
|---|---|---|
| 289 | 289 |
} |
| 290 | 290 |
long end = System.currentTimeMillis(); |
| 291 | 291 |
|
| 292 |
Log.info(TXMCoreMessages.bind(SearchEngineCoreMessages.subcorpusP0CreatedInP1Ms, subcorpusName, (end - start)));
|
|
| 292 |
Log.fine(TXMCoreMessages.bind(SearchEngineCoreMessages.subcorpusP0CreatedInP1Ms, subcorpusName, (end - start)));
|
|
| 293 | 293 |
|
| 294 | 294 |
// if (!registered) subcorpus.registerToParent(); |
| 295 | 295 |
return subcorpus; |
| ... | ... | |
| 448 | 448 |
* the cqi client exception |
| 449 | 449 |
*/ |
| 450 | 450 |
public void dropQueryResult(QueryResult queryResult) throws CqiClientException {
|
| 451 |
Log.info(SearchEngineCoreMessages.deletingQueryResultP0 + queryResult.getName());
|
|
| 451 |
Log.fine(SearchEngineCoreMessages.deletingQueryResultP0 + queryResult.getName());
|
|
| 452 | 452 |
try {
|
| 453 | 453 |
CorpusManager.getCorpusManager().getCqiClient().dropSubCorpus(queryResult.getQualifiedCqpId()); |
| 454 | 454 |
} catch (Exception e) {
|
| tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/MainCorpus.java (revision 1554) | ||
|---|---|---|
| 598 | 598 |
CQPSearchEngine.getCqiClient().dropCorpus(getID()); |
| 599 | 599 |
} |
| 600 | 600 |
} catch (Exception e) {
|
| 601 |
Log.info(e); |
|
| 601 |
Log.fine(e.getLocalizedMessage()); |
|
| 602 |
Log.printStackTrace(e); |
|
| 602 | 603 |
} |
| 603 | 604 |
|
| 604 | 605 |
DeleteDir.deleteDirectory(dataDirectory); |
| tmp/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/PatchCwbRegistry.java (revision 1554) | ||
|---|---|---|
| 125 | 125 |
} |
| 126 | 126 |
corpusEncoding = corpusEncoding.toLowerCase(); |
| 127 | 127 |
|
| 128 |
Log.info(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.updating, corpus, corpusEncoding));
|
|
| 128 |
Log.fine(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.updating, corpus, corpusEncoding));
|
|
| 129 | 129 |
|
| 130 | 130 |
String line = reader.readLine(); |
| 131 | 131 |
while (line != null) {
|
| ... | ... | |
| 163 | 163 |
|
| 164 | 164 |
corpusLanguage = corpusLanguage.toLowerCase(); |
| 165 | 165 |
|
| 166 |
Log.info(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.updatingP0CorpusLanguageToP1, corpus, corpusLanguage));
|
|
| 166 |
Log.fine(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.updatingP0CorpusLanguageToP1, corpus, corpusLanguage));
|
|
| 167 | 167 |
|
| 168 | 168 |
String line = reader.readLine(); |
| 169 | 169 |
while (line != null) {
|
| ... | ... | |
| 210 | 210 |
BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(registryfile), encoding)); |
| 211 | 211 |
OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(temp), encoding); |
| 212 | 212 |
|
| 213 |
Log.info(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.addingAlignmentAttributeToCorpusP0RegistryColonP1, corpus, targetcorpus));
|
|
| 213 |
Log.fine(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.addingAlignmentAttributeToCorpusP0RegistryColonP1, corpus, targetcorpus));
|
|
| 214 | 214 |
|
| 215 | 215 |
String line = reader.readLine(); |
| 216 | 216 |
while (line != null) {
|
| ... | ... | |
| 251 | 251 |
String datapath = ""; //$NON-NLS-1$ |
| 252 | 252 |
|
| 253 | 253 |
if (!registryfile.exists()) {
|
| 254 |
Log.warning(CQPSearchEngineCoreMessages.cantFindRegistryFile);
|
|
| 254 |
Log.fine(CQPSearchEngineCoreMessages.cantFindRegistryFile);
|
|
| 255 | 255 |
return false; |
| 256 | 256 |
} |
| 257 | 257 |
|
| tmp/org.txm.searchengine.cqp.core/src/org/txm/importer/cwb/CwbProcess.java (revision 1554) | ||
|---|---|---|
| 116 | 116 |
*/ |
| 117 | 117 |
protected boolean run(List<String> cmd, boolean monitorOutput, boolean waitFor) throws ServerNotFoundException, InterruptedException, IOException {
|
| 118 | 118 |
|
| 119 |
Log.info(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.startingProcessWithCommandColon, StringUtils.join(cmd, " "))); //$NON-NLS-1$
|
|
| 119 |
Log.fine(TXMCoreMessages.bind(CQPSearchEngineCoreMessages.startingProcessWithCommandColon, StringUtils.join(cmd, " "))); //$NON-NLS-1$
|
|
| 120 | 120 |
|
| 121 | 121 |
//System.out.println(StringUtils.join(cmd, " ")); |
| 122 | 122 |
for (String s : cmd) {
|
| ... | ... | |
| 157 | 157 |
}.start(); |
| 158 | 158 |
|
| 159 | 159 |
if (waitFor) {
|
| 160 |
Log.warning(TXMCoreMessages.bind("Waiting for end of process: {0}...", name));
|
|
| 160 |
Log.fine(TXMCoreMessages.bind("Waiting for end of process: {0}...", name));
|
|
| 161 | 161 |
endProcess(); |
| 162 | 162 |
} |
| 163 | 163 |
|
| tmp/org.txm.statsengine.r.rcp/src/org/txm/rcp/commands/R/Submit.java (revision 1554) | ||
|---|---|---|
| 98 | 98 |
} |
| 99 | 99 |
} |
| 100 | 100 |
} |
| 101 |
catch(Throwable e){org.txm.rcp.utils.Logger.printStackTrace(e);}
|
|
| 101 |
catch(Throwable e){org.txm.utils.logger.Log.printStackTrace(e);}
|
|
| 102 | 102 |
} |
| 103 | 103 |
}); |
| 104 | 104 |
monitor.done(); |
| tmp/org.txm.statsengine.r.rcp/src/org/txm/statsengine/r/rcp/views/RConsole.java (revision 1554) | ||
|---|---|---|
| 107 | 107 |
// err = new PrintStream(pout, true); |
| 108 | 108 |
// |
| 109 | 109 |
// } catch (IOException e) {
|
| 110 |
// org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 110 |
// org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 111 | 111 |
// } |
| 112 | 112 |
// |
| 113 | 113 |
// reader = new Thread(this); |
| ... | ... | |
| 231 | 231 |
public void connectToRWorkspace() {
|
| 232 | 232 |
if (!readyToDisplay && Toolbox.getEngineManager(EngineType.STATS).isCurrentEngineAvailable()) {
|
| 233 | 233 |
RWorkspace rw = null; |
| 234 |
Log.warning(RUIMessages.connectingRConsoleToRWorkspaceStdoutAndStderr);
|
|
| 234 |
Log.fine(RUIMessages.connectingRConsoleToRWorkspaceStdoutAndStderr);
|
|
| 235 | 235 |
try {
|
| 236 | 236 |
rw = RWorkspace.getRWorkspaceInstance(); |
| 237 | 237 |
if (rw == null) return; |
| tmp/org.txm.statsengine.r.rcp/src/org/txm/statsengine/r/rcp/views/RVariablesView.java (revision 1554) | ||
|---|---|---|
| 249 | 249 |
EditFile.openfile(tmp.getAbsolutePath()); |
| 250 | 250 |
} catch (Exception e) {
|
| 251 | 251 |
// TODO Auto-generated catch block |
| 252 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 252 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 253 | 253 |
} |
| 254 | 254 |
} |
| 255 | 255 |
|
| tmp/org.txm.statsengine.r.rcp/src/org/txm/statsengine/r/rcp/handlers/SendToRCommand.java (revision 1554) | ||
|---|---|---|
| 87 | 87 |
|
| 88 | 88 |
} catch (Exception e) {
|
| 89 | 89 |
System.out.println("Failed to send to R: "+o);
|
| 90 |
org.txm.rcp.utils.Logger.printStackTrace(e);
|
|
| 90 |
org.txm.utils.logger.Log.printStackTrace(e);
|
|
| 91 | 91 |
} |
| 92 | 92 |
} |
| 93 | 93 |
} |
| tmp/org.txm.statsengine.r.rcp/src/org/txm/statsengine/r/rcp/handlers/CheckRPackages.java (revision 1554) | ||
|---|---|---|
| 128 | 128 |
|
| 129 | 129 |
try {
|
| 130 | 130 |
rw.eval("library(\""+p+"\")"); //$NON-NLS-1$ //$NON-NLS-2$
|
| 131 |
System.out.println(TXMCoreMessages.bind(RUIMessages.installedSuccessfully, p));
|
|
| 131 |
Log.info(TXMCoreMessages.bind(RUIMessages.installedSuccessfully, p));
|
|
| 132 | 132 |
} catch (Exception e) {
|
| 133 | 133 |
Log.printStackTrace(e); |
| 134 | 134 |
System.out.println(TXMCoreMessages.bind("The '{0}' package was not installed. Please install it manually:\n * Run R\n * and execute 'install.packages(\"{1}\"')", p, p));
|
| tmp/org.txm.annotation.kr.rcp/src/org/txm/annotation/kr/rcp/concordance/KRAnnotation.java (revision 1554) | ||
|---|---|---|
| 206 | 206 |
|
| 207 | 207 |
List<KnowledgeRepository> krs = InitializeKnowledgeRepository.get(corpus.getMainCorpus()); |
| 208 | 208 |
typesList.clear(); |
| 209 |
Log.info("Corpus KRs: "+krs); //$NON-NLS-1$
|
|
| 209 |
Log.fine("Corpus KRs: "+krs); //$NON-NLS-1$
|
|
| 210 | 210 |
|
| 211 | 211 |
for (KnowledgeRepository kr : krs) {
|
| 212 | 212 |
if (kr == null) continue; |
| 213 | 213 |
|
| 214 | 214 |
currentKnowledgeRepository = kr; |
| 215 |
Log.info(" KR: "+kr); //$NON-NLS-1$
|
|
| 215 |
Log.fine(" KR: "+kr); //$NON-NLS-1$
|
|
| 216 | 216 |
List<AnnotationType> krtypes = kr.getAllAnnotationTypes(); |
| 217 | 217 |
|
| 218 | 218 |
typesList.addAll(krtypes); |
| 219 | 219 |
|
| 220 |
Log.info(NLS.bind(KRAnnotationUIMessages.availableAnnotationTypesColonP0, typesList));
|
|
| 220 |
Log.fine(NLS.bind(KRAnnotationUIMessages.availableAnnotationTypesColonP0, typesList));
|
|
| 221 | 221 |
break; |
| 222 | 222 |
} |
| 223 | 223 |
|
| ... | ... | |
| 735 | 735 |
}); |
| 736 | 736 |
|
| 737 | 737 |
// get value from combo text value |
| 738 |
Log.warning(NLS.bind(KRAnnotationUIMessages.lookingForTypedValueWithIdEqualsP0, svalue));
|
|
| 738 |
Log.fine(NLS.bind(KRAnnotationUIMessages.lookingForTypedValueWithIdEqualsP0, svalue));
|
|
| 739 | 739 |
final KnowledgeRepository kr = KnowledgeRepositoryManager.getKnowledgeRepository(type.getKnowledgeRepository()); |
| 740 | 740 |
value_to_add = kr.getValue(type, svalue); |
| 741 | 741 |
|
| tmp/org.txm.annotation.kr.rcp/src/org/txm/annotation/kr/rcp/concordance/WordAnnotationToolbar.java (revision 1554) | ||
|---|---|---|
| 183 | 183 |
}); |
| 184 | 184 |
|
| 185 | 185 |
// get value from combo text value |
| 186 |
Log.warning(NLS.bind(KRAnnotationUIMessages.lookingForTypedValueWithIdEqualsP0, svalue));
|
|
| 186 |
Log.fine(NLS.bind(KRAnnotationUIMessages.lookingForTypedValueWithIdEqualsP0, svalue));
|
|
| 187 | 187 |
final KnowledgeRepository kr = KnowledgeRepositoryManager.getKnowledgeRepository(type.getKnowledgeRepository()); |
| 188 | 188 |
value_to_add = kr.getValue(type, svalue); |
| 189 | 189 |
|
| ... | ... | |
| 204 | 204 |
return; |
| 205 | 205 |
} |
Formats disponibles : Unified diff