Révision 1919
tmp/org.txm.properties.core/src/org/txm/properties/core/functions/Properties.java (revision 1919) | ||
---|---|---|
287 | 287 |
"<body>\n"); //$NON-NLS-1$ |
288 | 288 |
buff.append("<h2 style'font-family:\"Arial\";'>" + PropertiesCoreMessages.descriptionOf + this.corpus.getName() + " (id=" + this.corpus.getID() + ")</h2>\n"); //$NON-NLS-2$ //$NON-NLS-1$ |
289 | 289 |
|
290 |
if (this.corpus.getCreationDate() != null) { |
|
291 |
buff.append(NLS.bind(PropertiesCoreMessages.createdTheP0, TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(this.corpus.getCreationDate()))); |
|
290 |
Project projet = this.corpus.getProject(); |
|
291 |
if (projet.getCreationDate() != null) { |
|
292 |
buff.append(NLS.bind(PropertiesCoreMessages.createdTheP0, TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(projet.getCreationDate()))); |
|
292 | 293 |
} |
293 |
if (this.corpus.getLastComputingDate() != null) {
|
|
294 |
buff.append(NLS.bind(PropertiesCoreMessages.updatedTheP0, TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(this.corpus.getLastComputingDate())));
|
|
294 |
if (projet.getLastComputingDate() != null) {
|
|
295 |
buff.append(NLS.bind(PropertiesCoreMessages.updatedTheP0, TXMResult.PRETTY_LOCALIZED_TIME_FORMAT.format(projet.getLastComputingDate())));
|
|
295 | 296 |
} |
296 | 297 |
|
297 |
if (corpus.getDescription() != null && corpus.getDescription().length() > 0) {
|
|
298 |
buff.append("<p><h3>Description</h3>" + corpus.getDescription() + "</p>"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
298 |
if (projet.getDescription() != null && projet.getDescription().length() > 0) {
|
|
299 |
buff.append("<p><h3>Description</h3>" + projet.getDescription() + "</p>"); //$NON-NLS-1$ //$NON-NLS-2$
|
|
299 | 300 |
} |
300 | 301 |
|
301 | 302 |
buff.append("<h3 style'font-family:\"Arial\";'>" + PropertiesCoreMessages.generalStatistics_2 + "</h3>\n"); //$NON-NLS-1$ //$NON-NLS-2$ |
tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 1919) | ||
---|---|---|
68 | 68 |
*/ |
69 | 69 |
public abstract class TXMResult implements Cloneable, IProgressMonitor, Comparable<TXMResult> { |
70 | 70 |
|
71 |
public static final DateFormat ID_TIME_FORMAT = new SimpleDateFormat("YYYYMMdd_HHmmssSSS");
|
|
72 |
public static final DateFormat PRETTY_TIME_FORMAT = new SimpleDateFormat("YYYY/MM/dd HH:mm:ss");
|
|
71 |
public static final DateFormat ID_TIME_FORMAT = new SimpleDateFormat("yyyyMMdd_HHmmssSSS");
|
|
72 |
public static final DateFormat PRETTY_TIME_FORMAT = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
|
73 | 73 |
public static final DateFormat PRETTY_LOCALIZED_TIME_FORMAT = new SimpleDateFormat("dd MMMM yyyy, HH'h'mm", Locale.getDefault()); |
74 | 74 |
public static final String UUID_PREFIX = "txm_res_"; //$NON-NLS-1$ |
75 | 75 |
public static final Pattern FILE_NAME_PATTERN = Pattern.compile("[^a-zA-Z0-9\\.-_]+"); //$NON-NLS-1$ |
76 |
public static final String UNDERSCORE = "_"; |
|
76 |
public static final String UNDERSCORE = "_"; //$NON-NLS-1$
|
|
77 | 77 |
|
78 | 78 |
/** |
79 | 79 |
* Results counter to create unique ids. |
Formats disponibles : Unified diff