Author: echatellier Date: 2014-07-09 11:23:09 +0200 (Wed, 09 Jul 2014) New Revision: 370 Url: http://forge.codelutin.com/projects/faxtomail/repository/revisions/370 Log: Comments Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/FaxToMailUIUtil.java Modified: trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/FaxToMailUIUtil.java =================================================================== --- trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/FaxToMailUIUtil.java 2014-07-09 09:20:14 UTC (rev 369) +++ trunk/faxtomail-ui-swing/src/main/java/com/franciaflex/faxtomail/ui/swing/util/FaxToMailUIUtil.java 2014-07-09 09:23:09 UTC (rev 370) @@ -64,7 +64,6 @@ import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; -import com.google.common.base.Strings; import jaxx.runtime.JAXXObject; import jaxx.runtime.JAXXUtil; @@ -162,6 +161,7 @@ FolderTreeNode node = (FolderTreeNode) value; setEnabled(node.isCanSelect()); + // En italic si l'utilsateur n'a pas le droit de lecture (sur un parent par exemple) Font font = component.getFont(); if (node.isCanRead()) { font = font.deriveFont(Font.PLAIN); @@ -170,6 +170,8 @@ } component.setFont(font); + // Affichage en gris par defaut, mais en noir si le dossier est vraiment affecté + // à l'utilisateur Color foreground; if (!colorNotAffectedFolders || context.getCurrentUser().isAffectedFoldersEmpty() @@ -192,7 +194,8 @@ // expand nodes for (MailFolder folder : foldersToExpand) { DefaultMutableTreeNode node = nodesByFolder.get(folder); - navigationTree.expandPath(new TreePath(node.getPath())); + TreePath treePath = new TreePath(node.getPath()); + navigationTree.expandPath(treePath); } return nodesByFolder;
participants (1)
-
echatellier@users.forge.codelutin.com