Révision 2612
tmp/org.txm.partition.core/src/org/txm/partition/core/messages/messages.properties (revision 2612) | ||
---|---|---|
6 | 6 |
|
7 | 7 |
cantCreateDimensionsPartitionChartFileChartsEngineColonP0 = ** Can not create partition size chart file (charts engine {0}) |
8 | 8 |
|
9 |
chart_title_dimensionsOfTheP0PartitionInTheP1Corpus = Dimensions of the {0} partition in the {1} corpus... |
|
10 |
|
|
9 | 11 |
dimensionsColonP0 = Dimensions: {0} |
10 | 12 |
|
11 |
dimensionsOfTheP0PartitionInTheP1Corpus = Dimensions of the {0} partition in the {1} corpus...
|
|
13 |
info_dimensionsOfTheP0PartitionInTheP1Corpus = Dimensions of the {0} partition in the {1} corpus
|
|
12 | 14 |
|
13 | 15 |
numberOfWords = Number of words |
14 | 16 |
|
tmp/org.txm.partition.core/src/org/txm/partition/core/messages/messages_fr.properties (revision 2612) | ||
---|---|---|
6 | 6 |
|
7 | 7 |
cantCreateDimensionsPartitionChartFileChartsEngineColonP0 = ** Impossible de créer le fichier du graphique de dimensions de partition (moteur de graphiques {0}) |
8 | 8 |
|
9 |
chart_title_dimensionsOfTheP0PartitionInTheP1Corpus = Dimensions de la partition {0} dans le corpus {1}... |
|
10 |
|
|
9 | 11 |
dimensionsColonP0 = Dimensions : {0} |
10 | 12 |
|
11 |
dimensionsOfTheP0PartitionInTheP1Corpus = Dimensions de la partition {0} dans le corpus {1}...
|
|
13 |
info_dimensionsOfTheP0PartitionInTheP1Corpus = Dimensions de la partition {0} dans le corpus {1}
|
|
12 | 14 |
|
13 | 15 |
numberOfWords = Nombre de mots |
14 | 16 |
|
tmp/org.txm.partition.core/src/org/txm/partition/core/messages/PartitionCoreMessages.java (revision 2612) | ||
---|---|---|
12 | 12 |
* |
13 | 13 |
*/ |
14 | 14 |
public class PartitionCoreMessages extends NLS { |
15 |
|
|
15 |
|
|
16 | 16 |
private static final String BUNDLE_NAME = "org.txm.partition.core.messages.messages"; //$NON-NLS-1$ |
17 | 17 |
|
18 | 18 |
public static String RESULT_TYPE; |
19 | 19 |
|
20 |
public static String cantCreateDimensionsPartitionChartFileChartsEngineColonP0; |
|
21 |
public static String sortedBySize; |
|
22 |
public static String dimensionsOfTheP0PartitionInTheP1Corpus; |
|
23 |
public static String parts; |
|
24 |
public static String t; |
|
25 |
public static String part; |
|
26 |
public static String numberOfWords; |
|
20 |
public static String cantCreateDimensionsPartitionChartFileChartsEngineColonP0; |
|
21 |
|
|
22 |
public static String sortedBySize; |
|
23 |
|
|
24 |
public static String info_dimensionsOfTheP0PartitionInTheP1Corpus; |
|
25 |
|
|
26 |
public static String chart_title_dimensionsOfTheP0PartitionInTheP1Corpus; |
|
27 |
|
|
28 |
public static String parts; |
|
29 |
|
|
30 |
public static String t; |
|
31 |
|
|
32 |
public static String part; |
|
33 |
|
|
34 |
public static String numberOfWords; |
|
35 |
|
|
27 | 36 |
public static String dimensionsColonP0; |
28 | 37 |
|
29 | 38 |
|
... | ... | |
31 | 40 |
// initialize resource bundle |
32 | 41 |
Utf8NLS.initializeMessages(BUNDLE_NAME, PartitionCoreMessages.class); |
33 | 42 |
} |
34 |
|
|
35 |
private PartitionCoreMessages() { |
|
36 |
} |
|
43 |
|
|
44 |
private PartitionCoreMessages() {} |
|
37 | 45 |
} |
tmp/org.txm.partition.core/src/org/txm/partition/core/functions/PartitionDimensions.java (revision 2612) | ||
---|---|---|
88 | 88 |
|
89 | 89 |
@Override |
90 | 90 |
public String getComputingStartMessage() { |
91 |
return TXMCoreMessages.bind(PartitionCoreMessages.dimensionsOfTheP0PartitionInTheP1Corpus, this.getParent().getSimpleName(), this.getCorpus()); |
|
91 |
return TXMCoreMessages.bind(PartitionCoreMessages.info_dimensionsOfTheP0PartitionInTheP1Corpus, this.getParent().getSimpleName(), this.getCorpus());
|
|
92 | 92 |
} |
93 | 93 |
|
94 | 94 |
|
tmp/org.txm.partition.core/src/org/txm/partition/core/chartsengine/base/Utils.java (revision 2612) | ||
---|---|---|
4 | 4 |
import org.txm.partition.core.messages.PartitionCoreMessages; |
5 | 5 |
|
6 | 6 |
/** |
7 |
* Utility class for partition dimensions bar chart.
|
|
7 |
* Utility class for partition dimensions charts.
|
|
8 | 8 |
* |
9 | 9 |
* @author sjacquot |
10 | 10 |
* |
11 | 11 |
*/ |
12 | 12 |
public abstract class Utils { |
13 |
|
|
14 |
|
|
13 |
|
|
14 |
|
|
15 | 15 |
/** |
16 | 16 |
* Creates a string title, shared by charts engine implementations, for the partition dimensions chart from the specified result. |
17 |
* |
|
17 | 18 |
* @param the partition result |
18 | 19 |
* @param sortPartsBySize the sort parts by size state |
19 | 20 |
* @param displayPartsCountInTitle display or not the parts count in chart title |
20 | 21 |
* @return the title string |
21 | 22 |
*/ |
22 |
public static String createPartitionDimensionsChartTitle(PartitionDimensions partitionDimensions) { |
|
23 |
return PartitionCoreMessages.bind(PartitionCoreMessages.dimensionsOfTheP0PartitionInTheP1Corpus, partitionDimensions.getParent().getSimpleName(), partitionDimensions.getCorpus().getSimpleName()); |
|
23 |
public static String createPartitionDimensionsChartTitle(PartitionDimensions partitionDimensions) { |
|
24 |
return PartitionCoreMessages.bind(PartitionCoreMessages.chart_title_dimensionsOfTheP0PartitionInTheP1Corpus, partitionDimensions.getParent().getSimpleName(), partitionDimensions.getCorpus() |
|
25 |
.getSimpleName()); |
|
24 | 26 |
} |
25 |
|
|
27 |
|
|
26 | 28 |
/** |
27 | 29 |
* Creates a string subtitle, shared by charts engine implementations, for the partition dimensions chart from the specified result. |
30 |
* |
|
28 | 31 |
* @param partitionDimensions the partition result |
29 | 32 |
* @param sortPartsBySize the sort parts by size state |
30 | 33 |
* @param displayPartsCountInTitle displayPartsCountInTitle display or not the parts count in chart title |
31 | 34 |
* @return the subtitle string |
32 | 35 |
*/ |
33 |
public static String createPartitionDimensionsChartSubtitle(PartitionDimensions partitionDimensions, boolean sortPartsBySize, boolean displayPartsCountInTitle) {
|
|
36 |
public static String createPartitionDimensionsChartSubtitle(PartitionDimensions partitionDimensions, boolean sortPartsBySize, boolean displayPartsCountInTitle) {
|
|
34 | 37 |
|
35 | 38 |
String subtitle = ""; //$NON-NLS-1$ |
36 | 39 |
|
37 |
if(displayPartsCountInTitle) {
|
|
40 |
if (displayPartsCountInTitle) {
|
|
38 | 41 |
subtitle += partitionDimensions.getPartsCount() + " " + PartitionCoreMessages.parts; //$NON-NLS-1$ |
39 | 42 |
} |
40 |
|
|
41 |
if(displayPartsCountInTitle && sortPartsBySize) { |
|
43 |
|
|
44 |
if (displayPartsCountInTitle && sortPartsBySize) {
|
|
42 | 45 |
subtitle += " "; //$NON-NLS-1$ |
43 | 46 |
} |
44 | 47 |
|
45 |
if(sortPartsBySize) { |
|
48 |
if (sortPartsBySize) {
|
|
46 | 49 |
subtitle += PartitionCoreMessages.sortedBySize; |
47 | 50 |
} |
48 |
|
|
51 |
|
|
49 | 52 |
return subtitle; |
50 | 53 |
|
51 | 54 |
} |
52 |
} |
|
55 |
} |
Formats disponibles : Unified diff