Author: dlanglais Date: 2010-03-26 03:52:02 +0100 (Fri, 26 Mar 2010) New Revision: 302 Log: Corrections mineures (qualit?\195?\169). Ajout de "chiffres" sur la soutenance. Ajout de cl?\195?\169 i18n oubli?\195?\169es... Suppression class Main du PluginManager qui ne servait qu'?\195?\160 tester celui-ci tout seul. Removed: trunk/msm-pluginmanager/src/main/java/org/nuiton/mapstoragemanager/plugins/pluginmanager/Main.java Modified: trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/MSMNavigationListener.java trunk/msm/src/main/resources/i18n/msm-en_GB.properties trunk/msm/src/main/resources/i18n/msm-fr_FR.properties trunk/src/site/doc/soutenance/conclusion.tex Modified: trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/MSMNavigationListener.java =================================================================== --- trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/MSMNavigationListener.java 2010-03-26 01:04:59 UTC (rev 301) +++ trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/MSMNavigationListener.java 2010-03-26 02:52:02 UTC (rev 302) @@ -133,7 +133,7 @@ new DeleteColumnListener(tableName, columnName)); JMenuItem addRowItem = new JMenuItem(_("add.row")); addRowItem.addActionListener( - new AddRowListener(tableName, columnName)); + new AddRowListener()); // JMenuItem delRowItem = new JMenuItem(_("del.row")); // delRowItem.addActionListener( // new DeleteRowListener(tableName, columnName)); @@ -356,20 +356,9 @@ class AddRowListener implements ActionListener { /** - * Current TableName. - */ - private String tableName; - /** - * Current ColumnName. - */ - private String columnName; - - /** * Default Constructor. */ - public AddRowListener(final String tableName, final String columnName) { - this.tableName = tableName; - this.columnName = columnName; + public AddRowListener() { } /** Modified: trunk/msm/src/main/resources/i18n/msm-en_GB.properties =================================================================== --- trunk/msm/src/main/resources/i18n/msm-en_GB.properties 2010-03-26 01:04:59 UTC (rev 301) +++ trunk/msm/src/main/resources/i18n/msm-en_GB.properties 2010-03-26 02:52:02 UTC (rev 302) @@ -1,6 +1,8 @@ add.table=Add a table +del.table=Remove the table add.column=Add a column -del.table=Remove the table +del.column=Remove the column +add.row=Add a row Empty=Empty Export\ Database= Exporter\ \:= @@ -84,4 +86,7 @@ deleteTableListener.JOptionPaneMessage=Please confirme the suppression of the table : deleteTableListener.JOptionPaneTitle=Delete a table deleteColumnListener.JOptionPaneMessage=Please confirme the suppression of the column : -deleteColumnListener.JOptionPaneTitle=Delete a column \ No newline at end of file +deleteColumnListener.JOptionPaneTitle=Delete a column +addRowListener.JOptionPaneMessage=Please Enter the keys of the row to create. +addRowListener.JOptionPaneTitle=Create a new row +addRowListener.JOptionPaneDefault=row's key \ No newline at end of file Modified: trunk/msm/src/main/resources/i18n/msm-fr_FR.properties =================================================================== --- trunk/msm/src/main/resources/i18n/msm-fr_FR.properties 2010-03-26 01:04:59 UTC (rev 301) +++ trunk/msm/src/main/resources/i18n/msm-fr_FR.properties 2010-03-26 02:52:02 UTC (rev 302) @@ -1,6 +1,8 @@ add.table=Ajouter une table +del.table=Supprimer la table add.column=Ajouter une colonne -del.table=Supprimer la table +del.table=Supprimer la colonne +add.row=Ajouter une ligne Empty=Vide Export\ Database= Exporter\ \:= @@ -84,4 +86,7 @@ deleteTableListener.JOptionPaneMessage=Veuillez confirmer la suppression de la table : deleteTableListener.JOptionPaneTitle=Supprimer une table deleteColumnListener.JOptionPaneMessage=Veuillez confirmer la suppression de la colonne : -deleteColumnListener.JOptionPaneTitle=Supprimer une colonne \ No newline at end of file +deleteColumnListener.JOptionPaneTitle=Supprimer une colonne +addRowListener.JOptionPaneMessage=Veuillez saisir la cl\u00E9 de la ligne. +addRowListener.JOptionPaneTitle=Cr\u00E9er une nouvelle ligne +addRowListener.JOptionPaneDefault=Cl\u00E9 de la ligne \ No newline at end of file Deleted: trunk/msm-pluginmanager/src/main/java/org/nuiton/mapstoragemanager/plugins/pluginmanager/Main.java =================================================================== --- trunk/msm-pluginmanager/src/main/java/org/nuiton/mapstoragemanager/plugins/pluginmanager/Main.java 2010-03-26 01:04:59 UTC (rev 301) +++ trunk/msm-pluginmanager/src/main/java/org/nuiton/mapstoragemanager/plugins/pluginmanager/Main.java 2010-03-26 02:52:02 UTC (rev 302) @@ -1,69 +0,0 @@ -/* - * To change this template, choose Tools | Templates - * and open the template in the editor. - */ - -package org.nuiton.mapstoragemanager.plugins.pluginmanager; - -import java.util.Locale; - -import javax.swing.SwingUtilities; -import jaxx.runtime.SwingUtil; -import org.apache.commons.logging.Log; -import org.apache.commons.logging.LogFactory; -import org.nuiton.i18n.I18n; -import org.nuiton.i18n.init.DefaultI18nInitializer; - -/** - * Main. - * - * @author Copyright CodeLutin - * @since 0.1-SNAPSHOT - */ -public final class Main { - - /** - * Logger. - */ - private static final Log LOG = LogFactory.getLog(Main.class); - - /** - * Locale. - */ - private static Locale locale = Locale.FRANCE; - - /** - * Private constructor. - */ - private Main() { - - I18n.setInitializer(new DefaultI18nInitializer("msm-pluginmanager-i18n")); - I18n.init(locale); - - try { - SwingUtil.initNimbusLoookAndFeel(); - } catch (Exception e) { - // could not find nimbus look-and-feel - LOG.warn("Could not find nimbus look-and-feel"); - } - - final PluginManager pluginManager = PluginManager.getInstance(); - pluginManager.setVisible(true); - - SwingUtilities.invokeLater(new Runnable() { - - @Override - public void run() { - pluginManager.setVisible(true); - } - }); - } - - /** - * Main to test the PluginManager alone. - * @param args args. - */ - public static void main(String ... args) { - new Main(); - } -} Modified: trunk/src/site/doc/soutenance/conclusion.tex =================================================================== --- trunk/src/site/doc/soutenance/conclusion.tex 2010-03-26 01:04:59 UTC (rev 301) +++ trunk/src/site/doc/soutenance/conclusion.tex 2010-03-26 02:52:02 UTC (rev 302) @@ -30,10 +30,12 @@ \frame { \frametitle{MSM en quelques chiffres} -Nombre de lignes de code : 6000 \\ -Nombre de classes : 47 \\ -Nombre de méthodes : 332 \\ -Nombre de "commit" : ~300 \\ +Nombre de lignes de code : 6300 \\ +Nombre de classes : 50 \\ +Nombre de méthodes : 350 \\ +Nombre de "commit" : 300 \\ +Respect des normes de codage : >99 % \\ +Couverture de code des test : ~30 % \\ Litres de café : 10 \\ }