Author: tchemit Date: 2008-02-04 19:02:40 +0000 (Mon, 04 Feb 2008) New Revision: 656 Added: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AboutAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangeI18nFRAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangeI18nGBAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/CollapseAllAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ConfigAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ConnectAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExpandAllAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/GroupsAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/HelpAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/LaunchSynchronizeAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ListApplicationsAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/QuitAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SiteAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/UnconnectAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/UsersAction.java Removed: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/GroupsAction.java trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java Modified: trunk/simexplorer-is-swing/src/resources/actions.properties Log: normalisation nom paquetage Deleted: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/GroupsAction.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/GroupsAction.java 2008-02-04 19:00:41 UTC (rev 655) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/GroupsAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -1,47 +0,0 @@ -/* -* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, -* Tony Chemit, Gabriel Landais -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -* ##% */ -package fr.cemagref.simexplorer.is.ui.swing.action.admin; - -import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction; - -/** - * Action pour afficher la page de gestion des groupes d'utilisateurs - * - * @author chemit - */ - at jaxx.runtime.builder.ActionConfig( - actionCommand = "groups", - //container = SimExplorerUI.class, - name = "simexplorer.action.groups", - shortDescription = "simexplorer.action.groups.tooltip", - longDescription = "simexplorer.action.groups.help", - //smallIcon = "action/groups.png", - smallIcon = "action/groups.png", - mnemonic = 'G', - hideActionText = false -) -public class GroupsAction extends SimExplorerAbstractAction { - - private static final long serialVersionUID = 42756519520713299L; - - public GroupsAction(String name) { - super(name); - } - -} \ No newline at end of file Deleted: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java 2008-02-04 19:00:41 UTC (rev 655) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -1,45 +0,0 @@ -/* -* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, -* Tony Chemit, Gabriel Landais -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -* ##% */ -package fr.cemagref.simexplorer.is.ui.swing.action.admin; - -import fr.cemagref.simexplorer.is.ui.swing.action.SimExplorerAbstractAction; - -/** - * Action pour voir la gestion des utilisateurs - * - * @author chemit - */ - at jaxx.runtime.builder.ActionConfig( - actionCommand = "users", - name = "simexplorer.action.users", - shortDescription = "simexplorer.action.users.tooltip", - longDescription = "simexplorer.action.users.help", - smallIcon = "action/users.png", - mnemonic = 'U', - hideActionText = false -) -public class UsersAction extends SimExplorerAbstractAction { - - private static final long serialVersionUID = -8183522709906575547L; - - public UsersAction(String name) { - super(name); - } - -} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AboutAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/help/AboutAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AboutAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AboutAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,45 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; + +/** + * Action pour afficher la boit de dialogue About de l'application + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "about", + name = "simexplorer.action.about", + shortDescription = "simexplorer.action.about.tooltip", + longDescription = "simexplorer.action.about.help", + smallIcon = "action/about.png", + mnemonic = 'A', + hideActionText = false +) +public class AboutAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = 8275852970637350877L; + + public AboutAction(String name) { + super(name); + } + +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/AdvancedSearchApplicationAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,45 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; + +/** + * Action pour réinitialiser une recherche d'application + * + * @author tony + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "advancedSearchApplication", + name = "simexplorer.action.application.advancedSearch", + shortDescription = "simexplorer.action.application.advancedSearch.tooltip", + longDescription = "simexplorer.action.application.advancedSearch.help", + smallIcon = "action/advanced-search.png", + mnemonic = 'v', + hideActionText = true +) +public class AdvancedSearchApplicationAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = -155773498930710467L; + + public AdvancedSearchApplicationAction(String name) { + super(name); + } + +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangeI18nFRAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/common/ChangeI18nFRAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangeI18nFRAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangeI18nFRAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,39 @@ +/* +* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* \#\#% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.ChangeI18nAbstractAction; + +/** @author chemit */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "i18n_fr_FR", + name = "simexplorer.action.i18n.fr", + shortDescription = "simexplorer.action.i18n.fr.tooltip", + longDescription = "simexplorer.action.i18n.fr.help", + mnemonic = 'F', + smallIcon = "action/i18n-fr.png", + hideActionText = false +) +public class ChangeI18nFRAction extends ChangeI18nAbstractAction { + private static final long serialVersionUID = 7616779035801280791L; + + public ChangeI18nFRAction(String name) { + super(name); + } +} Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangeI18nGBAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/common/ChangeI18nGBAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangeI18nGBAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ChangeI18nGBAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,39 @@ +/* +* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* \#\#% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.ChangeI18nAbstractAction; + +/** @author chemit */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "i18n_en_GB", + name = "simexplorer.action.i18n.en", + shortDescription = "simexplorer.action.i18n.en.tooltip", + longDescription = "simexplorer.action.i18n.en.help", + mnemonic = 'n', + smallIcon = "action/i18n-gb.png", + hideActionText = false +) +public class ChangeI18nGBAction extends ChangeI18nAbstractAction { + private static final long serialVersionUID = 7616779035801280791L; + + public ChangeI18nGBAction(String name) { + super(name); + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/CollapseAllAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/CollapseAllAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/CollapseAllAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/CollapseAllAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,79 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeHelper; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeNode; +import fr.cemagref.simexplorer.is.ui.swing.tab.JApplicationDetailTab; + +import javax.swing.JTree; +import java.awt.event.ActionEvent; + +/** + * Pour réduire tous les noeuds de l'arbe d'une application + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "collapseAllApplication", + name = "simexplorer.action.application.collapseAll", + shortDescription = "simexplorer.action.application.collapseAll.tooltip", + longDescription = "simexplorer.action.application.collapseAll.help", + smallIcon = "action/collapseAll.png", + mnemonic = 'c', + hideActionText = true +) +public class CollapseAllAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = -3254708595851406041L; + JTree tree; + LoggableElementTreeNode node; + + public CollapseAllAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + if (!super.beforeAction(e)) { + return false; + } + JApplicationDetailTab ui = (JApplicationDetailTab) getUI(); + tree = ui.getNavigationTree(); + node = LoggableElementTreeHelper.getSelectedNodeOrRootNode(tree); + boolean result; + result = !(node == null || node.isLeaf()); + return result; + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + + node.collaspeAll(tree); + } + + @Override + protected void clear() { + super.clear(); + tree = null; + node = null; + } + +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ConfigAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/common/ConfigAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ConfigAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ConfigAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,51 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.JConfigUI; +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; +import org.codelutin.option.ui.ConfigTableModel; + +/** + * Action pour afficher la dialogue de modification de configuration + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "config", + name = "simexplorer.action.config", + shortDescription = "simexplorer.action.config.tooltip", + longDescription = "simexplorer.action.config.help", + smallIcon = "action/config.png", + mnemonic = 'P', + hideActionText = false +) +public class ConfigAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = 1449553547444065616L; + + public ConfigAction(String name) { + super(name); + } + + @Override + public void doAction(java.awt.event.ActionEvent e) { + JConfigUI.showUI(getContext().getConfig(), ConfigTableModel.TypeModel.all); + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ConnectAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/auth/ConnectAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ConnectAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ConnectAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,96 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.service.SimExplorerServiceException; +import fr.cemagref.simexplorer.is.service.StorageService; +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; +import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUIRefreshHelper; + +import java.awt.event.ActionEvent; + +/** + * Action de connexion au serveur distant + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "connect", + name = "simexplorer.action.connect", + shortDescription = "simexplorer.action.connect.tooltip", + longDescription = "simexplorer.action.connect.help", + smallIcon = "action/connect.png", + mnemonic = 'C', + hideActionText = false, + enabled = true +) +public class ConnectAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = -6172528731543675359L; + + String login; + String password; + + public ConnectAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + if (getContext().isConnected()) { + return false; + } + + login = getContext().getConfig().getLogin(); + password = getContext().getConfig().getPassword(); + if (login == null || password == null) { + //TODO show login ui + password = "password"; + getContext().getConfig().setPassword(password); + } + return true; + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + StorageService service = getContext().getRemoteStorageService(); + + try { + String token = service.loginUser(login, password); + getContext().setToken(token); + } catch (SimExplorerServiceException e1) { + //TODO alert user of error + log.warn("could not connect user for reason " + e1.getMessage()); + throw e1; + } + } + + @Override + protected void afterAction(ActionEvent e) throws Exception { + SimExplorerUIRefreshHelper.refreshConnnectState(getMainUI(), true); + } + + @Override + protected void clear() { + super.clear(); + login = null; + password = null; + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/DeleteAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,99 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.entities.data.LoggableElement; +import fr.cemagref.simexplorer.is.entities.metadata.Version; +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeHelper; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeNode; +import fr.cemagref.simexplorer.is.ui.swing.tab.JApplicationDetailTab; + +import javax.swing.JTree; +import java.awt.event.ActionEvent; +import java.io.File; + +/** + * Action pour downloader un résultat ou une librairie + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "delete", + name = "simexplorer.action.application.delete", + shortDescription = "simexplorer.action.application.delete.tooltip", + longDescription = "simexplorer.action.application.delete.help", + smallIcon = "action/delete.png", + mnemonic = 'x', + hideActionText = true +) +public class DeleteAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 7535647131305304738L; + + + JTree tree; + LoggableElementTreeNode node; + File file; + LoggableElement element; + String uuid; + Version version; + + public DeleteAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + if (!super.beforeAction(e)) { + return false; + } + JApplicationDetailTab ui = (JApplicationDetailTab) getUI(); + tree = ui.getNavigationTree(); + node = LoggableElementTreeHelper.getSelectedNodeOrRootNode(tree); + boolean result; + result = LoggableElementTreeHelper.canDelete(node); + if (result) { + // ask user confirmation of node to delete + element = (LoggableElement) node.getUserObject(); + uuid = element.getMetaData().getUuid(); + version = element.getMetaData().getVersion(); + } + result = false; + return result; + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + //StorageService service = getContext().getStorageService(((DetailTabModel) getModel()).isRemote()); + //TODO + } + + @Override + protected void clear() { + super.clear(); + tree = null; + node = null; + file = null; + element = null; + version = null; + uuid = null; + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/DownloadAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,141 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import com.healthmarketscience.rmiio.RemoteInputStream; +import com.healthmarketscience.rmiio.RemoteInputStreamClient; +import fr.cemagref.simexplorer.is.entities.data.LoggableElement; +import fr.cemagref.simexplorer.is.entities.metadata.Version; +import fr.cemagref.simexplorer.is.service.StorageService; +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; +import fr.cemagref.simexplorer.is.ui.swing.model.DetailTabModel; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeHelper; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeNode; +import fr.cemagref.simexplorer.is.ui.swing.tab.JApplicationDetailTab; + +import javax.swing.JTree; +import java.awt.event.ActionEvent; +import java.io.BufferedInputStream; +import java.io.BufferedOutputStream; +import java.io.File; +import java.io.FileOutputStream; +import java.io.InputStream; +import java.text.MessageFormat; + +/** + * Action pour downloader un résultat ou une librairie + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "download", + name = "simexplorer.action.application.download", + shortDescription = "simexplorer.action.application.download.tooltip", + longDescription = "simexplorer.action.application.download.help", + smallIcon = "action/download.png", + mnemonic = 'x', + hideActionText = true +) +public class DownloadAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 7535647131305304738L; + + protected static final MessageFormat FILENAME_PATTERN = new MessageFormat("{0}.xml"); + JTree tree; + LoggableElementTreeNode node; + File file; + LoggableElement element; + String uuid; + Version version; + private static final int BUFFER_SIZE = 8 * 1024; + + public DownloadAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + if (!super.beforeAction(e)) { + return false; + } + JApplicationDetailTab ui = (JApplicationDetailTab) getUI(); + tree = ui.getNavigationTree(); + node = LoggableElementTreeHelper.getSelectedNodeOrRootNode(tree); + boolean result; + result = LoggableElementTreeHelper.canDownload(node); + if (result) { + // ask user path where to save data + String dir = org.codelutin.util.FileUtil.getDirectory(); + if (dir == null) { + // user cancel action + return false; + } + + //Object obj= node.getUserObject(); + //element = (LoggableElement) node.getUserObject(); + //uuid = element.getMetaData().getUuid(); + //version = element.getMetaData().getVersion(); + //file = new File(FILENAME_PATTERN.format(new Object[]{uuid + "-" + version})); + } + result=false; + return result; + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + StorageService service = getContext().getStorageService(((DetailTabModel) getModel()).isRemote()); + RemoteInputStream ris = service.retrieveData(getContext().getToken(), uuid, version.toString(), "_xml"); + if (ris == null) { + // todo log error + log.warn("could not get incoming data for " + uuid); + return; + } + InputStream stream = RemoteInputStreamClient.wrap(ris); + FileOutputStream fos = new FileOutputStream(file); + BufferedInputStream bis = new BufferedInputStream(stream); + BufferedOutputStream bos = new BufferedOutputStream(fos); + try { + byte[] buffer = new byte[BUFFER_SIZE]; + while (bis.read(buffer, 0, BUFFER_SIZE) != -1) { + bos.write(buffer); + bos.flush(); + } + } finally { + if (bis != null) { + bis.close(); + } + if (bos != null) { + bos.flush(); + bos.close(); + } + } + } + + @Override + protected void clear() { + super.clear(); + tree = null; + node = null; + file = null; + element = null; + version = null; + uuid = null; + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExpandAllAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ExpandAllAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExpandAllAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExpandAllAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,77 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeNode; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeHelper; +import fr.cemagref.simexplorer.is.ui.swing.tab.JApplicationDetailTab; + +import javax.swing.JTree; +import java.awt.event.ActionEvent; + +/** + * Pour dérouler tous les noeuds de l'arbre d'une application + * + * @author tony + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "expandAllApplication", + name = "simexplorer.action.application.expandAll", + shortDescription = "simexplorer.action.application.expandAll.tooltip", + longDescription = "simexplorer.action.application.expandAll.help", + smallIcon = "action/expandAll.png", + mnemonic = 'e', + hideActionText = true +) +public class ExpandAllAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 9033359716418852179L; + JTree tree; + LoggableElementTreeNode node; + + public ExpandAllAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + if (!super.beforeAction(e)) { + return false; + } + JApplicationDetailTab ui = (JApplicationDetailTab) getUI(); + tree = ui.getNavigationTree(); + node = LoggableElementTreeHelper.getSelectedNodeOrRootNode(tree); + boolean result; + result = !(node == null || node.isLeaf()); + return result; + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + node.expandAll(tree); + } + + @Override + protected void clear() { + super.clear(); + tree = null; + node = null; + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ExportApplicationAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,101 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.entities.data.LoggableElement; +import fr.cemagref.simexplorer.is.entities.metadata.Version; +import fr.cemagref.simexplorer.is.service.StorageService; +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; +import fr.cemagref.simexplorer.is.ui.swing.model.DetailTabModel; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeHelper; +import fr.cemagref.simexplorer.is.ui.swing.model.LoggableElementTreeNode; +import fr.cemagref.simexplorer.is.ui.swing.tab.JApplicationDetailTab; + +import javax.swing.JTree; +import java.awt.event.ActionEvent; +import java.io.File; + +/** + * Action pour exporter une application + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "exportApplication", + name = "simexplorer.action.application.export", + shortDescription = "simexplorer.action.application.export.tooltip", + longDescription = "simexplorer.action.application.export.help", + smallIcon = "action/export-application.png", + mnemonic = 'x', + hideActionText = true +) +public class ExportApplicationAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 7535647131305304738L; + + JTree tree; + LoggableElementTreeNode node; + File file; + LoggableElement element; + String uuid; + Version version; + + public ExportApplicationAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + if (!super.beforeAction(e)) { + return false; + } + JApplicationDetailTab ui = (JApplicationDetailTab) getUI(); + tree = ui.getNavigationTree(); + node = LoggableElementTreeHelper.getSelectedNodeOrRootNode(tree); + boolean result; + result = LoggableElementTreeHelper.canExport(node); + if (result) { + element = (LoggableElement) node.getUserObject(); + uuid = element.getMetaData().getUuid(); + version = element.getMetaData().getVersion(); + } + return result; + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + + //TODO Where to save (if local to remote and vice-versa ?) + StorageService service = getContext().getStorageService(((DetailTabModel) getModel()).isRemote()); + + //service.exportElement(getContext().getToken(), null, uuid, version.toString()); + } + + @Override + protected void clear() { + super.clear(); + tree = null; + node = null; + file = null; + element = null; + version = null; + uuid = null; + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/GroupsAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/GroupsAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/GroupsAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/GroupsAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,47 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; + +/** + * Action pour afficher la page de gestion des groupes d'utilisateurs + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "groups", + //container = SimExplorerUI.class, + name = "simexplorer.action.groups", + shortDescription = "simexplorer.action.groups.tooltip", + longDescription = "simexplorer.action.groups.help", + //smallIcon = "action/groups.png", + smallIcon = "action/groups.png", + mnemonic = 'G', + hideActionText = false +) +public class GroupsAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = 42756519520713299L; + + public GroupsAction(String name) { + super(name); + } + +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/HelpAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/help/HelpAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/HelpAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/HelpAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,45 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; + +/** + * Action pour afficher l'aide principale + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "help", + name = "simexplorer.action.help", + shortDescription = "simexplorer.action.help.tooltip", + longDescription = "simexplorer.action.help.help", + smallIcon = "action/help.png", + mnemonic = 'e', + hideActionText = false +) +public class HelpAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = 8250247303366300958L; + + public HelpAction(String name) { + super(name); + } + +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ImportApplicationAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,46 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; + +/** + * Action de base pour importer une application + * + * @author tony + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "importApplication", + name = "simexplorer.action.application.import", + shortDescription = "simexplorer.action.application.import.tooltip", + longDescription = "simexplorer.action.application.import.help", + smallIcon = "action/import-application.png", + mnemonic = 'i', + hideActionText = false +) +public class ImportApplicationAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 3377670691203328711L; + + + public ImportApplicationAction(String name) { + super(name); + } + +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/LaunchSynchronizeAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/LaunchSynchronizeAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/LaunchSynchronizeAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/LaunchSynchronizeAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,44 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; + +/** + * Action pouyr lancer la synchro + * + * @author tony + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "launchSynchronize", + name = "simexplorer.action.synchronize", + shortDescription = "simexplorer.action.synchronize.tooltip", + longDescription = "simexplorer.action.synchronize.help", + smallIcon = "action/reload.png", + hideActionText = false +) +public class LaunchSynchronizeAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 8379937369551031306L; + + public LaunchSynchronizeAction(String name) { + super(name); + } + +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ListApplicationsAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ListApplicationsAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ListApplicationsAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ListApplicationsAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,41 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; + +/** + * Action pour ??? + * + * @author tony + */ +public class ListApplicationsAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = 6220034344778635703L; + + public ListApplicationsAction(String name) { + super(name); + } + + @Override + public void actionPerformed(java.awt.event.ActionEvent e) { + super.actionPerformed(e); + //TODO + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/QuitAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/common/QuitAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/QuitAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/QuitAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,51 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; + +/** + * Action pour quitter l'application + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "quit", + name = "simexplorer.action.quit", + shortDescription = "simexplorer.action.quit.tooltip", + longDescription = "simexplorer.action.quit.help", + smallIcon = "action/quit.png", + mnemonic = 'Q', + hideActionText = false +) +public class QuitAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = -2291089937320691627L; + + public QuitAction(String name) { + super(name); + } + + @Override + public void actionPerformed(java.awt.event.ActionEvent e) { + super.actionPerformed(e); + //TODO Fermer tous les tabs + getMainUI().dispose(); + } +} Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/ResetSearchApplicationAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,98 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; +import fr.cemagref.simexplorer.is.ui.swing.model.JApplicationTableModel; +import fr.cemagref.simexplorer.is.ui.swing.model.ListTabModel; +import fr.cemagref.simexplorer.is.ui.swing.tab.JApplicationListTab; +import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUIRefreshHelper; + +import javax.swing.JTable; +import java.awt.event.ActionEvent; + +/** + * Action pour réinitialiser une recherche d'application + * + * @author tony + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "resetSearchApplication", + name = "simexplorer.action.application.resetSearch", + shortDescription = "simexplorer.action.application.resetSearch.tooltip", + longDescription = "simexplorer.action.application.resetSearch.help", + smallIcon = "action/reset-search.png", + mnemonic = 'e', + hideActionText = true, + enabled = false +) +public class ResetSearchApplicationAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = -155773498930710467L; + + public ResetSearchApplicationAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + ListTabModel model = (ListTabModel) getModel(); + JApplicationListTab ui = (JApplicationListTab) getUI(); + // always clean the input text (should be done in jaxx) + ui.getSearchText().setText(null); + if (!model.hasQuery()) { + // directly refresh search actions + // but do not realize action + SimExplorerUIRefreshHelper.refreshSearchActions(ui,model); + return false; + } + // only reset search if something was previously search + return true; + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + ListTabModel model = (ListTabModel) getModel(); + + // reset query in model + model.setQuery(null); + + // a new search begins always on first page + model.getPagination().setFirstIndex(0); + + // get data from service + model.updateTabModel(isRemote(), getContext()); + + // update table model in ui + JApplicationListTab container = (JApplicationListTab) getUI(); + JTable table = container.getTable(); + JApplicationTableModel modelTab = (JApplicationTableModel) table.getModel(); + modelTab.setData(model.getList()); + + // refresh ui + SimExplorerUIRefreshHelper.refreshListTabUI(container, model); + } + + @Override + protected void clear() { + super.clear(); + setTab(null); + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/application/SearchApplicationAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,91 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; +import fr.cemagref.simexplorer.is.ui.swing.model.ListTabModel; +import fr.cemagref.simexplorer.is.ui.swing.model.JApplicationTableModel; +import fr.cemagref.simexplorer.is.ui.swing.tab.JApplicationListTab; +import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUIRefreshHelper; + +import javax.swing.JTextField; +import javax.swing.JTable; +import java.awt.event.ActionEvent; + +/** + * Action pour lancer une recherche d'application + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "searchApplication", + name = "simexplorer.action.application.search", + shortDescription = "simexplorer.action.application.search.tooltip", + longDescription = "simexplorer.action.application.search.help", + smallIcon = "action/search.png", + mnemonic = 'e', + hideActionText = true, + enabled = false +) +public class SearchApplicationAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = -8537587629478588257L; + String query; + + public SearchApplicationAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + JTextField uiObject = (JTextField) getUIObject("searchText"); + query = uiObject.getText(); + ListTabModel model = (ListTabModel) getModel(); + return !query.isEmpty() && !query.equals(model.getQuery()); + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + ListTabModel model = (ListTabModel) getModel(); + model.setQuery(query); + + // a new search begins always on first page + model.getPagination().setFirstIndex(0); + + // get data from service + model.updateTabModel(isRemote(), getContext()); + + // update table model in ui + JApplicationListTab container = (JApplicationListTab) getUI(); + JTable table = container.getTable(); + JApplicationTableModel modelTab = (JApplicationTableModel) table.getModel(); + modelTab.setData(model.getList()); + + // refresh ui + SimExplorerUIRefreshHelper.refreshListTabUI(container, model); + } + + @Override + protected void clear() { + super.clear(); + query = null; + setTab(null); + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SiteAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/help/SiteAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SiteAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SiteAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,45 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; + +/** + * Action pour accéder au site de l'application + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "site", + name = "simexplorer.action.site", + shortDescription = "simexplorer.action.site.tooltip", + longDescription = "simexplorer.action.site.help", + smallIcon = "action/site.png", + mnemonic = 'S', + hideActionText = false +) +public class SiteAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = 7458557977976803799L; + + public SiteAction(String name) { + super(name); + } + +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/UnconnectAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/auth/UnconnectAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/UnconnectAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/UnconnectAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,65 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; +import fr.cemagref.simexplorer.is.ui.swing.SimExplorerUIRefreshHelper; + +import java.awt.event.ActionEvent; + +/** + * Action pour se deconnecter du serveur distant + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "unconnect", + name = "simexplorer.action.unconnect", + shortDescription = "simexplorer.action.unconnect.tooltip", + longDescription = "simexplorer.action.unconnect.help", + mnemonic = 'n', + smallIcon = "action/unconnect.png", + hideActionText = false, + enabled = false +) +public class UnconnectAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = 2248642521834932196L; + + public UnconnectAction(String name) { + super(name); + } + + @Override + protected boolean beforeAction(ActionEvent e) throws Exception { + return getContext().isConnected(); + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + getContext().setToken(null); + //TODO disconnect from server ? + } + + @Override + protected void afterAction(ActionEvent e) throws Exception { + SimExplorerUIRefreshHelper.refreshConnnectState(getMainUI(), false); + } +} \ No newline at end of file Copied: trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/UsersAction.java (from rev 649, trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/action/admin/UsersAction.java) =================================================================== --- trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/UsersAction.java (rev 0) +++ trunk/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/UsersAction.java 2008-02-04 19:02:40 UTC (rev 656) @@ -0,0 +1,45 @@ +/* +* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin, +* Tony Chemit, Gabriel Landais +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +* ##% */ +package fr.cemagref.simexplorer.is.ui.swing.actions; + +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractAction; + +/** + * Action pour voir la gestion des utilisateurs + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "users", + name = "simexplorer.action.users", + shortDescription = "simexplorer.action.users.tooltip", + longDescription = "simexplorer.action.users.help", + smallIcon = "action/users.png", + mnemonic = 'U', + hideActionText = false +) +public class UsersAction extends SimExplorerAbstractAction { + + private static final long serialVersionUID = -8183522709906575547L; + + public UsersAction(String name) { + super(name); + } + +} \ No newline at end of file Modified: trunk/simexplorer-is-swing/src/resources/actions.properties =================================================================== --- trunk/simexplorer-is-swing/src/resources/actions.properties 2008-02-04 19:00:41 UTC (rev 655) +++ trunk/simexplorer-is-swing/src/resources/actions.properties 2008-02-04 19:02:40 UTC (rev 656) @@ -1,10 +1,10 @@ -action.connect=fr.cemagref.simexplorer.is.ui.swing.action.auth.ConnectAction -action.unconnect=fr.cemagref.simexplorer.is.ui.swing.action.auth.UnconnectAction +action.connect=fr.cemagref.simexplorer.is.ui.swing.actions.ConnectAction +action.unconnect=fr.cemagref.simexplorer.is.ui.swing.actions.UnconnectAction -action.quit=fr.cemagref.simexplorer.is.ui.swing.action.common.QuitAction +action.quit=fr.cemagref.simexplorer.is.ui.swing.actions.QuitAction -action.i18n_fr_FR=fr.cemagref.simexplorer.is.ui.swing.action.common.ChangeI18nFRAction -action.i18n_en_GB=fr.cemagref.simexplorer.is.ui.swing.action.common.ChangeI18nGBAction +action.i18n_fr_FR=fr.cemagref.simexplorer.is.ui.swing.actions.ChangeI18nFRAction +action.i18n_en_GB=fr.cemagref.simexplorer.is.ui.swing.actions.ChangeI18nGBAction action.closeTab_local=fr.cemagref.simexplorer.is.ui.swing.actions.CloseTabAction action.closeTab_remote=fr.cemagref.simexplorer.is.ui.swing.actions.CloseTabAction @@ -20,11 +20,11 @@ action.toggleTab_remote=fr.cemagref.simexplorer.is.ui.swing.actions.ToggleRemoteTabAction action.toggleTab_synchronize=fr.cemagref.simexplorer.is.ui.swing.actions.ToggleSynchronizeTabAction -action.config=fr.cemagref.simexplorer.is.ui.swing.action.common.ConfigAction +action.config=fr.cemagref.simexplorer.is.ui.swing.actions.ConfigAction -action.searchApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.SearchApplicationAction -action.resetSearchApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.ResetSearchApplicationAction -action.advancedSearchApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.AdvancedSearchApplicationAction +action.searchApplication=fr.cemagref.simexplorer.is.ui.swing.actions.SearchApplicationAction +action.resetSearchApplication=fr.cemagref.simexplorer.is.ui.swing.actions.ResetSearchApplicationAction +action.advancedSearchApplication=fr.cemagref.simexplorer.is.ui.swing.actions.AdvancedSearchApplicationAction action.goFirstPage=fr.cemagref.simexplorer.is.ui.swing.actions.GoFirstPageAction action.goPreviousPage=fr.cemagref.simexplorer.is.ui.swing.actions.GoPreviousPageAction @@ -33,18 +33,18 @@ action.goLastPage=fr.cemagref.simexplorer.is.ui.swing.actions.GoLastPageAction action.changeSizor=fr.cemagref.simexplorer.is.ui.swing.actions.ChangeSizorAction -action.collapseAllApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.CollapseAllAction -action.expandAllApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.ExpandAllAction -action.download=fr.cemagref.simexplorer.is.ui.swing.action.application.DownloadAction -action.delete=fr.cemagref.simexplorer.is.ui.swing.action.application.DeleteAction +action.collapseAllApplication=fr.cemagref.simexplorer.is.ui.swing.actions.CollapseAllAction +action.expandAllApplication=fr.cemagref.simexplorer.is.ui.swing.actions.ExpandAllAction +action.download=fr.cemagref.simexplorer.is.ui.swing.actions.DownloadAction +action.delete=fr.cemagref.simexplorer.is.ui.swing.actions.DeleteAction -action.exportApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.ExportApplicationAction -action.importApplication=fr.cemagref.simexplorer.is.ui.swing.action.application.ImportApplicationAction -action.launchSynchronize=fr.cemagref.simexplorer.is.ui.swing.action.application.LaunchSynchronizeAction +action.exportApplication=fr.cemagref.simexplorer.is.ui.swing.actions.ExportApplicationAction +action.importApplication=fr.cemagref.simexplorer.is.ui.swing.actions.ImportApplicationAction +action.launchSynchronize=fr.cemagref.simexplorer.is.ui.swing.actions.LaunchSynchronizeAction -action.groups=fr.cemagref.simexplorer.is.ui.swing.action.admin.GroupsAction -action.users=fr.cemagref.simexplorer.is.ui.swing.action.admin.UsersAction +action.groups=fr.cemagref.simexplorer.is.ui.swing.actions.GroupsAction +action.users=fr.cemagref.simexplorer.is.ui.swing.actions.UsersAction -action.site=fr.cemagref.simexplorer.is.ui.swing.action.help.SiteAction -action.help=fr.cemagref.simexplorer.is.ui.swing.action.help.HelpAction -action.about=fr.cemagref.simexplorer.is.ui.swing.action.help.AboutAction \ No newline at end of file +action.site=fr.cemagref.simexplorer.is.ui.swing.actions.SiteAction +action.help=fr.cemagref.simexplorer.is.ui.swing.actions.HelpAction +action.about=fr.cemagref.simexplorer.is.ui.swing.actions.AboutAction \ No newline at end of file