Révision 907
tmp/org.txm.core/src/java/org/txm/core/engines/EnginesManager.java (revision 907) | ||
---|---|---|
46 | 46 |
*/ |
47 | 47 |
protected boolean fetchEngines(String engineExtensionPointId) { |
48 | 48 |
|
49 |
IConfigurationElement[] contributions = RegistryFactory.getRegistry() |
|
50 |
.getConfigurationElementsFor(engineExtensionPointId); |
|
49 |
IConfigurationElement[] contributions = RegistryFactory.getRegistry().getConfigurationElementsFor(engineExtensionPointId); |
|
51 | 50 |
|
52 | 51 |
Log.finest("Looking for " + this.getEnginesDescription() + " engines contributions with extension point id " //$NON-NLS-1$ |
53 | 52 |
+ engineExtensionPointId + "."); |
... | ... | |
98 | 97 |
} |
99 | 98 |
} |
100 | 99 |
|
101 |
if (currentEngine == null && this.engines.size() > 0) { |
|
102 |
currentEngine = this.engines.get(0);
|
|
100 |
if (this.currentEngine == null && this.engines.size() > 0) {
|
|
101 |
this.setCurrentEngine((T) this.engines.values().toArray()[0]);
|
|
103 | 102 |
} |
104 | 103 |
return true; |
105 | 104 |
} |
tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/messages/messages_fr.properties (revision 907) | ||
---|---|---|
1 | 1 |
|
2 |
error_cantFindRServeInPath = ** Le chemin du programme du serveur statistique a été renseigné mais sa recherche a échoué dans : {0}. |
|
3 |
error_connectionFailed = ** La connexion au moteur statistique a échoué. |
|
4 |
error_errorDuringItemsListExtraction = ** Erreur lors de l'extraction de la liste d'items : \ |
|
5 |
error_errorWhileEvaluating = ** Erreur R : "{0}"\nlors de l'évaluation de : {1} |
|
6 |
error_evaluationError = ** Erreur d'évaluation : {0}\n{1}. |
|
7 |
error_failedToConnectToTheRWorkspace = ** Echec de connexion à l'espace de travail R. |
|
8 |
error_failedToInitializeFileTransfert = ** Echec de l'initialisation du transfert : {0}. |
|
9 |
error_failedToKillRServe = Echec de la commande 'taskkill /IM Rserve.exe /F'. |
|
10 |
error_failedToKillRServe2 = Echec de la commande 'tskill Rserve.exe'. |
|
11 |
error_failedToKillRServe3 = Echec de la commande 'killall -9 Rserve-bin.so'. |
|
12 |
error_failedToLoadLibrary = La librairie {0} n'a pu être chargée : {1}. |
|
13 |
error_failedToRunREG = ** Echec du lancement de REG pour localiser le programme R. |
|
14 |
error_failedToStartRServe = Impossible de démarrer RServe. |
|
15 |
error_failedToStartRServeWithCommand = ** Echec du lancement de Rserve avec la commande : |
|
16 |
error_matrixIsEmpty = La matrice est vide. |
|
17 |
error_requestedObjectNotFoundInR = L'objet demandé ({0}) n'a pas été trouvé dans l'espace de travail R. |
|
18 |
error_rserveIsAlreadyRunningOnPort = Rserve est déja démarré sur le port {0}. |
|
19 |
error_rservePathNotSet = ** Le chemin du programme du serveur statistique n'a pas été renseigné et sa recherche a échoué. |
|
20 |
error_statsEngineNotReadyCancelingCommand = Le moteur de statistiques n'est pas initialisé, annulation de la commande. |
|
21 |
error_unexpectedErrorInRStatisticsEngine = Erreur inattendue dans le moteur statistique R : {0}. |
|
22 |
error_youNeedRSoftware = Vous avez besoin du logiciel 'R' et de configurer ses chemins via la fenêtre de préférences 'Outils/Préférences'. |
|
2 |
error_cantFindRServeInPath = ** Le chemin du programme du serveur statistique a été renseigné mais sa recherche a échoué dans : {0}. |
|
3 |
error_connectionFailed = ** La connexion au moteur statistique a échoué. |
|
4 |
error_errorDuringItemsListExtraction = ** Erreur lors de l'extraction de la liste d'items : \ |
|
5 |
error_errorWhileEvaluating = ** Erreur R : "{0}"\nlors de l'évaluation de : {1} |
|
6 |
error_evaluationError = ** Erreur d'évaluation : {0}\n{1}. |
|
7 |
error_failedToConnectToTheRWorkspace = ** Echec de connexion à l'espace de travail R. |
|
8 |
error_failedToInitializeFileTransfert = ** Echec de l'initialisation du transfert : {0}. |
|
9 |
error_failedToKillRServe = Echec de la commande 'taskkill /IM Rserve.exe /F'. |
|
10 |
error_failedToKillRServe2 = Echec de la commande 'tskill Rserve.exe'. |
|
11 |
error_failedToKillRServe3 = Echec de la commande 'killall -9 Rserve-bin.so'. |
|
12 |
error_failedToLoadLibrary = La librairie {0} n'a pu être chargée : {1}. |
|
13 |
error_failedToRunREG = ** Echec du lancement de REG pour localiser le programme R. |
|
14 |
error_failedToStartRServe = Impossible de démarrer RServe. |
|
15 |
error_failedToStartRServeWithCommand = ** Echec du lancement de Rserve avec la commande : |
|
16 |
error_matrixIsEmpty = La matrice est vide. |
|
17 |
error_requestedObjectNotFoundInR = L'objet demandé ({0}) n'a pas été trouvé dans l'espace de travail R. |
|
18 |
error_rserveIsAlreadyRunningOnPort = Rserve est déja démarré sur le port {0}. |
|
19 |
error_rservePathNotSet = ** Le chemin du programme du serveur statistique n'a pas été renseigné et sa recherche a échoué. |
|
20 |
error_unexpectedErrorInRStatisticsEngine = Erreur inattendue dans le moteur statistique R : {0}. |
|
21 |
error_youNeedRSoftware = Vous avez besoin du logiciel 'R' et de configurer ses chemins via la fenêtre de préférences 'Outils/Préférences'. |
|
23 | 22 |
|
24 | 23 |
info_connected = Connecté. |
25 | 24 |
info_connectingToRAt = Connexion à R à {0}:{1}. |
tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/messages/RCoreMessages.java (revision 907) | ||
---|---|---|
30 | 30 |
public static String error_requestedObjectNotFoundInR; |
31 | 31 |
public static String error_rserveIsAlreadyRunningOnPort; |
32 | 32 |
public static String error_rservePathNotSet; |
33 |
public static String error_statsEngineNotReadyCancelingCommand; |
|
34 | 33 |
public static String error_youNeedRSoftware; |
35 | 34 |
public static String info_connected; |
36 | 35 |
public static String info_connectingToRAt; |
tmp/org.txm.statsengine.r.core/src/org/txm/statsengine/r/core/messages/messages.properties (revision 907) | ||
---|---|---|
1 | 1 |
|
2 |
error_cantFindRServeInPath = ** The Statistics Engine program path is set but we couldn't find it in: {0}. |
|
3 |
error_connectionFailed = ** Error while connecting to the stat engine. |
|
4 |
error_errorDuringItemsListExtraction = ** Error during items list extraction: |
|
5 |
error_errorWhileEvaluating = ** R error: "{0}"\nwhile evaluating: {1} |
|
6 |
error_evaluationError = ** Evaluation error: {0}\n{1}. |
|
7 |
error_failedToConnectToTheRWorkspace = ** Failed to connect to the R Workspace. |
|
8 |
error_failedToInitializeFileTransfert = ** Failed to initialize file transfert: {0}. |
|
9 |
error_failedToKillRServe = Failed to exec 'taskkill /IM Rserve.exe /F'. |
|
10 |
error_failedToKillRServe2 = Failed to exec 'tskill Rserve.exe'. |
|
11 |
error_failedToKillRServe3 = Failed to exec 'killall -9 Rserve-bin.so'. |
|
12 |
error_failedToLoadLibrary = Failed to load the {0} library: {1}. |
|
13 |
error_failedToRunREG = ** Failed to run REG to find the location of R program. |
|
14 |
error_failedToStartRServe = Failed to start RServe. |
|
15 |
error_failedToStartRServeWithCommand = ** Failed to start Rserve with command: |
|
16 |
error_matrixIsEmpty = Matrix is empty. |
|
17 |
error_requestedObjectNotFoundInR = The requested object ({0}) was not found in the R workspace. |
|
18 |
error_rserveIsAlreadyRunningOnPort = Rserve is already running on port {0}. |
|
19 |
error_rservePathNotSet = ** The Statistics Engine program path is not set and we could not find it. |
|
20 |
error_statsEngineNotReadyCancelingCommand = Statistics Engine is not ready, canceling command. |
|
21 |
error_unexpectedErrorInRStatisticsEngine = Unexpected error R statistics engine: {0}. |
|
22 |
error_youNeedRSoftware = You need the 'R' software and you need to configure in the 'Tools/Preferences' window the correct path to it. |
|
2 |
error_cantFindRServeInPath = ** The Statistics Engine program path is set but we couldn't find it in: {0}. |
|
3 |
error_connectionFailed = ** Error while connecting to the stat engine. |
|
4 |
error_errorDuringItemsListExtraction = ** Error during items list extraction: |
|
5 |
error_errorWhileEvaluating = ** R error: "{0}"\nwhile evaluating: {1} |
|
6 |
error_evaluationError = ** Evaluation error: {0}\n{1}. |
|
7 |
error_failedToConnectToTheRWorkspace = ** Failed to connect to the R Workspace. |
|
8 |
error_failedToInitializeFileTransfert = ** Failed to initialize file transfert: {0}. |
|
9 |
error_failedToKillRServe = Failed to exec 'taskkill /IM Rserve.exe /F'. |
|
10 |
error_failedToKillRServe2 = Failed to exec 'tskill Rserve.exe'. |
|
11 |
error_failedToKillRServe3 = Failed to exec 'killall -9 Rserve-bin.so'. |
|
12 |
error_failedToLoadLibrary = Failed to load the {0} library: {1}. |
|
13 |
error_failedToRunREG = ** Failed to run REG to find the location of R program. |
|
14 |
error_failedToStartRServe = Failed to start RServe. |
|
15 |
error_failedToStartRServeWithCommand = ** Failed to start Rserve with command: |
|
16 |
error_matrixIsEmpty = Matrix is empty. |
|
17 |
error_requestedObjectNotFoundInR = The requested object ({0}) was not found in the R workspace. |
|
18 |
error_rserveIsAlreadyRunningOnPort = Rserve is already running on port {0}. |
|
19 |
error_rservePathNotSet = ** The Statistics Engine program path is not set and we could not find it. |
|
20 |
error_unexpectedErrorInRStatisticsEngine = Unexpected error R statistics engine: {0}. |
|
21 |
error_youNeedRSoftware = You need the 'R' software and you need to configure in the 'Tools/Preferences' window the correct path to it. |
|
23 | 22 |
|
24 | 23 |
info_connected = Connected. |
25 | 24 |
info_connectingToRAt = Connecting to R at {0}:{1}. |
tmp/org.txm.statsengine.core/src/org/txm/statsengine/core/messages/StatsEngineCoreMessages.java (revision 907) | ||
---|---|---|
5 | 5 |
|
6 | 6 |
public class StatsEngineCoreMessages extends NLS { |
7 | 7 |
|
8 |
|
|
9 |
public static String error_statsEngineNotReadyCancelingCommand; |
|
10 |
|
|
11 |
|
|
8 | 12 |
public static String VectorizeArray_0; |
9 | 13 |
public static String VectorizeArray_1; |
10 | 14 |
public static String VectorizeArray_10; |
tmp/org.txm.statsengine.core/src/org/txm/statsengine/core/messages/messages_ru.properties (revision 907) | ||
---|---|---|
1 |
|
|
2 |
error_statsEngineNotReadyCancelingCommand = |
tmp/org.txm.statsengine.core/src/org/txm/statsengine/core/messages/messages_fr.properties (revision 907) | ||
---|---|---|
1 | 1 |
|
2 |
VectorizeArray_0 = ** Rien à faire avec une matrice vide |
|
3 |
VectorizeArray_1 = ** Les tableaux internes doivent avoir une dimension supérieure à 0 |
|
4 |
VectorizeArray_10 = ** Un tableau interne ne peut pas être nul |
|
5 |
VectorizeArray_11 = ** Les tableaux internes n'ont pas tous la même dimension. |
|
6 |
VectorizeArray_3 = ** Les tableaux internes n'ont pas tous la même dimension. |
|
7 |
VectorizeArray_4 = ** Rien à faire avec une matrice vide |
|
8 |
VectorizeArray_5 = ** Les tableaux internes doivent avoir une dimension supérieure à 0 |
|
9 |
VectorizeArray_7 = * Les tableaux internes n'ont pas tous la même dimension. |
|
10 |
VectorizeArray_8 = ** Rien à faire avec une matrice vide |
|
11 |
VectorizeArray_9 = ** Les tableaux internes doivent avoir une dimension supérieure à 0 |
|
12 |
|
|
13 | 2 |
ArrayIndex_0 = ** Le tableau d'index ne peut pas être nul ou vide. |
14 | 3 |
ArrayIndex_1 = ** Un index commençant à 0 ne peut pas être inférieur à 0 ou supérieur au nombre d'éléments indexés. |
15 | 4 |
|
16 | 5 |
Factor_0 = ** Non implémenté |
17 | 6 |
|
18 |
|
|
19 | 7 |
MatrixImpl_0 = Une variable (" |
20 | 8 |
MatrixImpl_1 = ") n'existe pas dans l'espace de travail R. |
21 | 9 |
MatrixImpl_10 = Index de ligne ( |
... | ... | |
43 | 31 |
QuantitativeDataStructureImpl_1 = " dans l'espace de travail |
44 | 32 |
QuantitativeDataStructureImpl_2 = ** Impossible de supprimer un objet qui n'existe pas. |
45 | 33 |
|
34 |
VectorizeArray_0 = ** Rien à faire avec une matrice vide |
|
35 |
VectorizeArray_1 = ** Les tableaux internes doivent avoir une dimension supérieure à 0 |
|
36 |
VectorizeArray_10 = ** Un tableau interne ne peut pas être nul |
|
37 |
VectorizeArray_11 = ** Les tableaux internes n'ont pas tous la même dimension. |
|
38 |
VectorizeArray_3 = ** Les tableaux internes n'ont pas tous la même dimension. |
|
39 |
VectorizeArray_4 = ** Rien à faire avec une matrice vide |
|
40 |
VectorizeArray_5 = ** Les tableaux internes doivent avoir une dimension supérieure à 0 |
|
41 |
VectorizeArray_7 = * Les tableaux internes n'ont pas tous la même dimension. |
|
42 |
VectorizeArray_8 = ** Rien à faire avec une matrice vide |
|
43 |
VectorizeArray_9 = ** Les tableaux internes doivent avoir une dimension supérieure à 0 |
|
44 |
|
|
45 |
error_statsEngineNotReadyCancelingCommand = Le moteur de statistiques n'est pas initialisé, annulation de la commande. |
tmp/org.txm.statsengine.core/src/org/txm/statsengine/core/messages/messages.properties (revision 907) | ||
---|---|---|
1 | 1 |
|
2 |
|
|
3 |
VectorizeArray_0 = ** Nothing to do with an empty matrix |
|
4 |
VectorizeArray_1 = ** Inner arrays must be of dimension > 0. |
|
5 |
VectorizeArray_10 = ** An inner array cannot be null. |
|
6 |
VectorizeArray_11 = ** All the inner array do not have the same length. |
|
7 |
VectorizeArray_3 = ** All the inner array do not have the same length. |
|
8 |
VectorizeArray_4 = ** Nothing to do with an empty matrix |
|
9 |
VectorizeArray_5 = ** Inner arrays must be of dimension > 0. |
|
10 |
VectorizeArray_7 = ** All the inner array do not have the same length. |
|
11 |
VectorizeArray_8 = ** Nothing to do with an empty matrix |
|
12 |
VectorizeArray_9 = ** Inner arrays must be of dimension > 0. |
|
13 |
|
|
14 | 2 |
ArrayIndex_0 = ** The index array can not be null or empty. |
15 | 3 |
ArrayIndex_1 = ** A zero-based index cannot be < 0 or > to the number of indexed elements. |
16 | 4 |
|
17 | 5 |
Factor_0 = ** Not implemented |
18 | 6 |
|
19 |
|
|
20 | 7 |
MatrixImpl_0 = A variable (" |
21 | 8 |
MatrixImpl_1 = ") does not exist in the R workspace. |
22 | 9 |
MatrixImpl_10 = Row index ( |
... | ... | |
44 | 31 |
QuantitativeDataStructureImpl_1 = " in the workspace |
45 | 32 |
QuantitativeDataStructureImpl_2 = ** Cannot delete a non-existing object. |
46 | 33 |
|
34 |
VectorizeArray_0 = ** Nothing to do with an empty matrix |
|
35 |
VectorizeArray_1 = ** Inner arrays must be of dimension > 0. |
|
36 |
VectorizeArray_10 = ** An inner array cannot be null. |
|
37 |
VectorizeArray_11 = ** All the inner array do not have the same length. |
|
38 |
VectorizeArray_3 = ** All the inner array do not have the same length. |
|
39 |
VectorizeArray_4 = ** Nothing to do with an empty matrix |
|
40 |
VectorizeArray_5 = ** Inner arrays must be of dimension > 0. |
|
41 |
VectorizeArray_7 = ** All the inner array do not have the same length. |
|
42 |
VectorizeArray_8 = ** Nothing to do with an empty matrix |
|
43 |
VectorizeArray_9 = ** Inner arrays must be of dimension > 0. |
|
47 | 44 |
|
45 |
error_statsEngineNotReadyCancelingCommand = Statistics Engine is not ready, canceling command. |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/handlers/BaseAbstractHandler.java (revision 907) | ||
---|---|---|
28 | 28 |
import org.txm.rcp.editors.TXMEditor; |
29 | 29 |
import org.txm.rcp.views.corpora.CorporaView; |
30 | 30 |
import org.txm.searchengine.cqp.CQPSearchEngine; |
31 |
import org.txm.statsengine.core.messages.StatsEngineCoreMessages; |
|
31 | 32 |
import org.txm.utils.logger.Log; |
32 | 33 |
|
33 | 34 |
/** |
... | ... | |
57 | 58 |
* @return true if the stat engine is available |
58 | 59 |
*/ |
59 | 60 |
public boolean checkStatsEngine() { |
60 |
return Toolbox.getEngineManager(EngineType.STATS).isCurrentEngineAvailable(); |
|
61 |
// if (!RStatsEngine.isStarted()) { |
|
62 |
// System.out.println(RCoreMessages.error_statsEngineNotReadyCancelingCommand); |
|
63 |
// Log.severe(RCoreMessages.error_statsEngineNotReadyCancelingCommand); |
|
64 |
// return false; |
|
65 |
// } |
|
66 |
// return true; |
|
61 |
if(!Toolbox.getEngineManager(EngineType.STATS).isCurrentEngineAvailable()) { |
|
62 |
Log.severe(StatsEngineCoreMessages.error_statsEngineNotReadyCancelingCommand); |
|
63 |
} |
|
64 |
return true; |
|
67 | 65 |
} |
68 | 66 |
|
69 | 67 |
|
tmp/org.txm.rcp/META-INF/MANIFEST.MF (revision 907) | ||
---|---|---|
30 | 30 |
org.txm.libs.batik;bundle-version="0.0.0";visibility:=reexport, |
31 | 31 |
org.txm.libs.args4j;bundle-version="1.0.0";visibility:=reexport, |
32 | 32 |
org.txm.tokenizer.core;bundle-version="1.0.0";visibility:=reexport, |
33 |
org.txm.searchengine.cqp.core;bundle-version="1.1.0";visibility:=reexport |
|
33 |
org.txm.searchengine.cqp.core;bundle-version="1.1.0";visibility:=reexport, |
|
34 |
org.txm.statsengine.core |
|
34 | 35 |
Export-Package: junit.extensions, |
35 | 36 |
junit.framework, |
36 | 37 |
junit.runner, |
Formats disponibles : Unified diff