View Javadoc

1   // $Id: TreeSingleSelectionGuard.java 165 2009-05-28 21:46:38Z agony $
2   /**
3    * 
4    */
5   package de.mindcrimeilab.xsanalyzer.model;
6   
7   import javax.swing.tree.TreePath;
8   
9   import org.apache.commons.logging.Log;
10  import org.apache.commons.logging.LogFactory;
11  import org.springframework.binding.value.ValueModel;
12  import org.springframework.richclient.core.Guarded;
13  
14  
15  /**
16   * @author Michael Engelhardt<me@mindcrime-ilab.de>
17   * @author $Author: agony $
18   * @version $Revision: 165 $
19   * 
20   */
21  public class TreeSingleSelectionGuard extends AbstractTreeSelectionGuard {
22  
23      private static final Log logger = LogFactory.getLog("xsAnalyzerApplicationLogger");
24  
25      public TreeSingleSelectionGuard(ValueModel selectionHolder, Guarded guarded) {
26          super(selectionHolder, guarded);
27      }
28  
29      /*
30       * (non-Javadoc)
31       * 
32       * @see de.mindcrimeilab.xsanalyzer.model.AbstractTreeSelectionGuard#shouldEnable(javax.swing.tree.TreePath[])
33       */
34      @Override
35      protected boolean shouldEnable(TreePath[] selected) {
36          TreeSingleSelectionGuard.logger.trace("Returning true!");
37          return true;
38      }
39  
40  }