Author: tchemit Date: 2008-02-11 20:56:44 +0000 (Mon, 11 Feb 2008) New Revision: 839 Added: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SynchronizeElementAction.java Modified: trunk/simexplorer-is/simexplorer-is-swing/src/resources/actions.properties trunk/simexplorer-is/simexplorer-is-swing/src/uimodel/fr/cemagref/simexplorer/is/ui/swing/tab/JApplicationDetailTab.jaxx trunk/simexplorer-is/simexplorer-is-swing/src/uimodel/fr/cemagref/simexplorer/is/ui/swing/tab/JApplicationListTab.jaxx Log: normalisation nom de l'action de synchronisation Copied: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SynchronizeElementAction.java (from rev 837, trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/LaunchSynchronizeAction.java) =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SynchronizeElementAction.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SynchronizeElementAction.java 2008-02-11 20:56:44 UTC (rev 839) @@ -0,0 +1,53 @@ +/* +* ##% 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; +import fr.cemagref.simexplorer.is.ui.SimExplorerRuntimeException; + +import java.awt.event.ActionEvent; + +/** + * Action pour lancer la synchro + * + * @author tony + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "synchronizeElement", + name = "simexplorer.action.synchronize", + shortDescription = "simexplorer.action.synchronize.tooltip", + longDescription = "simexplorer.action.synchronize.help", + smallIcon = "action/reload.png", + hideActionText = true +) +public class SynchronizeElementAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 8379937369551031306L; + + public SynchronizeElementAction(String name) { + super(name); + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + //TODO prepare SynchronizeTabModel with uuid et version + throw new SimExplorerRuntimeException(this+" is not implemented yet!"); + } +} \ No newline at end of file Modified: trunk/simexplorer-is/simexplorer-is-swing/src/resources/actions.properties =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/resources/actions.properties 2008-02-11 20:56:14 UTC (rev 838) +++ trunk/simexplorer-is/simexplorer-is-swing/src/resources/actions.properties 2008-02-11 20:56:44 UTC (rev 839) @@ -25,7 +25,7 @@ action.showTab_synchronize=fr.cemagref.simexplorer.is.ui.swing.actions.ShowSynchronizeTabAction # ??? TODO suppress -action.launchSynchronize=fr.cemagref.simexplorer.is.ui.swing.actions.LaunchSynchronizeAction +action.synchronizeElement=fr.cemagref.simexplorer.is.ui.swing.actions.SynchronizeElementAction # toggle tab actions action.toggleTab_local=fr.cemagref.simexplorer.is.ui.swing.actions.ToggleLocalTabAction Modified: trunk/simexplorer-is/simexplorer-is-swing/src/uimodel/fr/cemagref/simexplorer/is/ui/swing/tab/JApplicationDetailTab.jaxx =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/uimodel/fr/cemagref/simexplorer/is/ui/swing/tab/JApplicationDetailTab.jaxx 2008-02-11 20:56:14 UTC (rev 838) +++ trunk/simexplorer-is/simexplorer-is-swing/src/uimodel/fr/cemagref/simexplorer/is/ui/swing/tab/JApplicationDetailTab.jaxx 2008-02-11 20:56:44 UTC (rev 839) @@ -39,7 +39,7 @@ </cell> <cell anchor="east"> <JToolBar> - <JButton id='launchSynchronize'/> + <JButton id='synchronizeElement'/> <JButton id='exportElement'/> <JButton id='downloadElement'/> <JButton id='deleteElement'/> Modified: trunk/simexplorer-is/simexplorer-is-swing/src/uimodel/fr/cemagref/simexplorer/is/ui/swing/tab/JApplicationListTab.jaxx =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/uimodel/fr/cemagref/simexplorer/is/ui/swing/tab/JApplicationListTab.jaxx 2008-02-11 20:56:14 UTC (rev 838) +++ trunk/simexplorer-is/simexplorer-is-swing/src/uimodel/fr/cemagref/simexplorer/is/ui/swing/tab/JApplicationListTab.jaxx 2008-02-11 20:56:44 UTC (rev 839) @@ -7,7 +7,7 @@ <row> <cell fill='horizontal' insets='0,0,0,0'> <JPopupMenu id="tablePopupMenu" invoker='{table}' enabled='false'> - <JMenuItem id='launchSynchronize'/> + <JMenuItem id='synchronizeElement'/> <JMenuItem id='exportElement'/> <JMenuItem id='downloadElement'/> <JMenuItem id='deleteElement'/>
participants (1)
-
tchemit@users.labs.libre-entreprise.org