Revision: 8360
http://fudaa.svn.sourceforge.net/fudaa/?rev=8360&view=rev
Author: deniger
Date: 2013-03-22 16:12:46 +0000 (Fri, 22 Mar 2013)
Log Message:
-----------
am?\195?\169lioration aide
Modified Paths:
--------------
trunk/framework/fudaa-common/src/main/java/org/fudaa/fudaa/commun/FudaaHelpPDFViewer.java
Modified: trunk/framework/fudaa-common/src/main/java/org/fudaa/fudaa/commun/FudaaHelpPDFViewer.java
===================================================================
--- trunk/framework/fudaa-common/src/main/java/org/fudaa/fudaa/commun/FudaaHelpPDFViewer.java 2013-03-22 10:33:02 UTC (rev 8359)
+++ trunk/framework/fudaa-common/src/main/java/org/fudaa/fudaa/commun/FudaaHelpPDFViewer.java 2013-03-22 16:12:46 UTC (rev 8360)
@@ -105,7 +105,8 @@
/**
* Constructeur pour la creation de l'interface Fudaa.
*
- * @param fichierJar nom du jar \xE0 utiliser (celui qui contient la doc). Peut etre le jar logiciel lui meme.
+ * @param jarName nom du jar \xE0 utiliser (celui qui contient la doc). Peut etre le jar logiciel lui meme.
+ * @param pathFichierJar le path dans le fichier jar: Non UTILISE !
* @param _ui implementaion fudaa.
* @param useThumbs Utilise ou non les apercu images des pages (pour un gain de place, mettre \xE0 false).
*/
@@ -121,14 +122,7 @@
} else {
jarPath = new File(new File(pathFudaa, nomRep), jarName).getAbsolutePath();
}
- if (jarPath == null) {
- //Fred traduction \xE0 revoir !
- ui_.error(FudaaResource.FUDAA.getString("Erreur, il n'existe pas de variable d'environnement " + FUDAA_HOME + "\n Pour faire fonctionner l'aide, il faut:\n - Cr\xE9er une variable d'environnement avec le chemin Fudaa,"
- + "\n - cr\xE9er un r\xE9pertoire " + nomRep + " \n - y d\xE9poser le jar de nom " + jarName));
- //-- rechercher le lien de la bvar environement FUDAA_HOME
-
- }
- pathJarDocAide_ = verifPathForJarIsCorrect(jarPath, propertyForHelp);
+ pathJarDocAide_ = retrieveCorrectPathForJarDoc(jarPath, propertyForHelp);
if (pathJarDocAide_ == null) {
return;
}
@@ -152,7 +146,7 @@
* @param pathPresumePourJar
* @return
*/
- public String verifPathForJarIsCorrect(String initPathForHelp, String propertyForHelp) {
+ public String retrieveCorrectPathForJarDoc(String initPathForHelp, String propertyForHelp) {
File test = initPathForHelp == null ? null : new File(initPathForHelp);
if (initPathForHelp == null || !test.exists() || test.isDirectory()) {
ui_.warn(FudaaResource.FUDAA.getString("Aide non trouv\xE9e"), FudaaResource.FUDAA.getString("Choisir le chemin vers l'archive de l'aide"));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|