Révision 1350
tmp/org.txm.ca.core/src/org/txm/ca/core/statsengine/r/functions/CA.java (revision 1350) | ||
---|---|---|
29 | 29 |
|
30 | 30 |
import java.io.File; |
31 | 31 |
|
32 |
import org.eclipse.osgi.util.NLS; |
|
32 | 33 |
import org.rosuda.REngine.REXP; |
33 | 34 |
import org.txm.ca.core.messages.CACoreMessages; |
34 | 35 |
import org.txm.lexicaltable.core.statsengine.data.ILexicalTable; |
... | ... | |
208 | 209 |
coldist = RWorkspace.toDouble(sv); |
209 | 210 |
// Arrays.sort(coldist); |
210 | 211 |
} catch (RWorkspaceException e) { |
211 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
212 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
212 | 213 |
} |
213 | 214 |
} |
214 | 215 |
return coldist; |
... | ... | |
228 | 229 |
colinertia = RWorkspace.toDouble(sv); |
229 | 230 |
// Arrays.sort(colinertia); |
230 | 231 |
} catch (RWorkspaceException e) { |
231 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
232 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
232 | 233 |
} |
233 | 234 |
} |
234 | 235 |
return colinertia; |
... | ... | |
248 | 249 |
colmass = RWorkspace.toDouble(sv); |
249 | 250 |
// Arrays.sort(colmass); |
250 | 251 |
} catch (RWorkspaceException e) { |
251 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
252 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
252 | 253 |
} |
253 | 254 |
} |
254 | 255 |
return colmass; |
... | ... | |
352 | 353 |
rowdist = RWorkspace.toDouble(sv); |
353 | 354 |
// Arrays.sort(rowdist); |
354 | 355 |
} catch (RWorkspaceException e) { |
355 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
356 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
356 | 357 |
} |
357 | 358 |
} |
358 | 359 |
return rowdist; |
... | ... | |
372 | 373 |
rowinertia = RWorkspace.toDouble(sv); |
373 | 374 |
// Arrays.sort(rowinertia); |
374 | 375 |
} catch (RWorkspaceException e) { |
375 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
376 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
376 | 377 |
} |
377 | 378 |
} |
378 | 379 |
return rowinertia; |
... | ... | |
392 | 393 |
rowmass = RWorkspace.toDouble(sv); |
393 | 394 |
// Arrays.sort(rowmass); |
394 | 395 |
} catch (RWorkspaceException e) { |
395 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
396 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
396 | 397 |
} |
397 | 398 |
} |
398 | 399 |
return rowmass; |
... | ... | |
412 | 413 |
singularValues = RWorkspace.toDouble(sv); |
413 | 414 |
// Arrays.sort(singularValues); |
414 | 415 |
} catch (RWorkspaceException e) { |
415 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
416 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
416 | 417 |
} |
417 | 418 |
} |
418 | 419 |
return singularValues; |
... | ... | |
451 | 452 |
try { |
452 | 453 |
rw.voidEval("library(ca)"); //$NON-NLS-1$ |
453 | 454 |
} catch (RWorkspaceException e) { |
454 |
System.out.println(CACoreMessages.error_canNotLoadCALibrary + e);
|
|
455 |
System.out.println(NLS.bind(CACoreMessages.error_canNotLoadCALibraryP0, e));
|
|
455 | 456 |
return false; |
456 | 457 |
} |
457 | 458 |
return true; |
... | ... | |
502 | 503 |
rw.callFunctionAndAffect( |
503 | 504 |
"ca", new String[] { table.getSymbol() }, symbol); //$NON-NLS-1$ |
504 | 505 |
} catch (RWorkspaceException e) { |
505 |
throw new StatException(CACoreMessages.error_errorWhileComputingCA + e.getMessage(), e);
|
|
506 |
throw new StatException(NLS.bind(CACoreMessages.error_errorWhileComputingCAP0, e.getMessage()), e);
|
|
506 | 507 |
} |
507 | 508 |
} |
508 | 509 |
} |
tmp/org.txm.ca.core/src/org/txm/ca/core/statsengine/r/functions/FactoMineRCA.java (revision 1350) | ||
---|---|---|
30 | 30 |
import java.io.File; |
31 | 31 |
import java.util.Arrays; |
32 | 32 |
|
33 |
import org.eclipse.osgi.util.NLS; |
|
33 | 34 |
import org.rosuda.REngine.REXP; |
34 | 35 |
import org.rosuda.REngine.REXPMismatchException; |
35 | 36 |
import org.txm.ca.core.messages.CACoreMessages; |
... | ... | |
117 | 118 |
//rw.callFunctionAndAffect("FactoMineR:CA", new String[] { table.getSymbol() }, symbol); //$NON-NLS-1$ |
118 | 119 |
rw.eval(symbol+" <- FactoMineR::CA("+table.getSymbol()+", graph=FALSE)"); //$NON-NLS-1$ //$NON-NLS-2$ |
119 | 120 |
} catch (RWorkspaceException e) { |
120 |
throw new StatException(CACoreMessages.error_errorWhileComputingCA + e.getMessage(), e);
|
|
121 |
throw new StatException(NLS.bind(CACoreMessages.error_errorWhileComputingCAP0, e.getMessage()), e);
|
|
121 | 122 |
} |
122 | 123 |
} |
123 | 124 |
|
... | ... | |
132 | 133 |
colcontrib = sv.asDoubleMatrix(); |
133 | 134 |
// Arrays.sort(rowdist); |
134 | 135 |
} catch (RWorkspaceException e) { |
135 |
throw new StatException(CACoreMessages.error_failedToGetContributionColumn + e.getMessage(), e);
|
|
136 |
throw new StatException(NLS.bind(CACoreMessages.error_failedToGetContributionColumnP0, e.getMessage()), e);
|
|
136 | 137 |
} catch (Exception e) { |
137 | 138 |
// TODO Auto-generated catch block |
138 | 139 |
org.txm.utils.logger.Log.printStackTrace(e); |
... | ... | |
152 | 153 |
colcos2 = sv.asDoubleMatrix(); |
153 | 154 |
// Arrays.sort(rowdist); |
154 | 155 |
} catch (RWorkspaceException e) { |
155 |
throw new StatException(CACoreMessages.error_failedToGetCos2Column + e.getMessage(), e);
|
|
156 |
throw new StatException(NLS.bind(CACoreMessages.error_failedToGetCos2ColumnP0, e.getMessage()), e);
|
|
156 | 157 |
} catch (Exception e) { |
157 | 158 |
// TODO Auto-generated catch block |
158 | 159 |
org.txm.utils.logger.Log.printStackTrace(e); |
... | ... | |
238 | 239 |
colinertia = RWorkspace.toDouble(sv); |
239 | 240 |
// Arrays.sort(colinertia); |
240 | 241 |
} catch (RWorkspaceException e) { |
241 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
242 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
242 | 243 |
} |
243 | 244 |
} |
244 | 245 |
return colinertia; |
... | ... | |
258 | 259 |
colmass = RWorkspace.toDouble(sv); |
259 | 260 |
// Arrays.sort(colmass); |
260 | 261 |
} catch (RWorkspaceException e) { |
261 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
262 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
262 | 263 |
} |
263 | 264 |
} |
264 | 265 |
return colmass; |
... | ... | |
279 | 280 |
rowcontrib[i][j] = rowcontrib[i][j] / 100.0; |
280 | 281 |
// Arrays.sort(rowdist); |
281 | 282 |
} catch (RWorkspaceException e) { |
282 |
throw new StatException(CACoreMessages.error_failedToGetConstributionRow + e.getMessage(), e);
|
|
283 |
throw new StatException(NLS.bind(CACoreMessages.error_failedToGetConstributionRowP0, e.getMessage()), e);
|
|
283 | 284 |
} catch (Exception e) { |
284 | 285 |
// TODO Auto-generated catch block |
285 | 286 |
org.txm.utils.logger.Log.printStackTrace(e); |
... | ... | |
299 | 300 |
rowcos2 = sv.asDoubleMatrix(); |
300 | 301 |
// Arrays.sort(rowdist); |
301 | 302 |
} catch (RWorkspaceException e) { |
302 |
throw new StatException(CACoreMessages.error_failedToGetCos2Row + e.getMessage(), e);
|
|
303 |
throw new StatException(NLS.bind(CACoreMessages.error_failedToGetCos2RowP0, e.getMessage()), e);
|
|
303 | 304 |
} catch (Exception e) { |
304 | 305 |
// TODO Auto-generated catch block |
305 | 306 |
org.txm.utils.logger.Log.printStackTrace(e); |
... | ... | |
371 | 372 |
rowinertia = RWorkspace.toDouble(sv); |
372 | 373 |
// Arrays.sort(rowinertia); |
373 | 374 |
} catch (RWorkspaceException e) { |
374 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
375 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
375 | 376 |
} |
376 | 377 |
} |
377 | 378 |
return rowinertia; |
... | ... | |
391 | 392 |
rowmass = RWorkspace.toDouble(sv); |
392 | 393 |
// Arrays.sort(rowmass); |
393 | 394 |
} catch (RWorkspaceException e) { |
394 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
395 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
395 | 396 |
} |
396 | 397 |
} |
397 | 398 |
return rowmass; |
... | ... | |
439 | 440 |
eigenvalues = Arrays.copyOfRange(eigenvalues, 0, eigenvalues.length -1); |
440 | 441 |
// Arrays.sort(singularValues); |
441 | 442 |
} catch (RWorkspaceException e) { |
442 |
throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e);
|
|
443 |
throw new StatException(CACoreMessages.bind(CACoreMessages.error_unableToExtractSingularValuesP0, e.getMessage()), e);
|
|
443 | 444 |
} |
444 | 445 |
} |
445 | 446 |
return eigenvalues; |
... | ... | |
454 | 455 |
try { |
455 | 456 |
rw.voidEval("library(FactoMineR)"); //$NON-NLS-1$ |
456 | 457 |
} catch (RWorkspaceException e) { |
457 |
System.out.println(CACoreMessages.error_canNotLoadCALibrary+ e);
|
|
458 |
System.out.println(NLS.bind(CACoreMessages.error_canNotLoadCALibraryP0, e));
|
|
458 | 459 |
return false; |
459 | 460 |
} |
460 | 461 |
return true; |
461 | 462 |
} |
462 | 463 |
|
463 |
|
|
464 | 464 |
/** |
465 | 465 |
* Draw in the given file a plot of the factorial map. |
466 | 466 |
* |
tmp/org.txm.ca.core/src/org/txm/ca/core/messages/messages.properties (revision 1350) | ||
---|---|---|
1 | 1 |
#TXM messages generated by the PluginMessagesManager class |
2 | 2 |
#Mon Nov 12 17:18:22 CET 2018 |
3 | 3 |
axis=Axis |
4 |
cantCreateBarChartOfTheCASingularValues=Can't create bar chart of the CA singular values. |
|
5 |
cantCreateCAChartFileChartsEngineDDotP0=Can't create CA chart file (charts engine\: {0}). |
|
4 |
axisP0P1Percent=Axis {0} ({1}%) |
|
5 |
cantCreateBarChartOfTheCASingularValuesP0=Can't create bar chart of the CA singular values. |
|
6 |
cantCreateCAChartFileChartsEngineDDotP0P1=Can't create CA chart file (charts engine\: {0}): {1} |
|
6 | 7 |
charts_singularValues_tooltipSum=∑ |
7 | 8 |
columns=Columns |
8 | 9 |
common_c1=c1 |
... | ... | |
19 | 20 |
correspondenceAnalysisFactorialMapofTheP0=Correspondence analysis factorial map\nof the {0} |
20 | 21 |
eigenvalue=Eigenvalue |
21 | 22 |
eigenvalues=Eigenvalues |
22 |
error_canNotLoadCALibrary=** Cannot load the 'ca' library.
|
|
23 |
error_errorWhileComputingCA=** Error while computing correspondence analysis\:
|
|
24 |
error_failedToGetConstributionRow=** Failed to get contribution row\:
|
|
25 |
error_failedToGetContributionColumn=** Failed to get contribution column\:
|
|
26 |
error_failedToGetCos2Column=** Failed to get cos² column\:
|
|
27 |
error_failedToGetCos2Row=** Failed to get cos² row\:
|
|
23 |
error_canNotLoadCALibraryP0=** Cannot load the 'ca' library: {0}
|
|
24 |
error_errorWhileComputingCAP0=** Error while computing correspondence analysis\: {0}
|
|
25 |
error_failedToGetConstributionRowP0=** Failed to get contribution row\: {0}
|
|
26 |
error_failedToGetContributionColumnP0=** Failed to get contribution column\: {0}
|
|
27 |
error_failedToGetCos2ColumnP0=** Failed to get cos? column\: {0}
|
|
28 |
error_failedToGetCos2RowP0=** Failed to get cos? row\: {0}
|
|
28 | 29 |
error_lexicalTableNotFoundInWorkspace=** The lexical table was not found in the R workspace. |
29 |
error_unableToExtractSingularValues=** Unable to extract singular values.
|
|
30 |
error_unableToExtractSingularValuesP0=** Unable to extract singular values: {0}
|
|
30 | 31 |
frequency=Frequency |
31 | 32 |
percent=% |
32 | 33 |
RESULT_TYPE=CA |
tmp/org.txm.ca.core/src/org/txm/ca/core/messages/CACoreMessages.java (revision 1350) | ||
---|---|---|
17 | 17 |
public static String RESULT_TYPE; |
18 | 18 |
public static String eigenvalues; |
19 | 19 |
|
20 |
public static String cantCreateCAChartFileChartsEngineDDotP0; |
|
21 |
public static String cantCreateBarChartOfTheCASingularValues; |
|
20 |
public static String cantCreateCAChartFileChartsEngineDDotP0P1;
|
|
21 |
public static String cantCreateBarChartOfTheCASingularValuesP0;
|
|
22 | 22 |
|
23 |
public static String axis; |
|
23 |
public static String axis; |
|
24 |
public static String axisP0P1Percent; |
|
24 | 25 |
public static String columns; |
25 | 26 |
public static String rows; |
26 | 27 |
public static String correspondenceAnalysisFactorialMapofTheP0; |
... | ... | |
43 | 44 |
public static String common_q13; |
44 | 45 |
public static String common_q23; |
45 | 46 |
|
46 |
public static String error_canNotLoadCALibrary; |
|
47 |
public static String error_errorWhileComputingCA; |
|
48 |
public static String error_failedToGetConstributionRow; |
|
49 |
public static String error_failedToGetContributionColumn; |
|
50 |
public static String error_failedToGetCos2Column; |
|
51 |
public static String error_failedToGetCos2Row; |
|
47 |
public static String error_canNotLoadCALibraryP0;
|
|
48 |
public static String error_errorWhileComputingCAP0;
|
|
49 |
public static String error_failedToGetConstributionRowP0;
|
|
50 |
public static String error_failedToGetContributionColumnP0;
|
|
51 |
public static String error_failedToGetCos2ColumnP0;
|
|
52 |
public static String error_failedToGetCos2RowP0;
|
|
52 | 53 |
public static String error_lexicalTableNotFoundInWorkspace; |
53 |
public static String error_unableToExtractSingularValues; |
|
54 |
public static String error_unableToExtractSingularValuesP0;
|
|
54 | 55 |
|
55 | 56 |
static { |
56 | 57 |
Utf8NLS.initializeMessages(BUNDLE_NAME, CACoreMessages.class); |
tmp/org.txm.ca.core/src/org/txm/ca/core/messages/messages_fr.properties (revision 1350) | ||
---|---|---|
1 | 1 |
#TXM messages generated by the PluginMessagesManager class |
2 | 2 |
#Mon Nov 12 17:18:22 CET 2018 |
3 | 3 |
axis=Axe |
4 |
cantCreateBarChartOfTheCASingularValues=Impossible de créer l'histogramme des valeurs propres de l'AFC. |
|
5 |
cantCreateCAChartFileChartsEngineDDotP0=Impossible de créer le fichier du graphique du plan factoriel de l'AFC (moteur de production de graphiques\: {0}). |
|
4 |
axisP0P1Percent=Axe {0} ({1}%) |
|
5 |
cantCreateBarChartOfTheCASingularValuesP0=Impossible de créer l'histogramme des valeurs propres de l'AFC. |
|
6 |
cantCreateCAChartFileChartsEngineDDotP0P1=Impossible de créer le fichier du graphique du plan factoriel de l'AFC (moteur de production de graphiques\: {0}) : {1} |
|
6 | 7 |
charts_singularValues_tooltipSum=∑ |
7 | 8 |
columns=Colonnes |
8 | 9 |
common_c1=c1 |
... | ... | |
19 | 20 |
correspondenceAnalysisFactorialMapofTheP0=Plan factoriel de l'analyse des correspondances\nde {0} |
20 | 21 |
eigenvalue=Valeur propre |
21 | 22 |
eigenvalues=Eigenvalues |
22 |
error_canNotLoadCALibrary=** Impossible de charger la librairie 'ca'.
|
|
23 |
error_errorWhileComputingCA=** Erreur lors du calcul de l'analyse factorielle des correspondances \:
|
|
24 |
error_failedToGetConstributionRow=** Echec d'accès à la ligne des contributions \:
|
|
25 |
error_failedToGetContributionColumn=** Echec d'accès à la colonne des contributions \:
|
|
26 |
error_failedToGetCos2Column=** Echec d'accès à la colonne des cos² \:
|
|
27 |
error_failedToGetCos2Row=** Echec d'accès à la ligne des cos² \:
|
|
23 |
error_canNotLoadCALibraryP1=** Impossible de charger la librairie 'ca' : {0}
|
|
24 |
error_errorWhileComputingCAP0=** Erreur lors du calcul de l'analyse factorielle des correspondances \: {0}
|
|
25 |
error_failedToGetConstributionRowP0=** Echec d'accès à la ligne des contributions \: {0}
|
|
26 |
error_failedToGetContributionColumnP0=** Echec d'accès à la colonne des contributions \: {0}
|
|
27 |
error_failedToGetCos2ColumnP0=** Echec d'accès à la colonne des cos² \: {0}
|
|
28 |
error_failedToGetCos2RowP0=** Echec d'accès à la ligne des cos² \: {0}
|
|
28 | 29 |
error_lexicalTableNotFoundInWorkspace=** La table lexicale n'a pas été trouvée dans l'espace de travail R. |
29 |
error_unableToExtractSingularValues=** Impossible d'extraire les valeurs propres.
|
|
30 |
error_unableToExtractSingularValuesP0=** Impossible d'extraire les valeurs propres: {0}
|
|
30 | 31 |
frequency=Fréquence |
31 | 32 |
percent=% |
32 | 33 |
RESULT_TYPE=AFC |
tmp/org.txm.ca.core/src/org/txm/ca/core/functions/CA.java (revision 1350) | ||
---|---|---|
34 | 34 |
import java.util.ArrayList; |
35 | 35 |
import java.util.List; |
36 | 36 |
|
37 |
import org.eclipse.osgi.util.NLS; |
|
37 | 38 |
import org.txm.ca.core.messages.CACoreMessages; |
38 | 39 |
import org.txm.ca.core.preferences.CAPreferences; |
39 | 40 |
import org.txm.ca.core.statsengine.r.functions.FactoMineRCA; |
... | ... | |
722 | 723 |
@Override |
723 | 724 |
public String getDetails() { |
724 | 725 |
try { |
725 |
return TXMCoreMessages.common_fMin + " = " + this.getLexicalTable().getFMin();
|
|
726 |
return NLS.bind(TXMCoreMessages.common_fMinEquals, this.getLexicalTable().getFMin());
|
|
726 | 727 |
} |
727 | 728 |
catch (Exception e) { |
728 | 729 |
return ""; //$NON-NLS-1$ |
tmp/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/themes/highcharts/chartcreators/JFCCAChartCreator.java (revision 1350) | ||
---|---|---|
6 | 6 |
import java.util.ArrayList; |
7 | 7 |
import java.util.TreeMap; |
8 | 8 |
|
9 |
import org.eclipse.osgi.util.NLS; |
|
9 | 10 |
import org.jfree.chart.ChartFactory; |
10 | 11 |
import org.jfree.chart.JFreeChart; |
11 | 12 |
import org.jfree.chart.annotations.XYLineAnnotation; |
... | ... | |
273 | 274 |
try { |
274 | 275 |
double sinuglarValuesSum = ca.getValeursPropresSum(); |
275 | 276 |
DecimalFormat f = new DecimalFormat("###.00"); //$NON-NLS-1$ |
276 |
((JFreeChart) chart).getXYPlot().getDomainAxis().setLabel(CACoreMessages.axis + " " + dimension1 + " (" + f.format(100 * ca.getValeursPropres()[dimension1 - 1] / sinuglarValuesSum) + "%)");
|
|
277 |
((JFreeChart) chart).getXYPlot().getRangeAxis().setLabel(CACoreMessages.axis + " " + dimension2 + " (" + f.format(100 * ca.getValeursPropres()[dimension2 - 1] / sinuglarValuesSum) + "%)");
|
|
277 |
((JFreeChart) chart).getXYPlot().getDomainAxis().setLabel(NLS.bind(CACoreMessages.axisP0P1Percent, dimension1, f.format(100 * ca.getValeursPropres()[dimension1 - 1] / sinuglarValuesSum)));
|
|
278 |
((JFreeChart) chart).getXYPlot().getRangeAxis().setLabel(NLS.bind(CACoreMessages.axisP0P1Percent, dimension2, f.format(100 * ca.getValeursPropres()[dimension2 - 1] / sinuglarValuesSum)));
|
|
278 | 279 |
|
279 | 280 |
// Refresh data set |
280 | 281 |
// FIXME : any way to fire a data set event rather than reassign the same data set? |
tmp/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/themes/highcharts/chartcreators/JFCSingularValueChartCreator.java (revision 1350) | ||
---|---|---|
1 | 1 |
package org.txm.ca.core.chartsengine.jfreechart.themes.highcharts.chartcreators; |
2 | 2 |
|
3 |
import org.eclipse.osgi.util.NLS; |
|
3 | 4 |
import org.jfree.chart.JFreeChart; |
4 | 5 |
import org.jfree.chart.axis.NumberAxis; |
5 | 6 |
import org.jfree.data.category.DefaultCategoryDataset; |
... | ... | |
52 | 53 |
|
53 | 54 |
} |
54 | 55 |
catch(StatException e) { |
55 |
Log.severe(CACoreMessages.cantCreateBarChartOfTheCASingularValues + e);
|
|
56 |
Log.severe(NLS.bind(CACoreMessages.cantCreateBarChartOfTheCASingularValuesP0, e));
|
|
56 | 57 |
Log.printStackTrace(e); |
57 | 58 |
} |
58 | 59 |
|
59 |
|
|
60 | 60 |
return chart; |
61 | 61 |
} |
62 | 62 |
|
tmp/org.txm.ca.core/src/org/txm/ca/core/chartsengine/r/RCAChartCreator.java (revision 1350) | ||
---|---|---|
66 | 66 |
|
67 | 67 |
} |
68 | 68 |
catch(Exception e) { |
69 |
Log.severe(CACoreMessages.bind(CACoreMessages.cantCreateCAChartFileChartsEngineDDotP0 + " - FactoMineR package", RChartsEngine.DESCRIPTION) + e); //$NON-NLS-1$
|
|
69 |
Log.severe(CACoreMessages.bind(CACoreMessages.cantCreateCAChartFileChartsEngineDDotP0P1, RChartsEngine.DESCRIPTION+" - FactoMineR package", e)); //$NON-NLS-1$
|
|
70 | 70 |
Log.printStackTrace(e); |
71 | 71 |
} |
72 | 72 |
|
... | ... | |
110 | 110 |
this.getChartsEngine().plot(destFile, cmd); |
111 | 111 |
} |
112 | 112 |
catch(Exception e) { |
113 |
Log.severe(CACoreMessages.bind(CACoreMessages.cantCreateCAChartFileChartsEngineDDotP0 + " - CA package", RChartsEngine.DESCRIPTION) + e); //$NON-NLS-1$
|
|
113 |
Log.severe(CACoreMessages.bind(CACoreMessages.cantCreateCAChartFileChartsEngineDDotP0P1, RChartsEngine.DESCRIPTION + " - CA package", e)); //$NON-NLS-1$
|
|
114 | 114 |
Log.printStackTrace(e); |
115 | 115 |
} |
116 | 116 |
|
tmp/org.txm.translate.rcp/report.txt (revision 1350) | ||
---|---|---|
1 |
/home/mdecorde/workspace047/org.txm.annotation.urs.rcp/src/org/txm/annotation/urs/widgets/NavigationField.java |
|
2 |
142 System.out.println(Messages.NavigationField_2+identifiantCombo.getText()); |
|
3 |
149 System.out.println(Messages.NavigationField_3+identifiantCombo.getText()); |
|
4 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/themes/highcharts/chartcreators/JFCCAChartCreator.java |
|
5 |
276 ((JFreeChart) chart).getXYPlot().getDomainAxis().setLabel(CACoreMessages.axis + " " + dimension1 + " (" + f.format(100 * ca.getValeursPropres()[dimension1 - 1] / sinuglarValuesSum) + "%)"); |
|
6 |
277 ((JFreeChart) chart).getXYPlot().getRangeAxis().setLabel(CACoreMessages.axis + " " + dimension2 + " (" + f.format(100 * ca.getValeursPropres()[dimension2 - 1] / sinuglarValuesSum) + "%)"); |
|
7 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/themes/highcharts/chartcreators/JFCSingularValueChartCreator.java |
|
8 |
55 Log.severe(CACoreMessages.cantCreateBarChartOfTheCASingularValues + e); |
|
9 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/themes/highcharts/renderers/CAItemSelectionRenderer.java |
|
10 |
106 + CACoreMessages.frequency + ChartsEngineCoreMessages.EMPTY + " <b>" + caDataset.getFrequency(series, item).replace("-", "") + "</b></p>" |
|
11 |
107 + "<p>" + CACoreMessages.coordinates + ChartsEngineCoreMessages.EMPTY + " <b>[" + format.format(caDataset.getX(series, item)) + ":" + format.format(caDataset.getY(series, item)) + "]</b></p></body><html>"; |
|
12 |
134 + CACoreMessages.t + ChartsEngineCoreMessages.EMPTY + " <b>" + caDataset.getFrequency(series, item).replace("-", "") + "</b></p>" |
|
13 |
135 + "<p>" + CACoreMessages.coordinates + ChartsEngineCoreMessages.EMPTY + " <b>[" + format.format(caDataset.getX(series, item)) + ":" + format.format(caDataset.getY(series, item)) + "]</b></p></body><html>"; |
|
14 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/chartsengine/jfreechart/themes/highcharts/renderers/CASingularValuesItemSelectionRenderer.java |
|
15 |
65 + "<p><span style=\"color: " + hex + ";\">" + CACoreMessages.percent + ChartsEngineCoreMessages.EMPTY |
|
16 |
67 + "<p><span style=\"color: " + hex + ";\">" + CACoreMessages.charts_singularValues_tooltipSum + CACoreMessages.percent |
|
17 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/chartsengine/r/RCAChartCreator.java |
|
18 |
69 Log.severe(CACoreMessages.bind(CACoreMessages.cantCreateCAChartFileChartsEngineDDotP0 + " - FactoMineR package", RChartsEngine.DESCRIPTION) + e); //$NON-NLS-1$ |
|
19 |
113 Log.severe(CACoreMessages.bind(CACoreMessages.cantCreateCAChartFileChartsEngineDDotP0 + " - CA package", RChartsEngine.DESCRIPTION) + e); //$NON-NLS-1$ |
|
20 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/chartsengine/r/RSingularValuesChartCreator.java |
|
21 |
58 + CACoreMessages.eigenvalues + "\", ylab=\"" + //$NON-NLS-1$ |
|
22 |
59 CACoreMessages.eigenvalue + "\", xlab=\"" + //$NON-NLS-1$ |
|
23 |
60 CACoreMessages.axis + "\", names.arg=" + xLabels + ");\n"; //$NON-NLS-1$ //$NON-NLS-2$ |
|
24 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/functions/CA.java |
|
25 |
399 colnames.add(CACoreMessages.common_cont+ (c + 1)); // ContribN |
|
26 |
400 colnames.add(CACoreMessages.common_cos2+ (c + 1)); // Cos²N |
|
27 |
601 colnames.add(CACoreMessages.common_cont+ (c + 1)); // ContribN |
|
28 |
602 colnames.add(CACoreMessages.common_cos2+ (c + 1)); // Cos²N |
|
29 |
725 return TXMCoreMessages.common_fMin + " = " + this.getLexicalTable().getFMin(); |
|
30 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/statsengine/r/functions/CA.java |
|
31 |
211 throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e); |
|
32 |
231 throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e); |
|
33 |
251 throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e); |
|
34 |
355 throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e); |
|
35 |
375 throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e); |
|
36 |
395 throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e); |
|
37 |
415 throw new StatException(CACoreMessages.error_unableToExtractSingularValues + e.getMessage(), e); |
|
38 |
454 System.out.println(CACoreMessages.error_canNotLoadCALibrary + e); |
|
39 |
505 throw new StatException(CACoreMessages.error_errorWhileComputingCA + e.getMessage(), e); |
|
40 | 1 |
/home/mdecorde/workspace047/org.txm.ca.core/src/org/txm/ca/core/statsengine/r/functions/FactoMineRCA.java |
41 | 2 |
120 throw new StatException(CACoreMessages.error_errorWhileComputingCA + e.getMessage(), e); |
42 | 3 |
135 throw new StatException(CACoreMessages.error_failedToGetContributionColumn + e.getMessage(), e); |
tmp/org.txm.core/src/java/org/txm/core/messages/messages.properties (revision 1350) | ||
---|---|---|
22 | 22 |
common_description = Description |
23 | 23 |
common_done = Done. |
24 | 24 |
common_fMax = Fmax |
25 |
common_fMin = Fmin |
|
25 |
common_fMin = Fmin |
|
26 |
common_fMinEquals = Fmin={0} |
|
26 | 27 |
common_frequency = Frequency |
27 | 28 |
common_lowestFrequency = Lowest frequency |
28 | 29 |
common_numberOfLines = Number of lines |
tmp/org.txm.core/src/java/org/txm/core/messages/TXMCoreMessages.java (revision 1350) | ||
---|---|---|
169 | 169 |
public static String xmlValidationDDot; |
170 | 170 |
public static String isADirectory; |
171 | 171 |
public static String doesNotExists_2; |
172 |
public static String isNotReadable; |
|
172 |
public static String isNotReadable; |
|
173 |
|
|
174 |
|
|
175 |
public static String common_fMinEquals; |
|
173 | 176 |
|
174 | 177 |
|
175 | 178 |
/** |
Formats disponibles : Unified diff