From dlanglais@users.nuiton.org Thu Mar 18 15:09:27 2010
From: dlanglais@users.nuiton.org
To: mapstoragemanager-commits@list.nuiton.org
Subject: [Mapstoragemanager-commits] r260 - in trunk/msm/src/main:
	java/org/nuiton/mapstoragemanager/ui
	java/org/nuiton/mapstoragemanager/ui/engine resources/i18n
Date: Thu, 18 Mar 2010 15:09:27 +0100
Message-ID: <20100318140927.28B3315AE4@nuiton.codelutin.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0048048122170257060=="

--===============0048048122170257060==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Author: dlanglais
Date: 2010-03-18 15:09:27 +0100 (Thu, 18 Mar 2010)
New Revision: 260

Log:
Am?\195?\169lioration BootLoaderManager.

Modified:
   trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/BootLoaderManager.=
jaxx
   trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.css
   trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.jaxx
   trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/Application=
Engine.java
   trunk/msm/src/main/resources/i18n/msm-en_GB.properties
   trunk/msm/src/main/resources/i18n/msm-fr_FR.properties

Modified: trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/BootLoaderM=
anager.jaxx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/BootLoaderManager=
.jaxx	2010-03-18 13:57:07 UTC (rev 259)
+++ trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/BootLoaderManager=
.jaxx	2010-03-18 14:09:27 UTC (rev 260)
@@ -66,6 +66,8 @@
         LOG.error(ex, ex);
     }
=20
+    this.getBootLoaderPanel().removeAll();
+
     /**
      * For each Jar file
      */
@@ -74,7 +76,7 @@
             final String propertyValue =3D properties.getProperty(propertyNa=
me);
             LOG.info(propertyName + " : " + propertyValue);
=20
-            final JCheckBox checkBox =3D new JCheckBox();
+            final JCheckBox checkBox =3D new JCheckBox(propertyName);
=20
             /** If propertyValue equals true, checkBox selected,
              * else not selected. */
@@ -101,13 +103,7 @@
                 }
             });
=20
-            final JLabel label =3D new JLabel(propertyName);
-
-            final JPanel panel =3D new JPanel(new FlowLayout(FlowLayout.LEFT=
));
-            panel.add(checkBox);
-            panel.add(label);
-
-            this.getBootLoaderPanel().add(panel);
+            this.getBootLoaderPanel().add(checkBox);
         }
     }
=20
@@ -122,13 +118,11 @@
     <!-- content -->
     <JMenuBar>
         <JMenu id=3D'menuPlugin'>
-            <JMenuItem id=3D'menuPluginLoad'
-                       onActionPerformed=3D'this.loadAPlugin()' />
             <JMenuItem id=3D'refreshJarList'
                        onActionPerformed=3D'this.refreshJarList()' />
         </JMenu>
     </JMenuBar>
-    <JPanel layout=3D'{new BorderLayout()}' constraints=3D'BorderLayout.CENT=
ER'>
+    <JPanel layout=3D'{new BorderLayout()}' constraints=3D'BorderLayout.NORT=
H'>
         <VBox layout=3D'{new GridLayout(0,1)}' id=3D'bootLoaderPanel' />
     </JPanel>
 </Application>
\ No newline at end of file

Modified: trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.css
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.css	2010-0=
3-18 13:57:07 UTC (rev 259)
+++ trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.css	2010-0=
3-18 14:09:27 UTC (rev 260)
@@ -95,6 +95,17 @@
     mnemonic:O;
 }
=20
+#menuPluginBootLoaderManager {
+    text:"mapstoragemanager.action.pluginbootloadermanager";
+    toolTipText:"mapstoragemanager.action.pluginbootloadermanager.tip";
+}
+
+#refreshJarList {
+    text:"bootloadermanager.refreshJarList";
+}
+
+
+
 #menuHelp {
     text:"mapstoragemanager.action.menuHelp";
     toolTipText:"mapstoragemanager.action.menuHelp.tip";

