Revision 1386

tmp/org.txm.rcp/OSGI-INF/l10n/bundle.properties (revision 1386)
461 461
page.name.6  = \ TXM
462 462
page.name.8  = NLP
463 463

  
464
perspective.name = C
464
perspective.name = Open the Corpus perspective
465 465

  
466 466
product.description = TXM desktop application
467 467
product.name        = TXM
tmp/org.txm.rcp/OSGI-INF/l10n/bundle_ru.properties (revision 1386)
345 345
page.name.6  = \ TXM
346 346
page.name.8  = NLP
347 347

  
348
perspective.name = Open the Corpus perspective
349

  
348 350
product.name = TXM
349 351

  
350 352
view.name   = \u00D0\u009A\u00D0\u00BE\u00D1\u0080\u00D0\u00BF\u00D1\u0083\u00D1\u0081
tmp/org.txm.rcp/OSGI-INF/l10n/bundle_fr.properties (revision 1386)
160 160
command.label.53        = Signaler un bug
161 161
command.label.54        = Proposer une am\u00E9lioration
162 162
command.label.55        = S'inscrire \u00E0 la liste de diffusion txm-users
163
command.label.56        = T?l?chargements TXM
163
command.label.56        = T\u00E9l\u00E9chargements TXM
164 164
command.label.57        = Coller
165 165
command.label.58        = Exporter les donn\u00E9es
166 166
command.label.59        = Red\u00E9marrer les moteurs
......
486 486
page.name.6  = \ TXM
487 487
page.name.8  = TAL
488 488

  
489
perspective.name = C
489
perspective.name = Ouvrir la perspective Corpus
490 490

  
491 491
product.name   = TXM
492 492
product.name.0 = TXM
tmp/org.txm.rcp/src/main/java/org/txm/rcp/preferences/AdvancedPreferencePage.java (revision 1386)
42 42
import org.txm.rcp.messages.TXMUIMessages;
43 43
import org.txm.rcp.views.corpora.CorporaView;
44 44
import org.txm.rcp.views.fileexplorer.MacroExplorer;
45
import org.txm.utils.logger.Log;
45 46

  
46 47
/**
47 48
 * Advanced preferences page.
......
124 125
		try {
125 126
			MacroExplorer.refresh();
126 127
			CorporaView.refresh();
128
			Log.log_stacktrace_boolean = TBXPreferences.getInstance().getBoolean(TBXPreferences.LOG_STACKTRACE);
127 129
			
128 130
			// update repositories
129 131
			IHandlerService service = (IHandlerService) PlatformUI.getWorkbench().getService(IHandlerService.class);
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/editors/SpecificitiesEditor.java (revision 1386)
192 192
		try {
193 193

  
194 194
			
195
			if(!update)	{
195
			if(!update && this.getResult().hasBeenComputedOnce())	{
196 196
				String[] partNames = null;
197 197
				int[] partSize = null;
198 198
				try {
tmp/org.txm.utils/src/org/txm/utils/logger/Log.java (revision 1386)
286 286
	}
287 287
	
288 288
	/**
289
	 * Log an info message using the default flag
290
	 * 
291
	 * @param message
292
	 */
293
	public static void info(Throwable t) {
294
		info(t.getLocalizedMessage(), STANDARD);
295
		printStackTrace(t);
296
	}
297
	
298
	/**
289 299
	 * Log an info message
290 300
	 * 
291 301
	 * @param message
......
339 349
		txm.fine(message);
340 350
	}
341 351

  
352
	
353
	public static boolean log_stacktrace_boolean = false;
354
	
342 355
	/**
343
	 * Log a stacktrace
356
	 * Log a stacktrace if the 'Log.log_stacktrace_boolean' is set to true
344 357
	 * 
345 358
	 * @param e the Throwable
346 359
	 */
347
	private static String log_stacktrace_boolean = null;
348
	
349
	
