This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See https://gitlab.nuiton.org/codelutin/observe.git commit f6c4c24663b6fb9fc01b83ecb00faac04122299a Author: Tony CHEMIT <chemit@codelutin.com> Date: Tue Oct 4 09:32:41 2016 +0200 Dans l'UI de gestion avancée du référentiel, l'affichage des dates est différent à droite et à gauche (Fixes #8574) --- .../referential/ng/tree/ReferentialSynchronizeTreeCellRenderer.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application-swing/src/main/java/fr/ird/observe/application/swing/ui/admin/synchronize/referential/ng/tree/ReferentialSynchronizeTreeCellRenderer.java b/application-swing/src/main/java/fr/ird/observe/application/swing/ui/admin/synchronize/referential/ng/tree/ReferentialSynchronizeTreeCellRenderer.java index f47bde0..9d19aa3 100644 --- a/application-swing/src/main/java/fr/ird/observe/application/swing/ui/admin/synchronize/referential/ng/tree/ReferentialSynchronizeTreeCellRenderer.java +++ b/application-swing/src/main/java/fr/ird/observe/application/swing/ui/admin/synchronize/referential/ng/tree/ReferentialSynchronizeTreeCellRenderer.java @@ -37,6 +37,8 @@ import javax.swing.JTree; import javax.swing.tree.DefaultTreeCellRenderer; import java.awt.Color; import java.awt.Component; +import java.text.DateFormat; +import java.text.SimpleDateFormat; import static org.nuiton.i18n.I18n.t; @@ -53,6 +55,8 @@ public class ReferentialSynchronizeTreeCellRenderer extends DefaultTreeCellRende private static final long serialVersionUID = 1L; + private final DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyy hh:mm"); + protected transient DecoratorService decoratorService; public ReferentialSynchronizeTreeCellRenderer() { @@ -104,7 +108,7 @@ public class ReferentialSynchronizeTreeCellRenderer extends DefaultTreeCellRende ReferentialReference reference = node1.getUserObject(); Decorator<?> decorator = getDecoratorService().getReferentialReferenceDecorator(reference.getType()); text = "<html><body>" + decorator.toString(reference); - text += " <i>(" + reference.getVersion() + " - " + reference.getLastUpdateDate() + ")</i>"; + text += " <i>(" + reference.getVersion() + " - " + dateFormat.format(reference.getLastUpdateDate()) + ")</i>"; } Component comp = super.getTreeCellRendererComponent(tree, text, sel, expanded, leaf, row, hasFocus); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.