Révision 2330

tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 2330)
2361 2361

  
2362 2362
	/***
2363 2363
	 * Checks if the result must be persisted according to the persistence global preference or the user persistable state.
2364
	 * @return
2364
	 * @return true if the result as been internally marked as persistable (eg. Corpora, Partition) or if the user has marked the result 
2365 2365
	 */
2366 2366
	public boolean mustBePersisted()	{
2367 2367
		return this.internalPersistable || this.userPersistable;
......
2372 2372
	 * @return the array of extensions to show in the FileDialog SWT widget
2373 2373
	 */
2374 2374
	@Deprecated
2375
	// FIXME: should be moved in an exporter extension
2375
	// FIXME: SJ: should be moved in an exporter extension
2376 2376
	public String[] getExportTXTExtensions() {
2377 2377
		return new String[] { "*.csv" };
2378 2378
	}
......
2422 2422
	}
2423 2423

  
2424 2424
	@Deprecated
2425
	// FIXME: should be moved in an exporter extension
2425
	// FIXME: SJ: should be moved in an exporter extension
2426 2426
	public abstract boolean toTxt(File outfile, String encoding, String colseparator, String txtseparator) throws Exception;
2427 2427

  
2428 2428

  
......
2509 2509
	/**
2510 2510
	 * Gets the result type. Should be localized (eg. CA => AFC, Word cloud => Nuage de mots).
2511 2511
	 * This method can be used for logging or UI.
2512
	 * This method can also be used to sort the result by type (alphanumeric order).
2512
	 * This method can also be used to sort the result by type (alphanumeric order) according to the current language.
2513 2513
	 * @return
2514 2514
	 */
2515 2515
	public abstract String getResultType();
......
2538 2538
	 * Sets a boolean state to define if the result has already been computed at least once or not. 
2539 2539
	 * @param hasBeenComputedOnce the hasBeenComputedOnce to set
2540 2540
	 */
2541
	// FIXME: SJ: became useless
2542
	@Deprecated
2541 2543
	public void setHasBeenComputedOnce(boolean hasBeenComputedOnce) {
2542 2544
		this.hasBeenComputedOnce = hasBeenComputedOnce;
2543 2545
	}
......
2612 2614
			}
2613 2615
		}
2614 2616
		catch (Exception e) {
2615
			// TODO Auto-generated catch block
2616 2617
			e.printStackTrace();
2617 2618
		}
2618
		// Debug
2619
		// Log.finest("TXMResult.setUserPersistable(): " + userPersistable);
2620 2619
	}
2621 2620

  
2622 2621
	/**
......
2676 2675
	/**
2677 2676
	 * Generic toString() method for TXMResult.
2678 2677
	 */
2678
	@Override
2679 2679
	public String toString() {
2680 2680
		if (userName != null && !userName.isEmpty()) {
2681 2681
			return userName;

Formats disponibles : Unified diff