Modified: trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.jaxx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.jaxx	2010-=
03-18 13:57:07 UTC (rev 259)
+++ trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.jaxx	2010-=
03-18 14:09:27 UTC (rev 260)
@@ -154,9 +154,9 @@
                        onActionPerformed=3D'engine.loadAPlugin()'/>
             <JMenuItem id=3D'menuPluginSave'
                        onActionPerformed=3D'engine.savePlugin()'/>
-            <JSeparator/>
             <JMenuItem id=3D'menuPluginBootLoaderManager'
                        onActionPerformed=3D'BootLoaderManager.getInstance().=
setVisible(true)'/>
+            <JSeparator/>
         </JMenu>
=20
         <JMenu id=3D'menuHelp'>

Modified: trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/Appl=
icationEngine.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/Applicatio=
nEngine.java	2010-03-18 13:57:07 UTC (rev 259)
+++ trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/Applicatio=
nEngine.java	2010-03-18 14:09:27 UTC (rev 260)
@@ -14,15 +14,12 @@
 import java.net.MalformedURLException;
 import java.net.URL;
 import java.util.ArrayList;
-import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
 import java.util.Properties;
 import java.util.Set;
-import javax.swing.AbstractButton;
-import javax.swing.ButtonGroup;
 import javax.swing.JButton;
 import javax.swing.JCheckBox;
 import javax.swing.JFileChooser;
@@ -43,7 +40,6 @@
 import org.nuiton.mapstoragemanager.plugins.BigTable;
 import org.nuiton.mapstoragemanager.plugins.Exporter;
 import org.nuiton.mapstoragemanager.plugins.Importer;
-import org.nuiton.mapstoragemanager.plugins.Plugin;
 import org.nuiton.mapstoragemanager.ui.MainUI;
 import static org.nuiton.i18n.I18n._;
=20

Modified: trunk/msm/src/main/resources/i18n/msm-en_GB.properties
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/msm/src/main/resources/i18n/msm-en_GB.properties	2010-03-18 13:57:0=
7 UTC (rev 259)
+++ trunk/msm/src/main/resources/i18n/msm-en_GB.properties	2010-03-18 14:09:2=
7 UTC (rev 260)
@@ -38,6 +38,9 @@
 mapstoragemanager.action.pluginload.tip=3DLoad plugins
 mapstoragemanager.action.pluginsave=3DHandle plugin save
 mapstoragemanager.action.pluginsave.tip=3DHandle plugin save
+mapstoragemanager.action.pluginbootloadermanager=3DManage plugins jar loaded=
 at startup
+mapstoragemanager.action.pluginbootloadermanager.tip=3DManage plugins jar lo=
aded at startup
+bootLoaderManager.refreshJarList=3DRefresh plugin list
 mapstoragemanager.action.preferences=3DPreferences
 mapstoragemanager.action.preferences.tip=3D
 mapstoragemanager.action.uk=3DEnglish

Modified: trunk/msm/src/main/resources/i18n/msm-fr_FR.properties
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/msm/src/main/resources/i18n/msm-fr_FR.properties	2010-03-18 13:57:0=
7 UTC (rev 259)
+++ trunk/msm/src/main/resources/i18n/msm-fr_FR.properties	2010-03-18 14:09:2=
7 UTC (rev 260)
@@ -38,6 +38,9 @@
 mapstoragemanager.action.pluginload.tip=3DR\u00E9cup\u00E9ration des plugins=
 \u00E0 partir d'un dossier
 mapstoragemanager.action.pluginsave=3DG\u00E9rer sauvegarde
 mapstoragemanager.action.pluginsave.tip=3DG\u00E8re la sauvegarde des plugin=
s au relancement de l'application
+mapstoragemanager.action.pluginbootloadermanager=3DG\u00E9rer les plugins la=
nc\u00E9s au d\u00E9marrage
+mapstoragemanager.action.pluginbootloadermanager.tip=3DG\u00E9rer les plugin=
s lanc\u00E9s au d\u00E9marrage
+bootLoaderManager.refreshJarList=3DRafraichir la liste des plugins
 mapstoragemanager.action.preferences=3DPr\u00E9f\u00E9rences
 mapstoragemanager.action.preferences.tip=3DConfigurer l'application
 mapstoragemanager.action.uk=3DAnglais


--===============0048048122170257060==--


