Tutti-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
March 2013
- 5 participants
- 242 discussions
r589 - in trunk/tutti-ui-swing/src/main: assembly java/fr/ifremer/tutti/ui/swing/util/editor
by tchemit@users.forge.codelutin.com 12 Mar '13
by tchemit@users.forge.codelutin.com 12 Mar '13
12 Mar '13
Author: tchemit
Date: 2013-03-12 14:29:55 +0100 (Tue, 12 Mar 2013)
New Revision: 589
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/589
Log:
- fix help bundle
- fix vessel cell editor
Modified:
trunk/tutti-ui-swing/src/main/assembly/help.xml
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
Modified: trunk/tutti-ui-swing/src/main/assembly/help.xml
===================================================================
--- trunk/tutti-ui-swing/src/main/assembly/help.xml 2013-03-12 13:21:51 UTC (rev 588)
+++ trunk/tutti-ui-swing/src/main/assembly/help.xml 2013-03-12 13:29:55 UTC (rev 589)
@@ -26,7 +26,7 @@
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
- <id>i18n</id>
+ <id>help</id>
<formats>
<format>zip</format>
</formats>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java 2013-03-12 13:21:51 UTC (rev 588)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java 2013-03-12 13:29:55 UTC (rev 589)
@@ -90,7 +90,9 @@
super(new JComboBox());
final BeanFilterableComboBox<Vessel> component = new BeanFilterableComboBox<Vessel>();
+ component.setI18nPrefix("tutti.property.");
component.setShowReset(true);
+ setClickCountToStart(1);
editorComponent = component;
delegate = new DefaultCellEditor.EditorDelegate() {
1
0
r588 - trunk/tutti-service/src/main/java/fr/ifremer/tutti/service
by tchemit@users.forge.codelutin.com 12 Mar '13
by tchemit@users.forge.codelutin.com 12 Mar '13
12 Mar '13
Author: tchemit
Date: 2013-03-12 14:21:51 +0100 (Tue, 12 Mar 2013)
New Revision: 588
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/588
Log:
fix import
Modified:
trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/PersistenceService.java
Modified: trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/PersistenceService.java
===================================================================
--- trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/PersistenceService.java 2013-03-12 13:18:01 UTC (rev 587)
+++ trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/PersistenceService.java 2013-03-12 13:21:51 UTC (rev 588)
@@ -55,7 +55,7 @@
import fr.ifremer.tutti.persistence.service.TuttiPersistenceServiceLocator;
import fr.ifremer.tutti.service.config.TuttiServiceConfig;
import org.apache.commons.io.IOUtils;
-import org.apache.commons.lang.ObjectUtils;
+import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
1
0
12 Mar '13
Author: tchemit
Date: 2013-03-12 14:18:01 +0100 (Tue, 12 Mar 2013)
New Revision: 587
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/587
Log:
reformat code + optimize imports
Modified:
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/TuttiIOUtil.java
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/config/TuttiPersistenceConfigProvider.java
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities/data/AttachementObjectTypeEnum.java
trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/ReferentialPersistenceService.java
trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/DecoratorService.java
trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/config/TuttiServiceConfigProvider.java
trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/referential/TuttiReferentialImportExportService.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.jaxx
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SampleCategoryComponent.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.jaxx
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/TuttiComputedOrNotDataTableCell.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/TuttiIOUtil.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/TuttiIOUtil.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/TuttiIOUtil.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -85,7 +85,8 @@
throw new TuttiTechnicalException(errorMessage, e);
}
}
- public static void forceDeleteOnExit(File dir, String errorMessage) {
+
+ public static void forceDeleteOnExit(File dir, String errorMessage) {
try {
FileUtils.forceDeleteOnExit(dir);
} catch (IOException e) {
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/config/TuttiPersistenceConfigProvider.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/config/TuttiPersistenceConfigProvider.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/config/TuttiPersistenceConfigProvider.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -24,8 +24,8 @@
* #L%
*/
+import org.nuiton.util.config.ApplicationConfigProvider;
import org.nuiton.util.config.ConfigActionDef;
-import org.nuiton.util.config.ApplicationConfigProvider;
import org.nuiton.util.config.ConfigOptionDef;
import java.util.Locale;
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities/data/AttachementObjectTypeEnum.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities/data/AttachementObjectTypeEnum.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/entities/data/AttachementObjectTypeEnum.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -30,7 +30,7 @@
/**
* Define all usable {@link ObjectType} in {@link Attachment}.
- *
+ * <p/>
* <strong>Note: </strong>This enumeration implements {@link TuttiEnumerationFile.TuttiEnumerable},
* so all values must be synched to the enumeration file and before usage we
* must be invoke the {@link TuttiEnumerationFile#init()} method.
Modified: trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/ReferentialPersistenceService.java
===================================================================
--- trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/ReferentialPersistenceService.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-persistence/src/main/java/fr/ifremer/tutti/persistence/service/ReferentialPersistenceService.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -27,7 +27,6 @@
import fr.ifremer.tutti.persistence.TuttiPersistenceServiceImplementor;
import fr.ifremer.tutti.persistence.entities.data.Cruise;
import fr.ifremer.tutti.persistence.entities.data.Program;
-import fr.ifremer.tutti.persistence.entities.data.SampleCategoryEnum;
import fr.ifremer.tutti.persistence.entities.referential.Caracteristic;
import fr.ifremer.tutti.persistence.entities.referential.CaracteristicQualitativeValue;
import fr.ifremer.tutti.persistence.entities.referential.Country;
Modified: trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/DecoratorService.java
===================================================================
--- trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/DecoratorService.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/DecoratorService.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -43,8 +43,6 @@
import org.nuiton.util.decorator.DecoratorProvider;
import java.io.Serializable;
-import org.apache.commons.lang3.StringUtils;
-import org.nuiton.util.StringUtil;
import static org.nuiton.i18n.I18n._;
import static org.nuiton.i18n.I18n.n_;
@@ -197,7 +195,7 @@
Object result;
if ("surveyCode".equals(token)) {
result = _("tutti.propety.no.species.speciesCode");
-
+
} else {
result = super.onNullValue(bean, token);
}
Modified: trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/config/TuttiServiceConfigProvider.java
===================================================================
--- trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/config/TuttiServiceConfigProvider.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/config/TuttiServiceConfigProvider.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -24,8 +24,8 @@
* #L%
*/
+import org.nuiton.util.config.ApplicationConfigProvider;
import org.nuiton.util.config.ConfigActionDef;
-import org.nuiton.util.config.ApplicationConfigProvider;
import org.nuiton.util.config.ConfigOptionDef;
import java.util.Locale;
Modified: trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/referential/TuttiReferentialImportExportService.java
===================================================================
--- trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/referential/TuttiReferentialImportExportService.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/referential/TuttiReferentialImportExportService.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -31,6 +31,7 @@
import com.google.common.collect.Sets;
import com.google.common.io.Closeables;
import com.google.common.io.Files;
+import fr.ifremer.tutti.TuttiTechnicalException;
import fr.ifremer.tutti.persistence.entities.referential.Gear;
import fr.ifremer.tutti.persistence.entities.referential.Person;
import fr.ifremer.tutti.persistence.entities.referential.Species;
@@ -38,7 +39,6 @@
import fr.ifremer.tutti.service.AbstractTuttiService;
import fr.ifremer.tutti.service.PersistenceService;
import fr.ifremer.tutti.service.TuttiServiceContext;
-import fr.ifremer.tutti.TuttiTechnicalException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.nuiton.util.csv.Export;
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -24,8 +24,6 @@
* #L%
*/
-import fr.ifremer.tutti.ui.swing.TuttiScreen;
-
import java.util.Locale;
/**
@@ -34,7 +32,7 @@
* @author tchemit <chemit(a)codelutin.com>
* @since 1.0.3
*/
-public abstract class AbstractChangeLocaleAction extends AbstractChangeScreenAction {
+public abstract class AbstractChangeLocaleAction extends AbstractChangeScreenAction {
protected AbstractChangeLocaleAction(MainUIHandler handler) {
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUIHandler.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUIHandler.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -121,8 +121,8 @@
List<FishingOperation> fishingOperations = model.getFishingOperation();
initBeanComboBox(ui.getFishingOperationComboBox(),
- fishingOperations,
- model.getSelectedFishingOperation());
+ fishingOperations,
+ model.getSelectedFishingOperation());
model.addPropertyChangeListener(FishingOperationsUIModel.PROPERTY_SELECTED_FISHING_OPERATION, new PropertyChangeListener() {
@Override
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.jaxx
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.jaxx 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.jaxx 2013-03-12 13:18:01 UTC (rev 587)
@@ -138,20 +138,24 @@
<JPanel id='catchTotalSortedWeightPanel'>
<JTextField id='catchTotalSortedWeightField'
constraints='EditCatchesUIHandler.CLASSIC_VESSEL'/>
- <Table constraints='EditCatchesUIHandler.CAROUSSEL_TREMIE_VESSEL'
- fill='both'>
+ <Table
+ constraints='EditCatchesUIHandler.CAROUSSEL_TREMIE_VESSEL'
+ fill='both'>
<row>
<cell anchor='west'>
- <JLabel id='catchTotalSortedCarousselWeightLabel'/>
+ <JLabel
+ id='catchTotalSortedCarousselWeightLabel'/>
</cell>
<cell weightx='1.0'>
- <JTextField id='catchTotalSortedCarousselWeightField'/>
+ <JTextField
+ id='catchTotalSortedCarousselWeightField'/>
</cell>
<cell anchor='west'>
<JLabel id='catchTotalSortedTremisWeightLabel'/>
</cell>
<cell weightx='1.0'>
- <JTextField id='catchTotalSortedTremisWeightField'/>
+ <JTextField
+ id='catchTotalSortedTremisWeightField'/>
</cell>
</row>
</Table>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUIHandler.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUIHandler.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -117,11 +117,11 @@
getParentUi().getFishingOperationTabContent().getModel()
.addPropertyChangeListener(EditFishingOperationUIModel.PROPERTY_VESSEL, new PropertyChangeListener() {
- public void propertyChange(PropertyChangeEvent evt) {
- Vessel vessel = (Vessel) evt.getNewValue();
- selectCatchTotalSortedWeightPanel(vessel);
- }
- });
+ public void propertyChange(PropertyChangeEvent evt) {
+ Vessel vessel = (Vessel) evt.getNewValue();
+ selectCatchTotalSortedWeightPanel(vessel);
+ }
+ });
}
@Override
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SampleCategoryComponent.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SampleCategoryComponent.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SampleCategoryComponent.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -24,6 +24,7 @@
* #L%
*/
+import jaxx.runtime.JAXXUtil;
import jaxx.runtime.swing.editor.NumberEditor;
import org.nuiton.util.decorator.Decorator;
@@ -43,7 +44,6 @@
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.io.Serializable;
-import jaxx.runtime.JAXXUtil;
/**
* To render and edit a {@link SampleCategory}.
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.jaxx
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.jaxx 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.jaxx 2013-03-12 13:18:01 UTC (rev 587)
@@ -103,8 +103,8 @@
</cell>
<cell weightx='1.0' columns='2'>
<BeanComboBox id='sortedUnsortedCategoryComboBox'
- constructorParams='this'
- genericType='CaracteristicQualitativeValue'/>
+ constructorParams='this'
+ genericType='CaracteristicQualitativeValue'/>
</cell>
</row>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUIHandler.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUIHandler.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -108,8 +108,8 @@
persistenceService.getSortedUnsortedCaracteristic();
initBeanComboBox(ui.getSortedUnsortedCategoryComboBox(),
- caracteristic.getQualitativeValue(),
- null);
+ caracteristic.getQualitativeValue(),
+ null);
getModel().addPropertyChangeListener(CreateSpeciesBatchUIModel.PROPERTY_SPECIES, new PropertyChangeListener() {
@Override
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -41,6 +41,38 @@
import fr.ifremer.tutti.ui.swing.util.action.TuttiUIAction;
import fr.ifremer.tutti.ui.swing.util.attachment.ButtonAttachment;
import fr.ifremer.tutti.ui.swing.util.editor.SimpleTimeEditor;
+import jaxx.runtime.JAXXUtil;
+import jaxx.runtime.SwingUtil;
+import jaxx.runtime.swing.editor.NumberEditor;
+import jaxx.runtime.swing.editor.bean.BeanComboBox;
+import jaxx.runtime.swing.editor.bean.BeanDoubleList;
+import jaxx.runtime.swing.editor.bean.BeanFilterableComboBox;
+import jaxx.runtime.swing.renderer.DecoratorListCellRenderer;
+import jaxx.runtime.validator.swing.SwingValidator;
+import org.apache.commons.lang3.reflect.ConstructorUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jdesktop.swingx.JXDatePicker;
+import org.nuiton.util.decorator.Decorator;
+import org.nuiton.util.decorator.JXPathDecorator;
+import org.nuiton.validator.bean.simple.SimpleBeanValidator;
+
+import javax.swing.AbstractAction;
+import javax.swing.AbstractButton;
+import javax.swing.Action;
+import javax.swing.DefaultComboBoxModel;
+import javax.swing.JComponent;
+import javax.swing.JDialog;
+import javax.swing.JLabel;
+import javax.swing.JList;
+import javax.swing.JOptionPane;
+import javax.swing.JRootPane;
+import javax.swing.JTextField;
+import javax.swing.KeyStroke;
+import javax.swing.ListCellRenderer;
+import javax.swing.ListSelectionModel;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.text.JTextComponent;
import java.awt.Component;
import java.awt.Dialog;
import java.awt.Dimension;
@@ -62,37 +94,6 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
-import javax.swing.AbstractAction;
-import javax.swing.AbstractButton;
-import javax.swing.Action;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.JComponent;
-import javax.swing.JDialog;
-import javax.swing.JLabel;
-import javax.swing.JList;
-import javax.swing.JOptionPane;
-import javax.swing.JRootPane;
-import javax.swing.JTextField;
-import javax.swing.KeyStroke;
-import javax.swing.ListCellRenderer;
-import javax.swing.ListSelectionModel;
-import javax.swing.event.ListSelectionEvent;
-import javax.swing.text.JTextComponent;
-import jaxx.runtime.JAXXUtil;
-import jaxx.runtime.SwingUtil;
-import jaxx.runtime.swing.editor.NumberEditor;
-import jaxx.runtime.swing.editor.bean.BeanComboBox;
-import jaxx.runtime.swing.editor.bean.BeanDoubleList;
-import jaxx.runtime.swing.editor.bean.BeanFilterableComboBox;
-import jaxx.runtime.swing.renderer.DecoratorListCellRenderer;
-import jaxx.runtime.validator.swing.SwingValidator;
-import org.apache.commons.lang3.reflect.ConstructorUtils;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jdesktop.swingx.JXDatePicker;
-import org.nuiton.util.decorator.Decorator;
-import org.nuiton.util.decorator.JXPathDecorator;
-import org.nuiton.validator.bean.simple.SimpleBeanValidator;
import static org.nuiton.i18n.I18n._;
@@ -397,7 +398,7 @@
}
public <A extends AbstractTuttiAction> TuttiUIAction<A> createUIAction(AbstractButton abstractButton,
- Class<A> actionName) {
+ Class<A> actionName) {
try {
// create logic action
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/TuttiComputedOrNotDataTableCell.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/TuttiComputedOrNotDataTableCell.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/TuttiComputedOrNotDataTableCell.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -216,7 +216,7 @@
dataValue = data.getComputedData();
font = TuttiUI.TEXTFIELD_COMPUTED_FONT;
foreground = computedDataColor;
-
+
if (useFloat && decimalNumber != null && dataValue != null) {
text = JAXXUtil.getStringValue(
String.format("%." + decimalNumber + "f", dataValue));
@@ -229,7 +229,7 @@
foreground = Color.BLACK;
text = JAXXUtil.getStringValue(dataValue);
}
-
+
Component component = delegate.getTableCellRendererComponent(table,
text,
isSelected,
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java 2013-03-12 13:12:49 UTC (rev 586)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java 2013-03-12 13:18:01 UTC (rev 587)
@@ -30,12 +30,10 @@
import fr.ifremer.tutti.persistence.entities.referential.Vessel;
import fr.ifremer.tutti.service.DecoratorService;
import fr.ifremer.tutti.ui.swing.TuttiUIContext;
-import java.awt.Component;
-import java.awt.event.ActionEvent;
-import java.awt.event.MouseEvent;
-import java.util.EventObject;
-import java.util.List;
-import java.util.Map;
+import jaxx.runtime.swing.editor.bean.BeanFilterableComboBox;
+import org.nuiton.util.decorator.Decorator;
+import org.nuiton.util.decorator.JXPathDecorator;
+
import javax.swing.DefaultCellEditor;
import javax.swing.DefaultListCellRenderer;
import javax.swing.JComboBox;
@@ -44,18 +42,23 @@
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;
-import jaxx.runtime.swing.editor.bean.BeanFilterableComboBox;
-import org.nuiton.util.decorator.Decorator;
-import org.nuiton.util.decorator.JXPathDecorator;
+import java.awt.Component;
+import java.awt.event.ActionEvent;
+import java.awt.event.MouseEvent;
+import java.util.EventObject;
+import java.util.List;
+import java.util.Map;
/**
- *
* @author kmorin <kmorin(a)codelutin.com>
+ * @since 1.0.3
*/
public class VesselTableCell {
protected Decorator<Vessel> decorator;
+
protected List<Vessel> vessels;
+
protected Map<String, Vessel> vesselMap;
public VesselTableCell(TuttiUIContext context) {
@@ -81,6 +84,8 @@
protected class VesselTableCellEditor extends DefaultCellEditor {
+ private static final long serialVersionUID = 1L;
+
protected VesselTableCellEditor() {
super(new JComboBox());
@@ -89,10 +94,12 @@
editorComponent = component;
delegate = new DefaultCellEditor.EditorDelegate() {
+ private static final long serialVersionUID = 1L;
+
@Override
public void setValue(Object value) {
if (value != null && String.class.isInstance(value)) {
- value = vesselMap.get((String) value);
+ value = vesselMap.get(value);
}
component.setSelectedItem(value);
}
@@ -135,6 +142,8 @@
class VesselListCellRenderer extends DefaultListCellRenderer {
+ private static final long serialVersionUID = 1L;
+
@Override
public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
return super.getListCellRendererComponent(list, decorator.toString(value), index, isSelected, cellHasFocus);
@@ -144,10 +153,12 @@
protected class VesselTableCellRenderer extends DefaultTableCellRenderer {
+ private static final long serialVersionUID = 1L;
+
@Override
public Component getTableCellRendererComponent(JTable table, Object value,
- boolean isSelected, boolean hasFocus,
- int row, int column) {
+ boolean isSelected, boolean hasFocus,
+ int row, int column) {
String vesselId = String.valueOf(value);
Vessel vessel = vesselMap.get(vesselId);
1
0
12 Mar '13
Author: tchemit
Date: 2013-03-12 14:12:49 +0100 (Tue, 12 Mar 2013)
New Revision: 586
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/586
Log:
- add long action to reload application
- improve change locale action
- fix reloading application code
- add missing svn properties + license headers
Added:
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ReloadTuttiAction.java
Modified:
trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/DecoratorService.java
trunk/tutti-service/src/main/resources/i18n/tutti-service_en_GB.properties
trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-en.properties
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiUIContext.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ChangeToLocaleFRAction.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ChangeToLocaleUKAction.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/MainUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUI.css
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUI.jaxx
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_en_GB.properties
trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_fr_FR.properties
Modified: trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/DecoratorService.java
===================================================================
--- trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/DecoratorService.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-service/src/main/java/fr/ifremer/tutti/service/DecoratorService.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -10,15 +10,15 @@
* %%
* 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 3 of the
+ * published by the Free Software Foundation, either version 3 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
+ *
+ * You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
Modified: trunk/tutti-service/src/main/resources/i18n/tutti-service_en_GB.properties
===================================================================
--- trunk/tutti-service/src/main/resources/i18n/tutti-service_en_GB.properties 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-service/src/main/resources/i18n/tutti-service_en_GB.properties 2013-03-12 13:12:49 UTC (rev 586)
@@ -40,6 +40,7 @@
tutti.property.zone=
tutti.property.zoneLabel=
tutti.propety.no.species.refTaxCode=
+tutti.propety.no.species.speciesCode=
tutti.propety.no.species.surveyCode=
tutti.propety.no.vessel.name=
tutti.propety.no.zone=
Modified: trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-en.properties
===================================================================
--- trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-en.properties 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-en.properties 2013-03-12 13:12:49 UTC (rev 586)
@@ -1,3 +1,26 @@
+###
+# #%L
+# Tutti :: UI
+# $Id$
+# $HeadURL$
+# %%
+# Copyright (C) 2012 - 2013 Ifremer
+# %%
+# 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 3 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, see
+# <http://www.gnu.org/licenses/gpl-3.0.html>.
+# #L%
+###
#Generated by org.nuiton.jaxx.plugin.GenerateHelpIdsMojo
#Tue Mar 12 10:47:25 CET 2013
tuttihelp.createSpeciesBatch.action.addSpecies.help=
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiUIContext.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiUIContext.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/TuttiUIContext.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -623,6 +623,7 @@
cruiseId = null;
protocolId = null;
validationContext = null;
+ IOUtils.closeQuietly(dataContext);
setScreen(null);
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -27,6 +27,9 @@
import fr.ifremer.tutti.service.config.TuttiServiceConfigOption;
import fr.ifremer.tutti.ui.swing.TuttiUIContext;
import fr.ifremer.tutti.ui.swing.content.MainUI;
+import fr.ifremer.tutti.ui.swing.content.MainUIHandler;
+import fr.ifremer.tutti.ui.swing.content.ReloadTuttiAction;
+import fr.ifremer.tutti.ui.swing.util.action.TuttiUIAction;
import fr.ifremer.tutti.ui.swing.util.editor.VesselTableCell;
import jaxx.runtime.SwingUtil;
import jaxx.runtime.swing.config.ConfigUI;
@@ -143,13 +146,17 @@
ConfigUI configUI = helper.buildUI(
mainUI,
n_("tutti.config.category.applications"));
-
+
helper.displayUI(mainUI, false);
mainUI.getHandler().getContext().getSwingSession().add(configUI);
}
protected void reloadApplication() {
- mainUI.getHandler().reloadTutti();
+ MainUIHandler handler = mainUI.getHandler();
+
+ TuttiUIAction<ReloadTuttiAction> action =
+ handler.createUIAction(null, ReloadTuttiAction.class);
+ action.actionPerformed(null);
}
protected void reloadUI() {
Added: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java (rev 0)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -0,0 +1,51 @@
+package fr.ifremer.tutti.ui.swing.content;
+
+/*
+ * #%L
+ * Tutti :: UI
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 - 2013 Ifremer
+ * %%
+ * 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 3 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, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+import fr.ifremer.tutti.ui.swing.TuttiScreen;
+
+import java.util.Locale;
+
+/**
+ * TODO
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.0.3
+ */
+public abstract class AbstractChangeLocaleAction extends AbstractChangeScreenAction {
+
+
+ protected AbstractChangeLocaleAction(MainUIHandler handler) {
+ super(handler, true, null);
+ }
+
+ protected abstract Locale getLocale();
+
+ @Override
+ protected void doAction() throws Exception {
+
+ getHandler().changeLocale(getLocale());
+ }
+}
Property changes on: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/AbstractChangeLocaleAction.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ChangeToLocaleFRAction.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ChangeToLocaleFRAction.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ChangeToLocaleFRAction.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -30,16 +30,15 @@
* @author tchemit <chemit(a)codelutin.com>
* @since 1.0.3
*/
-public class ChangeToLocaleFRAction extends AbstractMainUITuttiAction {
+public class ChangeToLocaleFRAction extends AbstractChangeLocaleAction {
public ChangeToLocaleFRAction(MainUIHandler handler) {
- super(handler, true);
+ super(handler);
}
@Override
- protected void doAction() throws Exception {
-
- getHandler().changeLocale(Locale.FRANCE);
+ protected Locale getLocale() {
+ return Locale.FRANCE;
}
}
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ChangeToLocaleUKAction.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ChangeToLocaleUKAction.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ChangeToLocaleUKAction.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -30,16 +30,14 @@
* @author tchemit <chemit(a)codelutin.com>
* @since 1.0.3
*/
-public class ChangeToLocaleUKAction extends AbstractMainUITuttiAction {
+public class ChangeToLocaleUKAction extends AbstractChangeLocaleAction {
public ChangeToLocaleUKAction(MainUIHandler handler) {
- super(handler, true);
+ super(handler);
}
@Override
- protected void doAction() throws Exception {
-
- getHandler().changeLocale(Locale.UK);
+ protected Locale getLocale() {
+ return Locale.UK;
}
-
}
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/MainUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/MainUIHandler.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/MainUIHandler.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -202,7 +202,6 @@
// go to manage db screen (to install db)
context.setScreen(TuttiScreen.MANAGE_DB);
}
-
}
}
@@ -228,14 +227,6 @@
//-- Public methods --//
//------------------------------------------------------------------------//
- public void reloadTutti() {
-
- // Close the application
- RunTutti.closeTutti(ui, false);
-
- RunTutti.startTutti(context, true);
- }
-
public void reloadUI() {
//close ui
Added: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ReloadTuttiAction.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ReloadTuttiAction.java (rev 0)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ReloadTuttiAction.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -0,0 +1,54 @@
+package fr.ifremer.tutti.ui.swing.content;
+
+/*
+ * #%L
+ * Tutti :: UI
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 - 2013 Ifremer
+ * %%
+ * 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 3 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, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
+import fr.ifremer.tutti.ui.swing.RunTutti;
+
+import static org.nuiton.i18n.I18n._;
+
+/**
+ * To reload Tutti application.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 1.0.3
+ */
+public class ReloadTuttiAction extends AbstractChangeScreenAction {
+
+ public ReloadTuttiAction(MainUIHandler handler) {
+ super(handler, true, null);
+ setActionDescription(_("tutti.action.reloadTutti"));
+ }
+
+ @Override
+ protected void doAction() throws Exception {
+
+ // Close the application
+ RunTutti.closeTutti(getUI(), false);
+
+ // Restart
+ RunTutti.startTutti(getContext(), true);
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/ReloadTuttiAction.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -396,7 +396,7 @@
abstractButton.setAction(action);
}
- protected <A extends AbstractTuttiAction> TuttiUIAction<A> createUIAction(AbstractButton abstractButton,
+ public <A extends AbstractTuttiAction> TuttiUIAction<A> createUIAction(AbstractButton abstractButton,
Class<A> actionName) {
try {
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUI.css
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUI.css 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUI.css 2013-03-12 13:12:49 UTC (rev 586)
@@ -21,6 +21,13 @@
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* #L%
*/
+
+#busyBlockLayerUI {
+ useIcon:false;
+ blockingColor: {handler.getConfig().getColorBlockingLayer()};
+ block:{true};
+}
+
#globalPanel {
border: {new TitledBorder((String) null)};
}
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUI.jaxx
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUI.jaxx 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUI.jaxx 2013-03-12 13:12:49 UTC (rev 586)
@@ -21,7 +21,7 @@
<http://www.gnu.org/licenses/gpl-3.0.html>.
#L%
-->
-<JDialog layout='{new BorderLayout()}' width='300' height='200' modal='true'
+<JDialog width='300' height='200' modal='true'
undecorated='true'
implements='fr.ifremer.tutti.ui.swing.util.TuttiUI<TuttiActionUIModel, TuttiActionUIHandler>'>
<import>
@@ -29,6 +29,8 @@
fr.ifremer.tutti.ui.swing.util.TuttiUI
fr.ifremer.tutti.ui.swing.TuttiUIContext
+ jaxx.runtime.swing.BlockingLayerUI
+
javax.swing.border.EmptyBorder
static org.nuiton.i18n.I18n._
@@ -56,23 +58,29 @@
}
]]></script>
+
+ <BlockingLayerUI id='busyBlockLayerUI'/>
+
<TuttiActionUIHandler id='handler'
initializer='getContextValue(TuttiActionUIHandler.class)'/>
<TuttiActionUIModel id='model'
initializer='getContextValue(TuttiActionUIModel.class)'/>
+ <JPanel id='rootPanel' layout='{new BorderLayout()}'
+ constraints='BorderLayout.CENTER' decorator='boxed'>
+ <JPanel id='globalPanel' constraints='BorderLayout.NORTH'
+ layout='{new BorderLayout()}'>
+ <JLabel id='globalActionLabel' constraints='BorderLayout.CENTER'/>
+ <JProgressBar id='globalProgressBar' constraints='BorderLayout.SOUTH'/>
+ </JPanel>
+ <JPanel id='taskPanel' constraints='BorderLayout.CENTER'
+ layout='{new BorderLayout()}'>
+ <JLabel id='taskActionLabel' constraints='BorderLayout.CENTER'/>
+ <JProgressBar id='taskProgressBar' constraints='BorderLayout.SOUTH'/>
+ </JPanel>
+ </JPanel>
- <JPanel id='globalPanel' constraints='BorderLayout.NORTH'
- layout='{new BorderLayout()}'>
- <JLabel id='globalActionLabel' constraints='BorderLayout.CENTER'/>
- <JProgressBar id='globalProgressBar' constraints='BorderLayout.SOUTH'/>
- </JPanel>
- <JPanel id='taskPanel' constraints='BorderLayout.CENTER'
- layout='{new BorderLayout()}'>
- <JLabel id='taskActionLabel' constraints='BorderLayout.CENTER'/>
- <JProgressBar id='taskProgressBar' constraints='BorderLayout.SOUTH'/>
- </JPanel>
<!--JPanel id='informationPanel' constraints='BorderLayout.SOUTH'
layout='{new BorderLayout()}'>
<JLabel id='informationLabel' constraints='BorderLayout.CENTER'/>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUIHandler.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/action/TuttiActionUIHandler.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -28,6 +28,7 @@
import fr.ifremer.tutti.ui.swing.TuttiUIContext;
import fr.ifremer.tutti.ui.swing.content.MainUI;
import fr.ifremer.tutti.ui.swing.util.AbstractTuttiUIHandler;
+import jaxx.runtime.SwingUtil;
import jaxx.runtime.validator.swing.SwingValidator;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -173,6 +174,9 @@
initUI(ui);
+ // installation layer de blocage en mode busy
+ SwingUtil.setLayerUI(ui.getRootPanel(), ui.getBusyBlockLayerUI());
+
ui.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
}
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java 2013-03-12 13:12:49 UTC (rev 586)
@@ -1,5 +1,29 @@
package fr.ifremer.tutti.ui.swing.util.editor;
+/*
+ * #%L
+ * Tutti :: UI
+ * $Id$
+ * $HeadURL$
+ * %%
+ * Copyright (C) 2012 - 2013 Ifremer
+ * %%
+ * 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 3 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, see
+ * <http://www.gnu.org/licenses/gpl-3.0.html>.
+ * #L%
+ */
+
import com.google.common.base.Function;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
Property changes on: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: svn:eol-style
+ native
Modified: trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_en_GB.properties
===================================================================
--- trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_en_GB.properties 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_en_GB.properties 2013-03-12 13:12:49 UTC (rev 586)
@@ -82,6 +82,7 @@
tutti.action.reload.actions=
tutti.action.reload.application=
tutti.action.reload.ui=
+tutti.action.reloadTutti=
tutti.action.removeCaracteristic=
tutti.action.removeSpeciesBatch=
tutti.action.removeSpeciesSubBatch=
Modified: trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_fr_FR.properties
===================================================================
--- trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_fr_FR.properties 2013-03-12 10:35:17 UTC (rev 585)
+++ trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_fr_FR.properties 2013-03-12 13:12:49 UTC (rev 586)
@@ -89,6 +89,7 @@
tutti.action.reload.actions=Recharger les actions
tutti.action.reload.application=Recharger l'application
tutti.action.reload.ui=Recharger l'interface graphique
+tutti.action.reloadTutti=Redémarrer Tutti
tutti.action.removeCaracteristic=Supprimer la caractéristique
tutti.action.removeSpeciesBatch=Supprimer le lot
tutti.action.removeSpeciesProtocol=Supprimer l'espèce
1
0
See <http://ci.nuiton.org/jenkins/job/tutti/481/changes>
Changes:
[Kevin Morin] fixes #2048 [ERGO] - Saisie des champs numériques : décimales en plus et séparateur
fixes #1956 [CAPTURE] - Caractéristiques générales - Poids affichés pour le navire Thalassa
[Kevin Morin] use last jaxx snapshot
[Tony Chemit] improve bundle files
------------------------------------------
[...truncated 264 lines...]
[INFO] Installing <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/pom.xml> to /var/local/maven/data/repository/fr/ifremer/tutti/tutti-persistence/1.1-SNAPSHOT/tutti-persistence-1.1-SNAPSHOT.pom
mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.4(default-install)
projectSucceeded fr.ifremer.tutti:tutti-persistence:1.1-SNAPSHOT
projectStarted fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Tutti :: Service 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
mojoStarted org.apache.maven.plugins:maven-clean-plugin:2.5(default-clean)[INFO] Deleting <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target>
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ tutti-service ---
mojoSucceeded org.apache.maven.plugins:maven-clean-plugin:2.5(default-clean)
mojoStarted org.apache.maven.plugins:maven-enforcer-plugin:1.2(check-project-files)
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (check-project-files) @ tutti-service ---
mojoSucceeded org.apache.maven.plugins:maven-enforcer-plugin:1.2(check-project-files)
mojoStarted org.nuiton.i18n:i18n-maven-plugin:2.5(scan-sources)
[INFO]
[INFO] --- i18n-maven-plugin:2.5:parserJava (scan-sources) @ tutti-service ---
mojoSucceeded org.nuiton.i18n:i18n-maven-plugin:2.5(scan-sources)
forkedProjectStarted fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT
mojoStarted org.nuiton.i18n:i18n-maven-plugin:2.5(get)
[INFO]
[INFO] --- i18n-maven-plugin:2.5:get (get) @ tutti-service ---
[INFO] Copying tutti-service.properties to <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/genera…>
[INFO] Copying tutti-service.properties to <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/genera…>
mojoSucceeded org.nuiton.i18n:i18n-maven-plugin:2.5(get)
forkedProjectSucceeded fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT
mojoStarted org.nuiton.i18n:i18n-maven-plugin:2.5(scan-sources)
[INFO]
[INFO] --- i18n-maven-plugin:2.5:gen (scan-sources) @ tutti-service ---
[WARNING] bundle en_GB contains 48/48 empty entries! (use -Di18n.showEmpty to see these entries)
mojoSucceeded org.nuiton.i18n:i18n-maven-plugin:2.5(scan-sources)
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.6(default-resources)
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ tutti-service ---
[INFO] Copying 3 resources
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.6(default-resources)
mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.5.1(default-compile)
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ tutti-service ---
[INFO] Compiling 23 source files to <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/classes>
[WARNING] bootstrap class path not set in conjunction with -source 1.6
<http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[102,26] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[109,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[151,26] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[158,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[184,26] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[191,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[232,26] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[239,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[275,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[321,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[358,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[401,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[110,26] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[117,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[160,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[204,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[262,26] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[268,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
[WARNING] <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/src/main/java…>:[305,22] [deprecation] closeQuietly(Closeable) in Closeables has been deprecated
mojoSucceeded org.apache.maven.plugins:maven-compiler-plugin:2.5.1(default-compile)
mojoStarted org.apache.maven.plugins:maven-antrun-plugin:1.7(generate-surefire-workdir)
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (generate-surefire-workdir) @ tutti-service ---
[INFO] Executing tasks
main:
[mkdir] Created dir: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
[INFO] Executed tasks
mojoSucceeded org.apache.maven.plugins:maven-antrun-plugin:1.7(generate-surefire-workdir)
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.6(default-testResources)
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ tutti-service ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.6(default-testResources)
mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.5.1(default-testCompile)
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ tutti-service ---
[INFO] Compiling 2 source files to <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/test-c…>
mojoSucceeded org.apache.maven.plugins:maven-compiler-plugin:2.5.1(default-testCompile)
mojoStarted org.apache.maven.plugins:maven-surefire-plugin:2.14(default-test)
[INFO]
[INFO] --- maven-surefire-plugin:2.14:test (default-test) @ tutti-service ---
[INFO] Surefire report directory: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportServiceTest
2013-03-12 10:50:02,588 1 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will export species to file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-03-12 10:50:02,607 20 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.protocol.SpeciesProtocol - fr.ifremer.tutti.service.protocol.SpeciesRow > [null] , will create a new default one.
2013-03-12 10:50:02,993 406 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will export all caracteristics to file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-03-12 10:50:03,013 426 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will import protocol [null] species from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-03-12 10:50:03,024 437 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.service.protocol.SpeciesRow - fr.ifremer.tutti.persistence.entities.protocol.SpeciesProtocol > [null] , will create a new default one.
2013-03-12 10:50:03,111 524 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will export all caracteristics to file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-03-12 10:50:03,115 528 [main] INFO fr.ifremer.tutti.service.protocol.TuttiProtocolImportExportService - Will import protocol caracteristic from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.884 sec
Running fr.ifremer.tutti.service.referential.TuttiReferentialImportExportServiceTest
2013-03-12 10:50:03,168 581 [main] INFO org.nuiton.util.converter.ConverterUtil - register converter org.nuiton.util.converter.URLConverter@b670fa5
2013-03-12 10:50:03,169 582 [main] INFO org.nuiton.util.converter.ConverterUtil - register converter org.nuiton.util.converter.URIConverter@14bb1311
2013-03-12 10:50:03,171 584 [main] INFO org.nuiton.util.converter.ConverterUtil - register converter org.nuiton.util.converter.VersionConverter@3fa497e2
2013-03-12 10:50:03,175 588 [main] INFO org.nuiton.util.converter.ConverterUtil - register converter org.nuiton.util.converter.LocaleConverter@3c6c3450
2013-03-12 10:50:03,313 726 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence service
2013-03-12 10:50:03,318 731 [main] INFO fr.ifremer.tutti.service.PersistenceService - Persistence driver *Mock persistence service implementation* opened.
2013-03-12 10:50:03,338 751 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence service
2013-03-12 10:50:03,342 755 [main] INFO fr.ifremer.tutti.service.PersistenceService - Persistence driver *Mock persistence service implementation* opened.
2013-03-12 10:50:03,343 756 [main] INFO fr.ifremer.tutti.service.referential.TuttiReferentialImportExportService - Will import persons from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-03-12 10:50:03,344 757 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.referential.Person - fr.ifremer.tutti.persistence.entities.referential.Person > [null] , will create a new default one.
2013-03-12 10:50:03,351 764 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence service
2013-03-12 10:50:03,355 768 [main] INFO fr.ifremer.tutti.service.PersistenceService - Persistence driver *Mock persistence service implementation* opened.
2013-03-12 10:50:03,355 768 [main] INFO fr.ifremer.tutti.service.referential.TuttiReferentialImportExportService - Will import vessels from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-03-12 10:50:03,381 794 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.referential.Vessel - fr.ifremer.tutti.persistence.entities.referential.Vessel > [null] , will create a new default one.
2013-03-12 10:50:03,386 799 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence service
2013-03-12 10:50:03,392 805 [main] INFO fr.ifremer.tutti.service.PersistenceService - Persistence driver *Mock persistence service implementation* opened.
2013-03-12 10:50:03,402 815 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence service
2013-03-12 10:50:03,406 819 [main] INFO fr.ifremer.tutti.service.PersistenceService - Persistence driver *Mock persistence service implementation* opened.
2013-03-12 10:50:03,411 824 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence service
2013-03-12 10:50:03,414 827 [main] INFO fr.ifremer.tutti.service.PersistenceService - Persistence driver *Mock persistence service implementation* opened.
2013-03-12 10:50:03,431 844 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence service
2013-03-12 10:50:03,434 847 [main] INFO fr.ifremer.tutti.service.PersistenceService - Persistence driver *Mock persistence service implementation* opened.
2013-03-12 10:50:03,435 848 [main] INFO fr.ifremer.tutti.service.referential.TuttiReferentialImportExportService - Will import species from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-03-12 10:50:03,440 853 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.referential.Species - fr.ifremer.tutti.persistence.entities.referential.Species > [null] , will create a new default one.
2013-03-12 10:50:03,450 863 [main] INFO fr.ifremer.tutti.service.PersistenceService - Open persistence service
2013-03-12 10:50:03,453 866 [main] INFO fr.ifremer.tutti.service.PersistenceService - Persistence driver *Mock persistence service implementation* opened.
2013-03-12 10:50:03,453 866 [main] INFO fr.ifremer.tutti.service.referential.TuttiReferentialImportExportService - Will import gears from file: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/surefi…>
2013-03-12 10:50:03,456 869 [main] INFO org.nuiton.util.beans.BinderFactory - No binder model found for <fr.ifremer.tutti.persistence.entities.referential.Gear - fr.ifremer.tutti.persistence.entities.referential.Gear > [null] , will create a new default one.
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.312 sec
Results :
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
mojoSucceeded org.apache.maven.plugins:maven-surefire-plugin:2.14(default-test)
[JENKINS] Recording test results
mojoStarted org.apache.maven.plugins:maven-jar-plugin:2.4(default-jar)
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ tutti-service ---
[INFO] Building jar: <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/tutti-…>
mojoSucceeded org.apache.maven.plugins:maven-jar-plugin:2.4(default-jar)
mojoStarted org.apache.maven.plugins:maven-site-plugin:3.2(attach-descriptor)
[INFO]
[INFO] --- maven-site-plugin:3.2:attach-descriptor (attach-descriptor) @ tutti-service ---
mojoSucceeded org.apache.maven.plugins:maven-site-plugin:3.2(attach-descriptor)
mojoStarted org.apache.maven.plugins:maven-install-plugin:2.4(default-install)
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ tutti-service ---
[INFO] Installing <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/tutti-…> to /var/local/maven/data/repository/fr/ifremer/tutti/tutti-service/1.1-SNAPSHOT/tutti-service-1.1-SNAPSHOT.jar
[INFO] Installing <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/pom.xml> to /var/local/maven/data/repository/fr/ifremer/tutti/tutti-service/1.1-SNAPSHOT/tutti-service-1.1-SNAPSHOT.pom
mojoSucceeded org.apache.maven.plugins:maven-install-plugin:2.4(default-install)
projectSucceeded fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT
projectStarted fr.ifremer.tutti:tutti-ui-swing:1.1-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Tutti :: UI 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus.nuiton.org/nexus/content/groups/tutti-group/org/nuiton/jaxx/ja…
Downloading: http://nexus.nuiton.org/nexus/content/groups/public/org/nuiton/jaxx/jaxx-ma…
Downloading: http://nexus.nuiton.org/nexus/content/groups/public/org/nuiton/jaxx/jaxx-ma…
Downloading: http://nexus.nuiton.org/nexus/content/groups/tutti-group/org/nuiton/jaxx/ja…
[WARNING] The POM for org.nuiton.jaxx:jaxx-maven-plugin:jar:2.5.13-SNAPSHOT is missing, no dependency information available
projectFailed fr.ifremer.tutti:tutti-ui-swing:1.1-SNAPSHOT
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Tutti ............................................. SUCCESS [6.492s]
[INFO] Tutti :: Persistence .............................. SUCCESS [20.941s]
[INFO] Tutti :: Service .................................. SUCCESS [4.031s]
[INFO] Tutti :: UI ....................................... FAILURE [0.998s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.980s
[INFO] Finished at: Tue Mar 12 10:50:04 CET 2013
[INFO] Final Memory: 36M/136M
[INFO] ------------------------------------------------------------------------
Projects to build: [MavenProject: fr.ifremer:tutti:1.1-SNAPSHOT @ <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/pom.xml,> MavenProject: fr.ifremer.tutti:tutti-persistence:1.1-SNAPSHOT @ <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/pom.xml,> MavenProject: fr.ifremer.tutti:tutti-service:1.1-SNAPSHOT @ <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/pom.xml,> MavenProject: fr.ifremer.tutti:tutti-ui-swing:1.1-SNAPSHOT @ <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/pom.xml]>
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/pom.xml> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-service/builds/2013-03-12_10-49-26/archive/fr.ifremer.tutti/tutti-service/1.1-SNAPSHOT/tutti-service-1.1-SNAPSHOT.pom
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-service/target/tutti-…> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-service/builds/2013-03-12_10-49-26/archive/fr.ifremer.tutti/tutti-service/1.1-SNAPSHOT/tutti-service-1.1-SNAPSHOT.jar
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-ui-swing/pom.xml> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-ui-swing/builds/2013-03-12_10-49-26/archive/fr.ifremer.tutti/tutti-ui-swing/1.1-SNAPSHOT/tutti-ui-swing-1.1-SNAPSHOT.pom
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/pom.xml> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer$tutti/builds/2013-03-12_10-49-26/archive/fr.ifremer/tutti/1.1-SNAPSHOT/tutti-1.1-SNAPSHOT.pom
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/target/tutti-1.1-SNAPSHOT-s…> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer$tutti/builds/2013-03-12_10-49-26/archive/fr.ifremer/tutti/1.1-SNAPSHOT/tutti-1.1-SNAPSHOT-site_fr.xml
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/pom.xml> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-persistence/builds/2013-03-12_10-49-26/archive/fr.ifremer.tutti/tutti-persistence/1.1-SNAPSHOT/tutti-persistence-1.1-SNAPSHOT.pom
[JENKINS] Archiving <http://ci.nuiton.org/jenkins/job/tutti/ws/trunk/tutti-persistence/target/tu…> to /var/local/jenkins/data/jobs/tutti/modules/fr.ifremer.tutti$tutti-persistence/builds/2013-03-12_10-49-26/archive/fr.ifremer.tutti/tutti-persistence/1.1-SNAPSHOT/tutti-persistence-1.1-SNAPSHOT.jar
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Plugin org.nuiton.jaxx:jaxx-maven-plugin:2.5.13-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.nuiton.jaxx:jaxx-maven-plugin:jar:2.5.13-SNAPSHOT
cause : Failed to read artifact descriptor for org.nuiton.jaxx:jaxx-maven-plugin:jar:2.5.13-SNAPSHOT
Stack trace :
org.apache.maven.plugin.PluginResolutionException: Plugin org.nuiton.jaxx:jaxx-maven-plugin:2.5.13-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.nuiton.jaxx:jaxx-maven-plugin:jar:2.5.13-SNAPSHOT
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:129)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:142)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getMojoDescriptor(DefaultMavenPluginManager.java:261)
at org.apache.maven.plugin.DefaultBuildPluginManager.getMojoDescriptor(DefaultBuildPluginManager.java:185)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateLifecycleMappings(DefaultLifecycleExecutionPlanCalculator.java:280)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateMojoExecutions(DefaultLifecycleExecutionPlanCalculator.java:193)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:112)
at org.apache.maven.lifecycle.internal.DefaultLifecycleExecutionPlanCalculator.calculateExecutionPlan(DefaultLifecycleExecutionPlanCalculator.java:129)
at org.apache.maven.lifecycle.internal.BuilderCommon.resolveBuildPlan(BuilderCommon.java:92)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:100)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:66)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.nuiton.jaxx:jaxx-maven-plugin:jar:2.5.13-SNAPSHOT
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:296)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:279)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:115)
... 33 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact org.nuiton.jaxx:jaxx-maven-plugin:pom:2.5.13-SNAPSHOT in central (http://nexus.nuiton.org/nexus/content/groups/public)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:281)
... 36 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact org.nuiton.jaxx:jaxx-maven-plugin:pom:2.5.13-SNAPSHOT in central (http://nexus.nuiton.org/nexus/content/groups/public)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:947)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)
at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)
at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
... 3 more
Sending e-mails to: tutti-commits(a)list.forge.codelutin.com kmorin(a)codelutin.com chemit(a)codelutin.com
channel stopped
1
1
12 Mar '13
See <http://ci.nuiton.org/jenkins/job/tutti/fr.ifremer.tutti$tutti-ui-swing/481/…>
Changes:
[Kevin Morin] fixes #2048 [ERGO] - Saisie des champs numériques : décimales en plus et séparateur
fixes #1956 [CAPTURE] - Caractéristiques générales - Poids affichés pour le navire Thalassa
[Tony Chemit] improve bundle files
------------------------------------------
projectStarted fr.ifremer.tutti:tutti-ui-swing:1.1-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Tutti :: UI 1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus.nuiton.org/nexus/content/groups/tutti-group/org/nuiton/jaxx/ja…
Downloading: http://nexus.nuiton.org/nexus/content/groups/public/org/nuiton/jaxx/jaxx-ma…
Downloading: http://nexus.nuiton.org/nexus/content/groups/public/org/nuiton/jaxx/jaxx-ma…
Downloading: http://nexus.nuiton.org/nexus/content/groups/tutti-group/org/nuiton/jaxx/ja…
[WARNING] The POM for org.nuiton.jaxx:jaxx-maven-plugin:jar:2.5.13-SNAPSHOT is missing, no dependency information available
projectFailed fr.ifremer.tutti:tutti-ui-swing:1.1-SNAPSHOT
1
1
r585 - in trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing: config content/operation/catches/species
by kmorin@users.forge.codelutin.com 12 Mar '13
by kmorin@users.forge.codelutin.com 12 Mar '13
12 Mar '13
Author: kmorin
Date: 2013-03-12 11:35:17 +0100 (Tue, 12 Mar 2013)
New Revision: 585
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/585
Log:
- enable select species only if one is selected
- do not show the caroussel tremie vessel option if no db is loaded
Modified:
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SelectSpeciesUI.css
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java 2013-03-12 09:49:05 UTC (rev 584)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java 2013-03-12 10:35:17 UTC (rev 585)
@@ -25,6 +25,7 @@
*/
import fr.ifremer.tutti.service.config.TuttiServiceConfigOption;
+import fr.ifremer.tutti.ui.swing.TuttiUIContext;
import fr.ifremer.tutti.ui.swing.content.MainUI;
import fr.ifremer.tutti.ui.swing.util.editor.VesselTableCell;
import jaxx.runtime.SwingUtil;
@@ -100,17 +101,21 @@
// APPLICATION
- VesselTableCell vesselTableCellComponent = new VesselTableCell(mainUI.getHandler().getContext());
helper.addCategory(n_("tutti.config.category.applications"),
n_("tutti.config.category.applications.description"),
CALLBACK_APPLICATION)
.addOption(TuttiServiceConfigOption.DATA_DIRECTORY)
.addOption(TuttiServiceConfigOption.SITE_URL)
.addOption(TuttiApplicationConfigOption.UI_CONFIG_FILE)
- .addOption(TuttiApplicationConfigOption.TOTAL_SORTED_WEIGHTS_DIFFERENCE_RATE)
- .addOption(TuttiApplicationConfigOption.TREMIE_CAROUSSEL_VESSEL_ID)
+ .addOption(TuttiApplicationConfigOption.TOTAL_SORTED_WEIGHTS_DIFFERENCE_RATE);
+
+ TuttiUIContext context = mainUI.getHandler().getContext();
+ if (context.isDbLoaded()) {
+ VesselTableCell vesselTableCellComponent = new VesselTableCell(context);
+ helper.addOption(TuttiApplicationConfigOption.TREMIE_CAROUSSEL_VESSEL_ID)
.setOptionEditor(vesselTableCellComponent.getNewTableCellEditor())
.setOptionRenderer(vesselTableCellComponent.getNewTableCellRenderer());
+ }
// UI
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SelectSpeciesUI.css
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SelectSpeciesUI.css 2013-03-12 09:49:05 UTC (rev 584)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SelectSpeciesUI.css 2013-03-12 10:35:17 UTC (rev 585)
@@ -40,4 +40,5 @@
text: "tutti.action.validate";
actionIcon: accept;
mnemonic:V;
+ enabled: {model.getSelectedSpecies() != null};
}
\ No newline at end of file
1
0
12 Mar '13
Author: kmorin
Date: 2013-03-12 10:49:05 +0100 (Tue, 12 Mar 2013)
New Revision: 584
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/584
Log:
fixes #2048 [ERGO] - Saisie des champs num?\195?\169riques : d?\195?\169cimales en plus et s?\195?\169parateur
fixes #1956 [CAPTURE] - Caract?\195?\169ristiques g?\195?\169n?\195?\169rales - Poids affich?\195?\169s pour le navire Thalassa
Added:
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
Modified:
trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-en.properties
trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-fr.properties
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiApplicationConfig.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiApplicationConfigOption.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUI.css
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUI.jaxx
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.css
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.jaxx
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SampleCategoryComponent.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.css
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.jaxx
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/TuttiComputedOrNotDataTableCell.java
trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_en_GB.properties
trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_fr_FR.properties
Modified: trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-en.properties
===================================================================
--- trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-en.properties 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-en.properties 2013-03-12 09:49:05 UTC (rev 584)
@@ -1,28 +1,5 @@
-###
-# #%L
-# Tutti :: UI
-# $Id$
-# $HeadURL$
-# %%
-# Copyright (C) 2012 - 2013 Ifremer
-# %%
-# 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 3 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, see
-# <http://www.gnu.org/licenses/gpl-3.0.html>.
-# #L%
-###
#Generated by org.nuiton.jaxx.plugin.GenerateHelpIdsMojo
-#Tue Mar 12 09:29:29 CET 2013
+#Tue Mar 12 10:47:25 CET 2013
tuttihelp.createSpeciesBatch.action.addSpecies.help=
tuttihelp.createSpeciesBatch.field.batchWeightField.help=
tuttihelp.createSpeciesBatch.field.sortedUnsortedCategoryComboBox.help=
@@ -45,6 +22,8 @@
tuttihelp.editCatchBatch.field.benthosTotalUnsortedWeight.help=
tuttihelp.editCatchBatch.field.benthosTotalWeight.help=
tuttihelp.editCatchBatch.field.catchTotalRejectedWeight.help=
+tuttihelp.editCatchBatch.field.catchTotalSortedCarousselWeight.help=
+tuttihelp.editCatchBatch.field.catchTotalSortedTremisWeight.help=
tuttihelp.editCatchBatch.field.catchTotalSortedWeight.help=
tuttihelp.editCatchBatch.field.catchTotalUnsortedWeight.help=
tuttihelp.editCatchBatch.field.catchTotalWeight.help=
Modified: trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-fr.properties
===================================================================
--- trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-fr.properties 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/filtered-resources/tutti-help-fr.properties 2013-03-12 09:49:05 UTC (rev 584)
@@ -8,15 +8,15 @@
# %%
# 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 3 of the
+# published by the Free Software Foundation, either version 3 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
+#
+# You should have received a copy of the GNU General Public
# License along with this program. If not, see
# <http://www.gnu.org/licenses/gpl-3.0.html>.
# #L%
@@ -45,6 +45,8 @@
tuttihelp.editCatchBatch.field.benthosTotalUnsortedWeight.help=
tuttihelp.editCatchBatch.field.benthosTotalWeight.help=
tuttihelp.editCatchBatch.field.catchTotalRejectedWeight.help=
+tuttihelp.editCatchBatch.field.catchTotalSortedCarousselWeight.help=
+tuttihelp.editCatchBatch.field.catchTotalSortedTremisWeight.help=
tuttihelp.editCatchBatch.field.catchTotalSortedWeight.help=
tuttihelp.editCatchBatch.field.catchTotalUnsortedWeight.help=
tuttihelp.editCatchBatch.field.catchTotalWeight.help=
@@ -73,8 +75,10 @@
tuttihelp.editCruise.list.headOfSortRoom.help=editCruise.html\#fields
tuttihelp.editCruise.list.vessel.help=editCruise.html\#fields
tuttihelp.editFishingOperation.action.attachments.help=editFishingOperation.html\#actions
+tuttihelp.editFishingOperation.action.cancel.help=
tuttihelp.editFishingOperation.action.cancelEditFishingOperation.help=editFishingOperation.html\#actions
tuttihelp.editFishingOperation.action.importCasino.help=editFishingOperation.html\#actions
+tuttihelp.editFishingOperation.action.save.help=
tuttihelp.editFishingOperation.action.saveEditFishingOperation.help=editFishingOperation.html\#actions
tuttihelp.editFishingOperation.field.comment.help=editFishingOperation.html\#fields
tuttihelp.editFishingOperation.field.duration.help=editFishingOperation.html\#fields
@@ -103,19 +107,29 @@
tuttihelp.editFishingOperation.list.recorderPerson.help=editFishingOperation.html\#fields
tuttihelp.editMacroWasteBatch.help=editMacroWasteBatch.html
tuttihelp.editPlanktonBatch.help=editPlanktonBatch.html
+tuttihelp.editProgram.action.cancel.help=
tuttihelp.editProgram.action.cancelProgram.help=editProgram.html\#actions
+tuttihelp.editProgram.action.save.help=
tuttihelp.editProgram.action.saveProgram.help=editProgram.html\#actions
tuttihelp.editProgram.field.comment.help=editProgram.html\#fields
tuttihelp.editProgram.field.name.help=editProgram.html\#fields
tuttihelp.editProgram.field.zone.help=editProgram.html\#fields
tuttihelp.editProgram.help=editProgram.html
tuttihelp.editProtocol.action.addSpeciesProtocol.help=editProtocol.html\#actions
+tuttihelp.editProtocol.action.cancel.help=
tuttihelp.editProtocol.action.cancelEditProtocol.help=editProtocol.html\#actions
+tuttihelp.editProtocol.action.exportAllCaracteristic.help=
+tuttihelp.editProtocol.action.exportCaracteristic.help=
tuttihelp.editProtocol.action.exportProtocolAllCaracteristic.help=editProtocol.html\#actions
tuttihelp.editProtocol.action.exportProtocolCaracteristic.tip=editProtocol.html\#actions
tuttihelp.editProtocol.action.exportProtocolSpecies.help=editProtocol.html\#actions
+tuttihelp.editProtocol.action.exportSpecies.help=
+tuttihelp.editProtocol.action.importCaracteristic.help=
tuttihelp.editProtocol.action.importProtocolCaracteristic.help=editProtocol.html\#actions
tuttihelp.editProtocol.action.importProtocolSpecies.help=editProtocol.html\#actions
+tuttihelp.editProtocol.action.importSpecies.help=
+tuttihelp.editProtocol.action.removeSpeciesProtocol.help=
+tuttihelp.editProtocol.action.save.help=
tuttihelp.editProtocol.action.saveProtocol.help=editProtocol.html\#actions
tuttihelp.editProtocol.action.selectOtherSpecies.help=editProtocol.html\#actions
tuttihelp.editProtocol.field.comment.help=editProtocol.html\#fields
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiApplicationConfig.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiApplicationConfig.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiApplicationConfig.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -193,6 +193,10 @@
return applicationConfig.getOptionAsFloat(TuttiApplicationConfigOption.TOTAL_SORTED_WEIGHTS_DIFFERENCE_RATE.getKey());
}
+ public String getTremieCarousselVesselId() {
+ return applicationConfig.getOption(TuttiApplicationConfigOption.TREMIE_CAROUSSEL_VESSEL_ID.getKey());
+ }
+
public boolean isAutoPopupNumberEditor() {
return applicationConfig.getOptionAsBoolean(TuttiApplicationConfigOption.AUTO_POPUP_NUMBER_EDITOR.getKey());
}
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiApplicationConfigOption.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiApplicationConfigOption.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiApplicationConfigOption.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -87,12 +87,19 @@
),
TOTAL_SORTED_WEIGHTS_DIFFERENCE_RATE(
- "tutti.weights.rate.difference.totalAndSorted",
- n_("tutti.weights.rate.difference.totalAndSorted.description"),
+ "tutti.option.weights.rate.difference.totalAndSorted",
+ n_("tutti.option.weights.rate.difference.totalAndSorted.description"),
"1.0",
Float.class
),
+ TREMIE_CAROUSSEL_VESSEL_ID(
+ "tutti.option.tremieCarousselVessel",
+ n_("tutti.option.tremieCarousselVessel.description"),
+ "",
+ String.class
+ ),
+
PROGRAM_ID(
"tutti.programId",
n_("tutti.option.programId.description"),
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/config/TuttiConfigUI.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -26,6 +26,7 @@
import fr.ifremer.tutti.service.config.TuttiServiceConfigOption;
import fr.ifremer.tutti.ui.swing.content.MainUI;
+import fr.ifremer.tutti.ui.swing.util.editor.VesselTableCell;
import jaxx.runtime.SwingUtil;
import jaxx.runtime.swing.config.ConfigUI;
import jaxx.runtime.swing.config.ConfigUIHelper;
@@ -99,13 +100,17 @@
// APPLICATION
+ VesselTableCell vesselTableCellComponent = new VesselTableCell(mainUI.getHandler().getContext());
helper.addCategory(n_("tutti.config.category.applications"),
n_("tutti.config.category.applications.description"),
CALLBACK_APPLICATION)
.addOption(TuttiServiceConfigOption.DATA_DIRECTORY)
.addOption(TuttiServiceConfigOption.SITE_URL)
.addOption(TuttiApplicationConfigOption.UI_CONFIG_FILE)
- .addOption(TuttiApplicationConfigOption.TOTAL_SORTED_WEIGHTS_DIFFERENCE_RATE);
+ .addOption(TuttiApplicationConfigOption.TOTAL_SORTED_WEIGHTS_DIFFERENCE_RATE)
+ .addOption(TuttiApplicationConfigOption.TREMIE_CAROUSSEL_VESSEL_ID)
+ .setOptionEditor(vesselTableCellComponent.getNewTableCellEditor())
+ .setOptionRenderer(vesselTableCellComponent.getNewTableCellRenderer());
// UI
@@ -133,9 +138,8 @@
ConfigUI configUI = helper.buildUI(
mainUI,
n_("tutti.config.category.applications"));
-
+
helper.displayUI(mainUI, false);
-
mainUI.getHandler().getContext().getSwingSession().add(configUI);
}
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUI.css
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUI.css 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUI.css 2013-03-12 09:49:05 UTC (rev 584)
@@ -28,6 +28,12 @@
bean: {model};
}
+BeanComboBox {
+ showReset: true;
+ i18nPrefix: "tutti.property.";
+ bean: {model};
+}
+
#fishingOperationsTopPanel {
_help: {"tuttihelp.fishingOperations.help"};
}
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUI.jaxx
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUI.jaxx 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUI.jaxx 2013-03-12 09:49:05 UTC (rev 584)
@@ -33,6 +33,7 @@
fr.ifremer.tutti.ui.swing.content.operation.catches.EditCatchesUI
fr.ifremer.tutti.ui.swing.util.TuttiUI
+ jaxx.runtime.swing.editor.bean.BeanComboBox
jaxx.runtime.swing.editor.bean.BeanFilterableComboBox
static org.nuiton.i18n.I18n._
@@ -65,9 +66,9 @@
<!-- Cruise fishingOperations -->
<row>
<cell anchor='west' weightx='1.0'>
- <BeanFilterableComboBox id='fishingOperationComboBox'
- constructorParams='this'
- genericType='FishingOperation'/>
+ <BeanComboBox id='fishingOperationComboBox'
+ constructorParams='this'
+ genericType='FishingOperation'/>
</cell>
<cell anchor='east'>
<JButton id='newFishingOperationButton'/>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUIHandler.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/FishingOperationsUIHandler.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -120,7 +120,7 @@
List<FishingOperation> fishingOperations = model.getFishingOperation();
- initBeanFilterableComboBox(ui.getFishingOperationComboBox(),
+ initBeanComboBox(ui.getFishingOperationComboBox(),
fishingOperations,
model.getSelectedFishingOperation());
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.css
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.css 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.css 2013-03-12 09:49:05 UTC (rev 584)
@@ -75,6 +75,10 @@
_help: {"tuttihelp.editCatchBatch.field.catchTotalWeight.help"};
}
+#catchTotalSortedWeightPanel {
+ layout: {catchTotalSortedWeightPanelLayout};
+}
+
#catchTotalWeightField {
bean: {model.getCatchTotalComputedOrNotWeight()};
model: {model.getCatchTotalWeight()};
@@ -100,8 +104,7 @@
}
#catchTotalSortedTremisWeightField {
- property: catchTotalSortedTremisWeight;
- model: {model.getCatchTotalSortedTremisWeight()};
+ enabled: false;
}
#catchTotalSortedCarousselWeightLabel {
@@ -112,8 +115,7 @@
}
#catchTotalSortedCarousselWeightField {
- property: catchTotalSortedCarousselWeight;
- model: {model.getCatchTotalSortedCarousselWeight()};
+ enabled: false;
}
#catchTotalRejectedWeightLabel {
@@ -140,11 +142,6 @@
_computed: true;
}
-#catchThalassaLabel {
- actionIcon: information;
- text: "tutti.label.catches.catchThalassa";
-}
-
#speciesTabPanel {
layout:{speciesTabPanelLayout};
}
@@ -175,7 +172,7 @@
#speciesTotalSortedWeightField {
text: {getStringValue(model.getSpeciesTotalSortedWeight() != null ?
- String.format("%.3f", model.getSpeciesTotalSortedWeight()) :
+ model.getSpeciesTotalSortedWeight() :
model.getSpeciesTotalSortedComputedWeight() != null ?
String.format("%.3f", model.getSpeciesTotalSortedComputedWeight()) :
null)};
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.jaxx
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.jaxx 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUI.jaxx 2013-03-12 09:49:05 UTC (rev 584)
@@ -96,6 +96,9 @@
<CardLayout2Ext id='speciesTabPanelLayout'
constructorParams='this, "speciesTabPanel"'/>
+ <CardLayout2Ext id='catchTotalSortedWeightPanelLayout'
+ constructorParams='this, "catchTotalSortedWeightPanel"'/>
+
<TuttiHelpBroker id='broker'
constructorParams='"tuttihelp.editCatchBatch.help"'/>
@@ -132,22 +135,28 @@
<JLabel id='catchTotalSortedWeightLabel'/>
</cell>
<cell columns='4' weightx='1.0'>
- <JTextField id='catchTotalSortedWeightField'/>
+ <JPanel id='catchTotalSortedWeightPanel'>
+ <JTextField id='catchTotalSortedWeightField'
+ constraints='EditCatchesUIHandler.CLASSIC_VESSEL'/>
+ <Table constraints='EditCatchesUIHandler.CAROUSSEL_TREMIE_VESSEL'
+ fill='both'>
+ <row>
+ <cell anchor='west'>
+ <JLabel id='catchTotalSortedCarousselWeightLabel'/>
+ </cell>
+ <cell weightx='1.0'>
+ <JTextField id='catchTotalSortedCarousselWeightField'/>
+ </cell>
+ <cell anchor='west'>
+ <JLabel id='catchTotalSortedTremisWeightLabel'/>
+ </cell>
+ <cell weightx='1.0'>
+ <JTextField id='catchTotalSortedTremisWeightField'/>
+ </cell>
+ </row>
+ </Table>
+ </JPanel>
</cell>
- <!-- <cell anchor='west'>
- <JLabel id='catchTotalSortedCarousselWeightLabel'/>
- </cell>
- <cell weightx='1.0'>
- <NumberEditor id='catchTotalSortedCarousselWeightField'
- constructorParams='this'/>
- </cell>
- <cell anchor='west'>
- <JLabel id='catchTotalSortedTremisWeightLabel'/>
- </cell>
- <cell weightx='1.0'>
- <NumberEditor id='catchTotalSortedTremisWeightField'
- constructorParams='this'/>
- </cell>-->
</row>
<!--Poids total hors vrac-->
<row>
@@ -169,11 +178,6 @@
constructorParams='this'/>
</cell>
</row>
- <!-- <row>
- <cell columns='4'>
- <JLabel id='catchThalassaLabel'/>
- </cell>
- </row>-->
</Table>
</cell>
</row>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUIHandler.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/EditCatchesUIHandler.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -25,6 +25,8 @@
*/
import com.google.common.collect.Sets;
+import fr.ifremer.tutti.persistence.entities.referential.Vessel;
+import fr.ifremer.tutti.ui.swing.content.operation.EditFishingOperationUIModel;
import fr.ifremer.tutti.ui.swing.content.operation.FishingOperationsUI;
import fr.ifremer.tutti.ui.swing.content.operation.FishingOperationsUIHandler;
import fr.ifremer.tutti.ui.swing.util.AbstractTuttiTabContainerUIHandler;
@@ -41,6 +43,8 @@
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import java.awt.event.ActionEvent;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
import java.util.Set;
import static org.nuiton.i18n.I18n._;
@@ -61,6 +65,10 @@
public static final String EDIT_FREQUENCY_CARD = "editFrequency";
+ public static final String CAROUSSEL_TREMIE_VESSEL = "carousselTremieVessel";
+
+ public static final String CLASSIC_VESSEL = "classicVessel";
+
/** Logger. */
private static final Log log =
LogFactory.getLog(EditCatchesUIHandler.class);
@@ -105,6 +113,15 @@
listenValidatorValid(getValidator(), model);
setCustomTab(0, model);
+
+ getParentUi().getFishingOperationTabContent().getModel()
+ .addPropertyChangeListener(EditFishingOperationUIModel.PROPERTY_VESSEL, new PropertyChangeListener() {
+
+ public void propertyChange(PropertyChangeEvent evt) {
+ Vessel vessel = (Vessel) evt.getNewValue();
+ selectCatchTotalSortedWeightPanel(vessel);
+ }
+ });
}
@Override
@@ -282,7 +299,17 @@
titlePanel.setTitle(ui.getSpeciesTabFishingOperationReminderLabel().getTitle() + " - " + _(title));
}
}
+ }
+ public void selectCatchTotalSortedWeightPanel(Vessel vessel) {
+ String card;
+ String carousselTremieVesselId = getConfig().getTremieCarousselVesselId();
+ if (vessel != null && vessel.getId().equals(carousselTremieVesselId)) {
+ card = CAROUSSEL_TREMIE_VESSEL;
+ } else {
+ card = CLASSIC_VESSEL;
+ }
+ ui.getCatchTotalSortedWeightPanelLayout().setSelected(card);
}
}
\ No newline at end of file
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SampleCategoryComponent.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SampleCategoryComponent.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/SampleCategoryComponent.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -43,6 +43,7 @@
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.io.Serializable;
+import jaxx.runtime.JAXXUtil;
/**
* To render and edit a {@link SampleCategory}.
@@ -236,7 +237,7 @@
text += " ";
if (number != null) {
- text += String.format("%.3f", number);
+ text += JAXXUtil.getStringValue(number);
} else if (computedNumber != null) {
if (sampleCategory.hasOnlyOneFrequency()) {
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.css
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.css 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.css 2013-03-12 09:49:05 UTC (rev 584)
@@ -28,6 +28,12 @@
bean: {model};
}
+BeanComboBox {
+ showReset: true;
+ i18nPrefix: "tutti.property.";
+ bean: {model};
+}
+
NumberEditor {
autoPopup: {handler.getConfig().isAutoPopupNumberEditor()};
showPopupButton: {handler.getConfig().isShowNumberEditorButton()};
@@ -69,7 +75,6 @@
#sortedUnsortedCategoryComboBox {
property: sortedUnsortedCategory;
selectedItem: {model.getSortedUnsortedCategory()};
- filterable: false;
}
#batchWeightLabel {
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.jaxx
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.jaxx 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUI.jaxx 2013-03-12 09:49:05 UTC (rev 584)
@@ -39,6 +39,7 @@
org.jdesktop.swingx.JXTable
+ jaxx.runtime.swing.editor.bean.BeanComboBox
jaxx.runtime.swing.editor.bean.BeanFilterableComboBox
jaxx.runtime.swing.editor.NumberEditor
@@ -101,7 +102,7 @@
<JLabel id='sortedUnsortedCategoryLabel'/>
</cell>
<cell weightx='1.0' columns='2'>
- <BeanFilterableComboBox id='sortedUnsortedCategoryComboBox'
+ <BeanComboBox id='sortedUnsortedCategoryComboBox'
constructorParams='this'
genericType='CaracteristicQualitativeValue'/>
</cell>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUIHandler.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/split/CreateSpeciesBatchUIHandler.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -107,7 +107,7 @@
Caracteristic caracteristic =
persistenceService.getSortedUnsortedCaracteristic();
- initBeanFilterableComboBox(ui.getSortedUnsortedCategoryComboBox(),
+ initBeanComboBox(ui.getSortedUnsortedCategoryComboBox(),
caracteristic.getQualitativeValue(),
null);
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/AbstractTuttiUIHandler.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -41,37 +41,6 @@
import fr.ifremer.tutti.ui.swing.util.action.TuttiUIAction;
import fr.ifremer.tutti.ui.swing.util.attachment.ButtonAttachment;
import fr.ifremer.tutti.ui.swing.util.editor.SimpleTimeEditor;
-import jaxx.runtime.JAXXUtil;
-import jaxx.runtime.SwingUtil;
-import jaxx.runtime.swing.editor.NumberEditor;
-import jaxx.runtime.swing.editor.bean.BeanDoubleList;
-import jaxx.runtime.swing.editor.bean.BeanFilterableComboBox;
-import jaxx.runtime.swing.renderer.DecoratorListCellRenderer;
-import jaxx.runtime.validator.swing.SwingValidator;
-import org.apache.commons.lang3.reflect.ConstructorUtils;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.jdesktop.swingx.JXDatePicker;
-import org.nuiton.util.decorator.Decorator;
-import org.nuiton.util.decorator.JXPathDecorator;
-import org.nuiton.validator.bean.simple.SimpleBeanValidator;
-
-import javax.swing.AbstractAction;
-import javax.swing.AbstractButton;
-import javax.swing.Action;
-import javax.swing.DefaultComboBoxModel;
-import javax.swing.JComponent;
-import javax.swing.JDialog;
-import javax.swing.JLabel;
-import javax.swing.JList;
-import javax.swing.JOptionPane;
-import javax.swing.JRootPane;
-import javax.swing.JTextField;
-import javax.swing.KeyStroke;
-import javax.swing.ListCellRenderer;
-import javax.swing.ListSelectionModel;
-import javax.swing.event.ListSelectionEvent;
-import javax.swing.text.JTextComponent;
import java.awt.Component;
import java.awt.Dialog;
import java.awt.Dimension;
@@ -93,6 +62,37 @@
import java.util.List;
import java.util.Map;
import java.util.Set;
+import javax.swing.AbstractAction;
+import javax.swing.AbstractButton;
+import javax.swing.Action;
+import javax.swing.DefaultComboBoxModel;
+import javax.swing.JComponent;
+import javax.swing.JDialog;
+import javax.swing.JLabel;
+import javax.swing.JList;
+import javax.swing.JOptionPane;
+import javax.swing.JRootPane;
+import javax.swing.JTextField;
+import javax.swing.KeyStroke;
+import javax.swing.ListCellRenderer;
+import javax.swing.ListSelectionModel;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.text.JTextComponent;
+import jaxx.runtime.JAXXUtil;
+import jaxx.runtime.SwingUtil;
+import jaxx.runtime.swing.editor.NumberEditor;
+import jaxx.runtime.swing.editor.bean.BeanComboBox;
+import jaxx.runtime.swing.editor.bean.BeanDoubleList;
+import jaxx.runtime.swing.editor.bean.BeanFilterableComboBox;
+import jaxx.runtime.swing.renderer.DecoratorListCellRenderer;
+import jaxx.runtime.validator.swing.SwingValidator;
+import org.apache.commons.lang3.reflect.ConstructorUtils;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.jdesktop.swingx.JXDatePicker;
+import org.nuiton.util.decorator.Decorator;
+import org.nuiton.util.decorator.JXPathDecorator;
+import org.nuiton.validator.bean.simple.SimpleBeanValidator;
import static org.nuiton.i18n.I18n._;
@@ -557,6 +557,54 @@
* Prépare un component de choix d'entités pour un type d'entité donné et
* pour un service de persistance donné.
*
+ * @param comboBox le component graphique à initialiser
+ */
+ protected <E extends Serializable> void initBeanComboBox(
+ BeanComboBox<E> comboBox,
+ List<E> data,
+ E selectedData) {
+
+ initBeanComboBox(comboBox, data, selectedData, null);
+ }
+
+ protected <E extends Serializable> void initBeanComboBox(
+ BeanComboBox<E> comboBox,
+ List<E> data,
+ E selectedData,
+ String decoratorContext) {
+
+ Preconditions.checkNotNull(comboBox, "No comboBox!");
+
+ Class<E> beanType = comboBox.getBeanType();
+
+ Preconditions.checkNotNull(beanType, "No beanType on the combobox!");
+
+ Decorator<E> decorator = getDecorator(beanType, decoratorContext);
+
+ if (data == null) {
+ data = Lists.newArrayList();
+ }
+
+ if (log.isInfoEnabled()) {
+ log.info("entity comboBox list [" + beanType.getName() + "] : " +
+ (data == null ? 0 : data.size()));
+ }
+
+ // add data list to combo box
+ comboBox.init((JXPathDecorator<E>) decorator, data);
+
+ comboBox.setSelectedItem(selectedData);
+
+ if (log.isDebugEnabled()) {
+ log.debug("combo [" + beanType.getName() + "] : " +
+ comboBox.getData().size());
+ }
+ }
+
+ /**
+ * Prépare un component de choix d'entités pour un type d'entité donné et
+ * pour un service de persistance donné.
+ *
* @param list le component graphique à initialiser
* @param data la liste des données à mettre dans la liste de gauche
* @param selectedData la liste des données à mettre dans la liste de droite
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/TuttiComputedOrNotDataTableCell.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/TuttiComputedOrNotDataTableCell.java 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/TuttiComputedOrNotDataTableCell.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -211,23 +211,25 @@
Number dataValue = data.getData();
Font font;
Color foreground;
+ String text;
if (dataValue == null) {
dataValue = data.getComputedData();
font = TuttiUI.TEXTFIELD_COMPUTED_FONT;
foreground = computedDataColor;
+
+ if (useFloat && decimalNumber != null && dataValue != null) {
+ text = JAXXUtil.getStringValue(
+ String.format("%." + decimalNumber + "f", dataValue));
+ } else {
+ text = JAXXUtil.getStringValue(dataValue);
+ }
} else {
font = TuttiUI.TEXTFIELD_NORMAL_FONT;
foreground = Color.BLACK;
- }
- String text;
- if (useFloat && decimalNumber != null && dataValue != null) {
- text = JAXXUtil.getStringValue(
- String.format("%." + decimalNumber + "f", dataValue));
- } else {
text = JAXXUtil.getStringValue(dataValue);
}
-
+
Component component = delegate.getTableCellRendererComponent(table,
text,
isSelected,
Added: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java (rev 0)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/util/editor/VesselTableCell.java 2013-03-12 09:49:05 UTC (rev 584)
@@ -0,0 +1,133 @@
+package fr.ifremer.tutti.ui.swing.util.editor;
+
+import com.google.common.base.Function;
+import com.google.common.collect.Lists;
+import com.google.common.collect.Maps;
+import fr.ifremer.tutti.persistence.entities.referential.Vessel;
+import fr.ifremer.tutti.service.DecoratorService;
+import fr.ifremer.tutti.ui.swing.TuttiUIContext;
+import java.awt.Component;
+import java.awt.event.ActionEvent;
+import java.awt.event.MouseEvent;
+import java.util.EventObject;
+import java.util.List;
+import java.util.Map;
+import javax.swing.DefaultCellEditor;
+import javax.swing.DefaultListCellRenderer;
+import javax.swing.JComboBox;
+import javax.swing.JList;
+import javax.swing.JTable;
+import javax.swing.table.DefaultTableCellRenderer;
+import javax.swing.table.TableCellEditor;
+import javax.swing.table.TableCellRenderer;
+import jaxx.runtime.swing.editor.bean.BeanFilterableComboBox;
+import org.nuiton.util.decorator.Decorator;
+import org.nuiton.util.decorator.JXPathDecorator;
+
+/**
+ *
+ * @author kmorin <kmorin(a)codelutin.com>
+ */
+public class VesselTableCell {
+
+ protected Decorator<Vessel> decorator;
+ protected List<Vessel> vessels;
+ protected Map<String, Vessel> vesselMap;
+
+ public VesselTableCell(TuttiUIContext context) {
+ DecoratorService decoratorService = context.getDecoratorService();
+ decorator = decoratorService.getDecoratorByType(Vessel.class);
+
+ vessels = Lists.newArrayList(context.getDataContext().getFishingVessels());
+ vessels.addAll(context.getDataContext().getScientificVessels());
+ vesselMap = Maps.uniqueIndex(vessels, new Function<Vessel, String>() {
+ public String apply(Vessel f) {
+ return f != null ? f.getId() : null;
+ }
+ });
+ }
+
+ public TableCellEditor getNewTableCellEditor() {
+ return new VesselTableCellEditor();
+ }
+
+ public TableCellRenderer getNewTableCellRenderer() {
+ return new VesselTableCellRenderer();
+ }
+
+ protected class VesselTableCellEditor extends DefaultCellEditor {
+
+ protected VesselTableCellEditor() {
+ super(new JComboBox());
+
+ final BeanFilterableComboBox<Vessel> component = new BeanFilterableComboBox<Vessel>();
+ component.setShowReset(true);
+
+ editorComponent = component;
+ delegate = new DefaultCellEditor.EditorDelegate() {
+ @Override
+ public void setValue(Object value) {
+ if (value != null && String.class.isInstance(value)) {
+ value = vesselMap.get((String) value);
+ }
+ component.setSelectedItem(value);
+ }
+
+ @Override
+ public Object getCellEditorValue() {
+ String result = null;
+ Object selectedItem = component.getSelectedItem();
+ if (Vessel.class.isInstance(selectedItem)) {
+ Vessel vessel = (Vessel) component.getSelectedItem();
+ if (vessel != null) {
+ result = vessel.getId();
+ }
+ }
+ return result;
+ }
+
+ @Override
+ public boolean shouldSelectCell(EventObject anEvent) {
+ if (anEvent instanceof MouseEvent) {
+ MouseEvent e = (MouseEvent) anEvent;
+ return e.getID() != MouseEvent.MOUSE_DRAGGED;
+ }
+ return true;
+ }
+
+ @Override
+ public boolean stopCellEditing() {
+ if (component.isEditable()) {
+ // Commit edited value.
+ component.getCombobox().actionPerformed(
+ new ActionEvent(VesselTableCellEditor.this, 0, ""));
+ }
+ return super.stopCellEditing();
+ }
+ };
+
+ component.init((JXPathDecorator<Vessel>) decorator, vessels);
+ }
+
+ class VesselListCellRenderer extends DefaultListCellRenderer {
+
+ @Override
+ public Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
+ return super.getListCellRendererComponent(list, decorator.toString(value), index, isSelected, cellHasFocus);
+ }
+ }
+ }
+
+ protected class VesselTableCellRenderer extends DefaultTableCellRenderer {
+
+ @Override
+ public Component getTableCellRendererComponent(JTable table, Object value,
+ boolean isSelected, boolean hasFocus,
+ int row, int column) {
+
+ String vesselId = String.valueOf(value);
+ Vessel vessel = vesselMap.get(vesselId);
+ return super.getTableCellRendererComponent(table, decorator.toString(vessel), isSelected, hasFocus, row, column);
+ }
+ }
+}
Modified: trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_en_GB.properties
===================================================================
--- trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_en_GB.properties 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_en_GB.properties 2013-03-12 09:49:05 UTC (rev 584)
@@ -171,6 +171,8 @@
tutti.label.catches.benthosTotalUnsortedWeight=
tutti.label.catches.benthosTotalWeight=
tutti.label.catches.catchTotalRejectedWeight=
+tutti.label.catches.catchTotalSortedCarousselWeight=
+tutti.label.catches.catchTotalSortedTremisWeight=
tutti.label.catches.catchTotalSortedWeight=
tutti.label.catches.catchTotalUnsortedWeight=
tutti.label.catches.catchTotalWeight=
@@ -323,6 +325,7 @@
tutti.option.launch.mode.description=
tutti.option.programId.description=
tutti.option.protocolId.description=
+tutti.option.tremieCarousselVessel.description=
tutti.option.ui.autoPopupNumberEditor.description=
tutti.option.ui.color.blockingLayer.description=
tutti.option.ui.color.cellWithValue.description=
@@ -336,6 +339,7 @@
tutti.option.ui.shortcut.closePopup.description=
tutti.option.ui.showNumberEditorButton.description=
tutti.option.update.url.description=
+tutti.option.weights.rate.difference.totalAndSorted.description=
tutti.sampleCategoryType.age=
tutti.sampleCategoryType.maturity=
tutti.sampleCategoryType.sex=
@@ -535,6 +539,8 @@
tuttihelp.editCatchBatch.field.benthosTotalUnsortedWeight.tip=
tuttihelp.editCatchBatch.field.benthosTotalWeight.tip=
tuttihelp.editCatchBatch.field.catchTotalRejectedWeight.tip=
+tuttihelp.editCatchBatch.field.catchTotalSortedCarousselWeight.tip=
+tuttihelp.editCatchBatch.field.catchTotalSortedTremisWeight.tip=
tuttihelp.editCatchBatch.field.catchTotalSortedWeight.tip=
tuttihelp.editCatchBatch.field.catchTotalUnsortedWeight.tip=
tuttihelp.editCatchBatch.field.catchTotalWeight.tip=
Modified: trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_fr_FR.properties
===================================================================
--- trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_fr_FR.properties 2013-03-12 09:43:03 UTC (rev 583)
+++ trunk/tutti-ui-swing/src/main/resources/i18n/tutti-ui-swing_fr_FR.properties 2013-03-12 09:49:05 UTC (rev 584)
@@ -183,6 +183,8 @@
tutti.label.catches.benthosTotalWeight=Poids TOTAL (kg)
tutti.label.catches.catchThalassa=(*) uniquement sur Thalassa
tutti.label.catches.catchTotalRejectedWeight=Poids total NON TRIÉ (kg)
+tutti.label.catches.catchTotalSortedCarousselWeight=Caroussel observé (*)
+tutti.label.catches.catchTotalSortedTremisWeight=Tremie (*)
tutti.label.catches.catchTotalSortedWeight=Poids total VRAC (kg)
tutti.label.catches.catchTotalUnsortedWeight=Poids total HORS VRAC (kg)
tutti.label.catches.catchTotalWeight=Poids TOTAL (kg)
@@ -343,6 +345,7 @@
tutti.option.launch.mode.description=Mode de démarrage de l'application
tutti.option.programId.description=Identifiant de la dernière série de campagne utilisée
tutti.option.protocolId.description=Identifiant du dernier protocole utilisé
+tutti.option.tremieCarousselVessel.description=Navire ayant un caroussel et un trémie (Thalassa)
tutti.option.ui.autoPopupNumberEditor.description=Toujours afficher le pavé numérique lors de l'édition d'un nombre
tutti.option.ui.color.blockingLayer.description=Couleur utilisée pour bloquer l'interface lors d'une action longue
tutti.option.ui.color.cellWithValue.description=Couleur d'une cellule avec des données
@@ -356,6 +359,7 @@
tutti.option.ui.shortcut.closePopup.description=Fermer une popup
tutti.option.ui.showNumberEditorButton.description=Afficher le pavé numérique de saisie
tutti.option.update.url.description=URL de mise à jour
+tutti.option.weights.rate.difference.totalAndSorted.description=Pourcentage de différence entre les Poids totaux VRAC triés et les poids totaux VRAC en dessous duquel on demande confirmation sur la saisie.
tutti.sampleCategoryType.age=Age
tutti.sampleCategoryType.maturity=Maturité
tutti.sampleCategoryType.sex=Sexe
@@ -539,7 +543,6 @@
tutti.validator.warning.longitude.minute.outOfBounds=La minute de la latitude doit être comprise entre 0 et 60
tutti.validator.warning.longitude.outOfBounds=La Latitude doit être comprise entre -180.0 et 180.0
tutti.validator.warning.longitude.second.outOfBounds=La seconde de la longitude doit être comprise entre 0 et 60
-tutti.weights.rate.difference.totalAndSorted.description=Pourcentage de différence entre les Poids totaux VRAC triés et les poids totaux VRAC en dessous duquel on demande confirmation sur la saisie.
tuttihelp.createSpeciesBatch.action.addSpecies.tip=Sélectionner une autre espèce
tuttihelp.createSpeciesBatch.action.cancel.tip=
tuttihelp.createSpeciesBatch.action.save.tip=
@@ -560,6 +563,8 @@
tuttihelp.editCatchBatch.field.benthosTotalUnsortedWeight.tip=
tuttihelp.editCatchBatch.field.benthosTotalWeight.tip=
tuttihelp.editCatchBatch.field.catchTotalRejectedWeight.tip=
+tuttihelp.editCatchBatch.field.catchTotalSortedCarousselWeight.tip=
+tuttihelp.editCatchBatch.field.catchTotalSortedTremisWeight.tip=
tuttihelp.editCatchBatch.field.catchTotalSortedWeight.tip=
tuttihelp.editCatchBatch.field.catchTotalUnsortedWeight.tip=
tuttihelp.editCatchBatch.field.catchTotalWeight.tip=
1
0
Author: kmorin
Date: 2013-03-12 10:43:03 +0100 (Tue, 12 Mar 2013)
New Revision: 583
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/583
Log:
use last jaxx snapshot
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2013-03-12 09:33:46 UTC (rev 582)
+++ trunk/pom.xml 2013-03-12 09:43:03 UTC (rev 583)
@@ -129,7 +129,7 @@
<postgresqlVersion>9.1-901-1.jdbc4</postgresqlVersion>
<licensePluginVersion>1.4</licensePluginVersion>
- <jaxxVersion>2.5.12</jaxxVersion>
+ <jaxxVersion>2.5.13-SNAPSHOT</jaxxVersion>
<swingXVersion>1.6.4</swingXVersion>
<xworkVersion>2.3.7</xworkVersion>
1
0
r582 - in trunk/tutti-ui-swing: . src/main/assembly src/main/java/fr/ifremer/tutti/ui/swing/content
by tchemit@users.forge.codelutin.com 12 Mar '13
by tchemit@users.forge.codelutin.com 12 Mar '13
12 Mar '13
Author: tchemit
Date: 2013-03-12 10:33:46 +0100 (Tue, 12 Mar 2013)
New Revision: 582
Url: http://forge.codelutin.com/projects/tutti/repository/revisions/582
Log:
improve bundle files
Modified:
trunk/tutti-ui-swing/pom.xml
trunk/tutti-ui-swing/src/main/assembly/i18n.xml
trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/MainUIHandler.java
Modified: trunk/tutti-ui-swing/pom.xml
===================================================================
--- trunk/tutti-ui-swing/pom.xml 2013-03-12 09:10:25 UTC (rev 581)
+++ trunk/tutti-ui-swing/pom.xml 2013-03-12 09:33:46 UTC (rev 582)
@@ -72,6 +72,12 @@
<!-- generate license bundled files -->
<license.generateBundle>true</license.generateBundle>
+ <license.bundleThirdPartyPath>
+ META-INF/tutti-THIRD-PARTY.txt
+ </license.bundleThirdPartyPath>
+ <license.bundleLicensePath>
+ META-INF/tutti-LICENSE.txt
+ </license.bundleLicensePath>
<maven.jar.main.class>
fr.ifremer.tutti.ui.swing.RunTutti
@@ -97,17 +103,17 @@
</includes>
</resource>
<resource>
- <directory>src/main/filtered-resources/help</directory>
- <filtering>true</filtering>
+ <directory>src/main/resources</directory>
<includes>
- <include>*.config</include>
- <include>*.properties</include>
+ <include>**/*</include>
</includes>
</resource>
+ <!-- FIXME-TC Remove this when i18n will do it for use-->
<resource>
- <directory>src/main/resources</directory>
+ <directory>${maven.gen.dir}/resources</directory>
+ <filtering>false</filtering>
<includes>
- <include>**/*</include>
+ <include>**/*.csv</include>
</includes>
</resource>
</resources>
Modified: trunk/tutti-ui-swing/src/main/assembly/i18n.xml
===================================================================
--- trunk/tutti-ui-swing/src/main/assembly/i18n.xml 2013-03-12 09:10:25 UTC (rev 581)
+++ trunk/tutti-ui-swing/src/main/assembly/i18n.xml 2013-03-12 09:33:46 UTC (rev 582)
@@ -38,6 +38,7 @@
<outputDirectory/>
<includes>
<include>tutti-i18n*.properties</include>
+ <include>tutti-i18n*.csv</include>
</includes>
</fileSet>
Modified: trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/MainUIHandler.java
===================================================================
--- trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/MainUIHandler.java 2013-03-12 09:10:25 UTC (rev 581)
+++ trunk/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/MainUIHandler.java 2013-03-12 09:33:46 UTC (rev 582)
@@ -276,7 +276,7 @@
context.getConfig().getApplicationConfig();
String iconPath = applicationConfig.getOption("application.icon.path");
- String name = "tutti-ui-swing";
+ String name = "tutti";
String licensePath = "META-INF/" + name + "-LICENSE.txt";
String thirdPartyPath = "META-INF/" + name + "-THIRD-PARTY.txt";
1
0