This is an automated email from the git hooks/post-receive script. New commit to branch feature/9108_arbre_dans_swing_session in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit f965b797e0eba6b4882edaf85b454fdba5edb23e Author: Kevin Morin <morin@codelutin.com> Date: Tue Apr 4 12:01:57 2017 +0200 sauvegarde dans la session du separateur hors hierarchie --- .../content/demande/actions/LoadFolderEmailsAction.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/actions/LoadFolderEmailsAction.java b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/actions/LoadFolderEmailsAction.java index 0d6ef2b..0aff361 100644 --- a/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/actions/LoadFolderEmailsAction.java +++ b/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/content/demande/actions/LoadFolderEmailsAction.java @@ -44,6 +44,7 @@ import org.jdesktop.swingx.JXTable; import org.nuiton.topia.persistence.TopiaEntities; import org.nuiton.util.pagination.PaginationResult; +import javax.swing.JSplitPane; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; @@ -95,10 +96,6 @@ public class LoadFolderEmailsAction extends AbstractFaxToMailAction<DemandeListU // (as every folder can have a different header) getContext().getSwingSession().updateState(); - // get the divider location to reapply it after the save in the session - // otherwise, the divider will be set at different locations according to the folder - int dividerLocation = getUI().getMainSplitPane().getDividerLocation(); - MailFolder folderWithCanChangeOrderInTable = folder; while (folderWithCanChangeOrderInTable.getCanChangeOrderInTable() == null && folderWithCanChangeOrderInTable.getParent() != null) { @@ -107,12 +104,15 @@ public class LoadFolderEmailsAction extends AbstractFaxToMailAction<DemandeListU boolean sortable = Boolean.TRUE.equals(folderWithCanChangeOrderInTable.getCanChangeOrderInTable()); String columns = handler.populateColumnModel(dataTable, sortable); - dataTable.setName("dataTable" + columns); - getContext().getSwingSession().add(dataTable, true); getUI().setName("demandeListUI" + folder.getTopiaId()); getContext().getSwingSession().add(getUI(), true); - getUI().getMainSplitPane().setDividerLocation(dividerLocation); + JSplitPane mainSplitPane = getUI().getMainSplitPane(); + mainSplitPane.setName("demandeListUIMainSplitPane"); + getContext().getSwingSession().add(mainSplitPane, true); + + dataTable.setName("dataTable" + columns); + getContext().getSwingSession().add(dataTable, true); // fixes #5528 filtre sur les colonnes : il manque l'icone qui indique que la colonne est filtrée handler.updateEmailFilterWithContextEmailFilter(); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.