Author: tchemit Date: 2008-02-11 20:35:46 +0000 (Mon, 11 Feb 2008) New Revision: 826 Added: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteElementAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadElementAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchAction.java Removed: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteLoggableElementAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadLoggableElementAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java Modified: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/LaunchSynchronizeAction.java trunk/simexplorer-is/simexplorer-is-swing/src/resources/actions.properties Log: normalisation actions Copied: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchAction.java (from rev 818, trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java) =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchAction.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -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.advancedSearch", + shortDescription = "simexplorer.action.advancedSearch.tooltip", + longDescription = "simexplorer.action.advancedSearch.help", + smallIcon = "action/advanced-search.png", + mnemonic = 'v', + hideActionText = true +) +public class AdvancedSearchAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = -155773498930710467L; + + public AdvancedSearchAction(String name) { + super(name); + } + +} \ No newline at end of file Deleted: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java 2008-02-11 20:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/AdvancedSearchApplicationAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -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.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.advancedSearch", - shortDescription = "simexplorer.action.advancedSearch.tooltip", - longDescription = "simexplorer.action.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/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteElementAction.java (from rev 818, trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteLoggableElementAction.java) =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteElementAction.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteElementAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -0,0 +1,59 @@ +/* +* ##% 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.actions.util.DeleteAbstractAction; +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 fr.cemagref.simexplorer.is.ui.SimExplorerRuntimeException; + +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 = "deleteLoggableElement", + name = "simexplorer.action.deleteLoggableElement", + shortDescription = "simexplorer.action.deleteLoggableElement.tooltip", + longDescription = "simexplorer.action.deleteLoggableElement.help", + smallIcon = "action/delete.png", + mnemonic = 'x', + hideActionText = true +) +public class DeleteElementAction extends DeleteAbstractAction { + private static final long serialVersionUID = 5227114960042141191L; + + public DeleteElementAction(String name) { + super(name); + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + } +} \ No newline at end of file Deleted: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteLoggableElementAction.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteLoggableElementAction.java 2008-02-11 20:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DeleteLoggableElementAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -1,59 +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.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.actions.util.DeleteAbstractAction; -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 fr.cemagref.simexplorer.is.ui.SimExplorerRuntimeException; - -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 = "deleteLoggableElement", - name = "simexplorer.action.deleteLoggableElement", - shortDescription = "simexplorer.action.deleteLoggableElement.tooltip", - longDescription = "simexplorer.action.deleteLoggableElement.help", - smallIcon = "action/delete.png", - mnemonic = 'x', - hideActionText = true -) -public class DeleteLoggableElementAction extends DeleteAbstractAction { - private static final long serialVersionUID = 5227114960042141191L; - - public DeleteLoggableElementAction(String name) { - super(name); - } - - @Override - protected void doAction(ActionEvent e) throws Exception { - super.doAction(e); - } -} \ No newline at end of file Copied: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadElementAction.java (from rev 818, trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadLoggableElementAction.java) =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadElementAction.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadElementAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -0,0 +1,76 @@ +/* +* ##% 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.StorageServiceHelper; +import fr.cemagref.simexplorer.is.ui.swing.model.DetailTabModel; +import fr.cemagref.simexplorer.is.ui.swing.actions.util.DownloadAbstractAction; + +import java.io.BufferedInputStream; +import java.io.File; +import java.text.MessageFormat; + +import org.codelutin.util.FileUtil; + +/** + * Action pour downloader un Loggable Element + * + * @author chemit + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "downloadLoggableElement", + name = "simexplorer.action.downloadLoggableElement", + shortDescription = "simexplorer.action.downloadLoggableElement.tooltip", + longDescription = "simexplorer.action.downloadLoggableElement.help", + smallIcon = "action/downloadLoggableElement.png", + mnemonic = 'x', + hideActionText = true +) +public class DownloadElementAction extends DownloadAbstractAction { + + protected static final MessageFormat FILENAME_PATTERN = new MessageFormat("{0}.zip"); + private static final long serialVersionUID = 5141501117088118393L; + + public DownloadElementAction(String name) { + super(name); + } + + protected File getFile() { + String dir = FileUtil.getDirectory("select directory where to download a Zip of '" + getElement().getName()+"-"+getVersion() + "'","choose a dir"); + if (dir == null) { + // user cancel action + return null; + } + File parent = new File(dir); + if (!parent.exists()) { + parent.mkdirs(); + } + File file; + file = new File(parent, FILENAME_PATTERN.format(new Object[]{getElement().getName() + "-" + getVersion()})); + return file; + } + + protected BufferedInputStream getInputStream() { + BufferedInputStream bis; + bis = StorageServiceHelper.downloadElementFull(getContext(), ((DetailTabModel) getModel()).isRemote(), getUuid(), getVersion().toString()); + //TODO bis = StorageServiceHelper.retrieveElementFull(getContext(), ((DetailTabModel) getModel()).isRemote(), getUuid(), getVersion().toString()); + return bis; + } + +} \ No newline at end of file Deleted: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadLoggableElementAction.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadLoggableElementAction.java 2008-02-11 20:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/DownloadLoggableElementAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -1,76 +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.actions; - -import fr.cemagref.simexplorer.is.ui.StorageServiceHelper; -import fr.cemagref.simexplorer.is.ui.swing.model.DetailTabModel; -import fr.cemagref.simexplorer.is.ui.swing.actions.util.DownloadAbstractAction; - -import java.io.BufferedInputStream; -import java.io.File; -import java.text.MessageFormat; - -import org.codelutin.util.FileUtil; - -/** - * Action pour downloader un Loggable Element - * - * @author chemit - */ - at jaxx.runtime.builder.ActionConfig( - actionCommand = "downloadLoggableElement", - name = "simexplorer.action.downloadLoggableElement", - shortDescription = "simexplorer.action.downloadLoggableElement.tooltip", - longDescription = "simexplorer.action.downloadLoggableElement.help", - smallIcon = "action/downloadLoggableElement.png", - mnemonic = 'x', - hideActionText = true -) -public class DownloadLoggableElementAction extends DownloadAbstractAction { - - protected static final MessageFormat FILENAME_PATTERN = new MessageFormat("{0}.zip"); - private static final long serialVersionUID = 5141501117088118393L; - - public DownloadLoggableElementAction(String name) { - super(name); - } - - protected File getFile() { - String dir = FileUtil.getDirectory("select directory where to download a Zip of '" + getElement().getName()+"-"+getVersion() + "'","choose a dir"); - if (dir == null) { - // user cancel action - return null; - } - File parent = new File(dir); - if (!parent.exists()) { - parent.mkdirs(); - } - File file; - file = new File(parent, FILENAME_PATTERN.format(new Object[]{getElement().getName() + "-" + getVersion()})); - return file; - } - - protected BufferedInputStream getInputStream() { - BufferedInputStream bis; - bis = StorageServiceHelper.downloadElementFull(getContext(), ((DetailTabModel) getModel()).isRemote(), getUuid(), getVersion().toString()); - //TODO bis = StorageServiceHelper.retrieveElementFull(getContext(), ((DetailTabModel) getModel()).isRemote(), getUuid(), getVersion().toString()); - return bis; - } - -} \ No newline at end of file Copied: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportAction.java (from rev 818, trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java) =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportAction.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -0,0 +1,95 @@ +/* +* ##% 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 fr.cemagref.simexplorer.is.ui.SimExplorerRuntimeException; + +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.export", + shortDescription = "simexplorer.action.export.tooltip", + longDescription = "simexplorer.action.export.help", + smallIcon = "action/export-application.png", + mnemonic = 'x', + hideActionText = true +) +public class ExportAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 7535647131305304738L; + + JTree tree; + LoggableElementTreeNode node; + File file; + LoggableElement element; + String uuid; + Version version; + + public ExportAction(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 { + throw new SimExplorerRuntimeException(this+" is not implemented yet!"); + } + + @Override + protected void clear() { + super.clear(); + tree = null; + node = null; + file = null; + element = null; + version = null; + uuid = null; + } +} \ No newline at end of file Deleted: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java 2008-02-11 20:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ExportApplicationAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -1,95 +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.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 fr.cemagref.simexplorer.is.ui.SimExplorerRuntimeException; - -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.export", - shortDescription = "simexplorer.action.export.tooltip", - longDescription = "simexplorer.action.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 { - throw new SimExplorerRuntimeException(this+" is not implemented yet!"); - } - - @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/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportAction.java (from rev 818, trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java) =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportAction.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -0,0 +1,54 @@ +/* +* ##% 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.SimExplorerRuntimeException; +import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; + +import java.awt.event.ActionEvent; + +/** + * Action de base pour importer une application + * + * @author tony + */ + at jaxx.runtime.builder.ActionConfig( + actionCommand = "importApplication", + name = "simexplorer.action.import", + shortDescription = "simexplorer.action.import.tooltip", + longDescription = "simexplorer.action.import.help", + smallIcon = "action/import-application.png", + mnemonic = 'i', + hideActionText = false +) +public class ImportAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = 3377670691203328711L; + + + public ImportAction(String name) { + super(name); + } + + @Override + protected void doAction(ActionEvent e) throws Exception { + super.doAction(e); + throw new SimExplorerRuntimeException(this + " is not implemented yet!"); + } +} \ No newline at end of file Deleted: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java 2008-02-11 20:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ImportApplicationAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -1,54 +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.actions; - -import fr.cemagref.simexplorer.is.ui.SimExplorerRuntimeException; -import fr.cemagref.simexplorer.is.ui.swing.actions.util.SimExplorerAbstractTabAction; - -import java.awt.event.ActionEvent; - -/** - * Action de base pour importer une application - * - * @author tony - */ - at jaxx.runtime.builder.ActionConfig( - actionCommand = "importApplication", - name = "simexplorer.action.import", - shortDescription = "simexplorer.action.import.tooltip", - longDescription = "simexplorer.action.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); - } - - @Override - protected void doAction(ActionEvent e) throws Exception { - super.doAction(e); - throw new SimExplorerRuntimeException(this + " is not implemented yet!"); - } -} \ No newline at end of file Modified: 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/LaunchSynchronizeAction.java 2008-02-11 20:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/LaunchSynchronizeAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -47,6 +47,7 @@ @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 Copied: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchAction.java (from rev 818, trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java) =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchAction.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -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.resetSearch", + shortDescription = "simexplorer.action.resetSearch.tooltip", + longDescription = "simexplorer.action.resetSearch.help", + smallIcon = "action/reset-search.png", + mnemonic = 'e', + hideActionText = true, + enabled = false +) +public class ResetSearchAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = -155773498930710467L; + + public ResetSearchAction(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 Deleted: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java 2008-02-11 20:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/ResetSearchApplicationAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -1,98 +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.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.resetSearch", - shortDescription = "simexplorer.action.resetSearch.tooltip", - longDescription = "simexplorer.action.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/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchAction.java (from rev 818, trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java) =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchAction.java (rev 0) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -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.search", + shortDescription = "simexplorer.action.search.tooltip", + longDescription = "simexplorer.action.search.help", + smallIcon = "action/search.png", + mnemonic = 'e', + hideActionText = true, + enabled = false +) +public class SearchAction extends SimExplorerAbstractTabAction { + + private static final long serialVersionUID = -8537587629478588257L; + String query; + + public SearchAction(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 Deleted: trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java =================================================================== --- trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java 2008-02-11 20:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/java/fr/cemagref/simexplorer/is/ui/swing/actions/SearchApplicationAction.java 2008-02-11 20:35:46 UTC (rev 826) @@ -1,91 +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.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.search", - shortDescription = "simexplorer.action.search.tooltip", - longDescription = "simexplorer.action.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 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:35:28 UTC (rev 825) +++ trunk/simexplorer-is/simexplorer-is-swing/src/resources/actions.properties 2008-02-11 20:35:46 UTC (rev 826) @@ -1,32 +1,42 @@ +# authentication actions action.connect=fr.cemagref.simexplorer.is.ui.swing.actions.ConnectAction action.unconnect=fr.cemagref.simexplorer.is.ui.swing.actions.UnconnectAction +# config action +action.config=fr.cemagref.simexplorer.is.ui.swing.actions.ConfigAction + +# quit action action.quit=fr.cemagref.simexplorer.is.ui.swing.actions.QuitAction +# i18n actions action.i18n_fr_FR=fr.cemagref.simexplorer.is.ui.swing.actions.ChangeI18nFRAction action.i18n_en_GB=fr.cemagref.simexplorer.is.ui.swing.actions.ChangeI18nGBAction +# close tab actions action.closeTab_local=fr.cemagref.simexplorer.is.ui.swing.actions.CloseTabAction action.closeTab_remote=fr.cemagref.simexplorer.is.ui.swing.actions.CloseTabAction action.closeTab_detail=fr.cemagref.simexplorer.is.ui.swing.actions.CloseTabAction action.closeTab_synchronize=fr.cemagref.simexplorer.is.ui.swing.actions.CloseTabAction +# show tab actions action.showTab_local=fr.cemagref.simexplorer.is.ui.swing.actions.ShowLocalTabAction action.showTab_remote=fr.cemagref.simexplorer.is.ui.swing.actions.ShowRemoteTabAction action.showTab_detail=fr.cemagref.simexplorer.is.ui.swing.actions.ShowDetailTabAction action.showTab_synchronize=fr.cemagref.simexplorer.is.ui.swing.actions.ShowSynchronizeTabAction +# ??? TODO suppress action.launchSynchronize=fr.cemagref.simexplorer.is.ui.swing.actions.LaunchSynchronizeAction +# toggle tab actions action.toggleTab_local=fr.cemagref.simexplorer.is.ui.swing.actions.ToggleLocalTabAction action.toggleTab_remote=fr.cemagref.simexplorer.is.ui.swing.actions.ToggleRemoteTabAction -action.config=fr.cemagref.simexplorer.is.ui.swing.actions.ConfigAction +# search actions +action.search=fr.cemagref.simexplorer.is.ui.swing.actions.SearchAction +action.resetSearch=fr.cemagref.simexplorer.is.ui.swing.actions.ResetSearchAction +action.advancedSearch=fr.cemagref.simexplorer.is.ui.swing.actions.AdvancedSearchAction -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 - +# list navigation actions action.goFirstPage=fr.cemagref.simexplorer.is.ui.swing.actions.GoFirstPageAction action.goPreviousPage=fr.cemagref.simexplorer.is.ui.swing.actions.GoPreviousPageAction action.goPage=fr.cemagref.simexplorer.is.ui.swing.actions.ChangePageAction @@ -34,16 +44,30 @@ 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.actions.CollapseAllAction -action.expandAllApplication=fr.cemagref.simexplorer.is.ui.swing.actions.ExpandAllAction -action.downloadLoggableElement=fr.cemagref.simexplorer.is.ui.swing.actions.DownloadLoggableElementAction +# collapse tree node actions +action.collapseAll=fr.cemagref.simexplorer.is.ui.swing.actions.CollapseAllAction +action.collapseAllLocal=fr.cemagref.simexplorer.is.ui.swing.actions.CollapseAllAction +action.collapseAllRemote=fr.cemagref.simexplorer.is.ui.swing.actions.CollapseAllAction + +# expand tree node actions +action.expandAll=fr.cemagref.simexplorer.is.ui.swing.actions.ExpandAllAction +action.expandAllLocal=fr.cemagref.simexplorer.is.ui.swing.actions.ExpandAllAction +action.expandAllRemote=fr.cemagref.simexplorer.is.ui.swing.actions.ExpandAllAction + +# download actions +action.downloadElement=fr.cemagref.simexplorer.is.ui.swing.actions.DownloadElementAction action.downloadAttachment=fr.cemagref.simexplorer.is.ui.swing.actions.DownloadAttachmentAction -action.deleteLoggableElement=fr.cemagref.simexplorer.is.ui.swing.actions.DeleteLoggableElementAction -action.exportApplication=fr.cemagref.simexplorer.is.ui.swing.actions.ExportApplicationAction -action.importApplication=fr.cemagref.simexplorer.is.ui.swing.actions.ImportApplicationAction +# delete action +action.deleteElement=fr.cemagref.simexplorer.is.ui.swing.actions.DeleteElementAction +# import- export actions +action.exportElement=fr.cemagref.simexplorer.is.ui.swing.actions.ExportAction +action.exportElementToLocal=fr.cemagref.simexplorer.is.ui.swing.actions.ExportAction +action.exportElementToRemote=fr.cemagref.simexplorer.is.ui.swing.actions.ExportAction +action.importElement=fr.cemagref.simexplorer.is.ui.swing.actions.ImportAction +# help actions 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