350 360
	public static void printStackTrace(Throwable e) {
351
		//FIXME: read utils preferences
352
		// to do that we must set a preference initialzer in org.txm.utils plugin
353
		// we also may create the own plugin org.txm.log
354
		log_stacktrace_boolean = "true";//Toolbox.getParam(Toolbox.LOG_STACKTRACE);
355
		if (log_stacktrace_boolean == null || Boolean.parseBoolean(log_stacktrace_boolean) == true) {
361
		if (log_stacktrace_boolean) {
356 362
			e.printStackTrace();
357 363
		}
358 364
	}
tmp/org.txm.core/src/java/org/txm/Toolbox.java (revision 1386)
240 240
			Log.setLevel(Level.parse(getPreference(TBXPreferences.LOG_LEVEL)));
241 241
			Log.setPrintInConsole(TBXPreferences.getInstance().getBoolean(TBXPreferences.ADD_TECH_LOGS));
242 242

  
243
			Log.log_stacktrace_boolean = TBXPreferences.getInstance().getBoolean(TBXPreferences.LOG_STACKTRACE);
244
			
243 245
			if (!getPreference(TBXPreferences.LOG_DIR).isEmpty()) {
244 246
				Log.setPrintInFile(TBXPreferences.getInstance().getBoolean(TBXPreferences.LOG_IN_FILE), new File(getPreference(TBXPreferences.LOG_DIR)));
245 247
			} else {
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/MainCorpus.java (revision 1386)
51 51
import org.txm.searchengine.cqp.corpus.query.CQLQuery;
52 52
import org.txm.searchengine.cqp.serverException.CqiServerError;
53 53
import org.txm.utils.DeleteDir;
54
import org.txm.utils.logger.Log;
54 55
import org.w3c.dom.Element;
55 56

  
56 57
/**
......
578 579
				CQPSearchEngine.getCqiClient().dropCorpus(getID());
579 580
			}
580 581
		} catch (Exception e) {
581
			// TODO Auto-generated catch block
582
			e.printStackTrace();
582
			Log.info(e);
583 583
		}
584 584

  
585 585
		DeleteDir.deleteDirectory(dataDirectory);
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/query/CQLQuery.java (revision 1386)
332 332
	 * @return the string
333 333
	 */
334 334
	public static String addBackSlash(String squery) {
335
		if ("\"".equals(squery)) return "\"\\\"\""; //$NON-NLS-1$ //$NON-NLS-2$
335
		if ("\"".equals(squery)) return "\\\""; //$NON-NLS-1$ //$NON-NLS-2$
336 336
		StringBuffer buff = new StringBuffer();
337 337
		//for(char c : chars.)
338 338
		for(int i = 0 ; i < squery.length() ; i++) {
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/Subcorpus.java (revision 1386)
503 503
	@Override
504 504
	public void clean() {
505 505
		try {
506
			AbstractCqiClient CQI = CorpusManager.getCorpusManager().getCqiClient();
506 507
			if (CQPSearchEngine.isInitialized()) {
507
				CorpusManager.getCorpusManager().getCqiClient().dropSubCorpus(this.getQualifiedCqpId());
508
				CQI.dropSubCorpus(this.getQualifiedCqpId());
508 509
			}
509 510
		} catch (Exception e) {
510
			e.printStackTrace();
511
			Log.info(e.getLocalizedMessage());
512
			Log.printStackTrace(e);
511 513
		}
512 514
	}
513 515

  
tmp/org.txm.statsengine.r.rcp/OSGI-INF/l10n/bundle_ru.properties (revision 1386)
16 16

  
17 17
page.name = \u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F \u043C\u0430\u0448\u0438\u043D\u0430
18 18

  
19
perspective.name.0 = Open the R perspective
20

  
19 21
view.name.5 = \u041F\u0435\u0440\u0435\u043C\u0435\u043D\u043D\u044B\u0435 R
20 22
view.name.6 = \u041A\u043E\u043D\u0441\u043E\u043B\u044C R
tmp/org.txm.statsengine.r.rcp/OSGI-INF/l10n/bundle_fr.properties (revision 1386)
17 17

  
18 18
page.name = Moteur de Statistiques
19 19

  
20
perspective.name.0 = Ouvrir la perspective R
21

  
20 22
view.name.5 = Variables R
21 23
view.name.6 = Console R
tmp/org.txm.statsengine.r.rcp/OSGI-INF/l10n/bundle.properties (revision 1386)
1 1

  
2
Bundle-Name = R Statistics Engine RCP
3

  
2 4
command.label.129 = Copy
3 5
command.label.141 = Graphics shortcuts
4 6
command.label.142 = New session
......
13 15

  
14 16
decorator.label = R Decorator
15 17

  
18
extension-point.name = SendToRCommand
19

  
16 20
menu.label.11 = R
17 21

  
18 22
page.name = Statistics Engine
19 23

  
20
perspective.name.0 = R
24
perspective.name.0 = Open the R perspective
21 25

  
22 26
view.name.5 = R variables
23 27
view.name.6 = R Console
24

  
25
extension-point.name = SendToRCommand
26
Bundle-Name = R Statistics Engine RCP
tmp/org.txm.specificities.core/src/org/txm/specificities/core/functions/Specificities.java (revision 1386)
192 192
			if (this.lexicalTable.getProperty() != null) {
193 193
				sname = this.lexicalTable.getProperty().getName();
194 194
			} else {
195
				sname = this.lexicalTable.getParent().getName();
195
				sname = this.lexicalTable.getParent().toString();
196 196
			}
197 197
			
198 198
			if (this.lexicalTable.getPartition() != null) {
199 199
				init(symbol, specIndex, sname); 
200 200
			} else {
201
				init(rSpecificities.getSymbol(), specIndex, sname);
201
				init(rSpecificities.getSymbol(), specIndex, sname); //$NON-NLS-1$
202 202
			}
203 203
		}
204 204
		

Also available in: Unified diff