Author: fgilet Date: 2010-03-25 18:56:40 +0100 (Thu, 25 Mar 2010) New Revision: 287 Log: Ajouts de fonctionnalit?\195?\169s sur une table vide. Modified: trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/MSMNavigationListener.java 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-25 17:37:30 UTC (rev 286) +++ trunk/msm/src/main/java/org/nuiton/mapstoragemanager/ui/engine/MSMNavigationListener.java 2010-03-25 17:56:40 UTC (rev 287) @@ -302,7 +302,7 @@ final JTree navigation = ui.getNavigation(); final BigTable bigTable = engine.getBigTable(); - /** Ask wanted table name. */ + /** Ask wanted column name. */ final String columnName = (String) JOptionPane.showInputDialog( ui, _("AddTableListener.question"), @@ -319,3 +319,57 @@ engine.uptableNavigationTree(navigation, bigTable.getPluginName()); } } + + +/** + * Listener to delete a column from the selected Table. + */ +//class AddCellListener implements ActionListener { +// +// /** +// * Current columnName. +// */ +// private String columnName; +// +// /** +// * Current columnName. +// */ +// private String tableName; +// +// /** +// * Default Constructor. +// */ +// public AddCellListener(String tableName, String columnName) { +// this.tableName = tableName; +// this.columnName = columnName; +// } +// +// /** +// * Open a JOptionPane to ask the wanted table name and create it. +// */ +// @Override +// public void actionPerformed(ActionEvent e) { +// +// /** Get MainUI et ApplicationEngine instances. */ +// final MainUI ui = MainUI.getInstance(); +// final ApplicationEngine engine = ApplicationEngine.getInstance(); +// final JTree navigation = ui.getNavigation(); +// final BigTable bigTable = engine.getBigTable(); +// +// /** Ask wanted key / value. */ +// final String key = (String) JOptionPane.showInputDialog( +// ui, +// _("KeyListener.question"), +// _("KeyListener.title"), +// JOptionPane.PLAIN_MESSAGE, +// null, +// null, +// _("KeyTableListener.default")); +// +// /** Create the Table in the BigTable */ +// bigTable.put(tableName, columnName, key, value); +// +// /** upatate Navigation Tree. */ +// engine.uptableNavigationTree(navigation, bigTable.getPluginName()); +// } +//} \ No newline at end of file